- 浏览: 1525308 次
- 性别:
- 来自: 杭州
文章分类
- 全部博客 (525)
- SEO (16)
- JAVA-EE-Hibernate (6)
- JAVA-EE-Struts (29)
- JAVA-EE-Spring (15)
- Linux (37)
- JAVA-SE (29)
- NetWork (1)
- CMS (14)
- Semantic Research (3)
- RIA-Flex (0)
- Ajax-Extjs (4)
- Ajax-Jquery (1)
- www.godaddy.com (0)
- SSH (34)
- JavaScript (6)
- SoftwareEngineer (9)
- CMMI (0)
- IDE-Myeclipse (3)
- PHP (1)
- Algorithm (3)
- C/C++ (18)
- Concept&Items (2)
- Useful WebSite (1)
- ApacheServer (2)
- CodeReading (1)
- Socket (2)
- UML (10)
- PowerDesigner (1)
- Repository (19)
- MySQL (3)
- SqlServer (0)
- Society (1)
- Tomcat (7)
- WebService (5)
- JBoss (1)
- FCKeditor (1)
- PS/DW/CD/FW (0)
- DesignPattern (11)
- WebSite_Security (1)
- WordPress (5)
- WebConstruction (3)
- XML|XSD (7)
- Android (0)
- Project-In-Action (9)
- DatabaseDesign (3)
- taglib (7)
- DIV+CSS (10)
- Silverlight (52)
- JSON (7)
- VC++ (8)
- C# (8)
- LINQ (1)
- WCF&SOA (5)
- .NET (20)
- SOA (1)
- Mashup (2)
- RegEx (6)
- Psychology (5)
- Stock (1)
- Google (2)
- Interview (4)
- HTML5 (1)
- Marketing (4)
- Vaadin (2)
- Agile (2)
- Apache-common (6)
- ANTLR (0)
- REST (1)
- HtmlAnalysis (18)
- csv-export (3)
- Nucth (3)
- Xpath (1)
- Velocity (6)
- ASP.NET (9)
- Product (2)
- CSS (1)
最新评论
-
lt26w:
理解成门面模式应该比较容易明白吧
FacadePattern-Java代码实例讲解 -
lt26w:
看下面的例子比较明白.
FacadePattern-Java代码实例讲解 -
javaloverkehui:
这也叫文档,别逗我行吗,也就自己看看。
HtmlCleaner API -
SE_XiaoFeng:
至少也应该写个注释吧。
HtmlCleaner API -
jfzshandong:
...
org.springframework.web.filter.CharacterEncodingFilter 配置
关键字: 异常,tomcat启动出错 ,xfire ,spring
应用环境:
jdk-1.6.03,tomcat-5.5.26,spring 2.5 ,Hibernate 3.2
eclipse 3.3.2 myEclipse 6.5
tomcat在启动的时候发生如下错误:
2008-9-28 11:13:01 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2008-9-28 11:13:01 org.apache.catalina.core.StandardContext start
严重: Context [/xxfire] startup
failed
due
to
previous
errors
错误分析:
错误触发在web.xml中定义
Xml代码 <embed type="application/x-shockwave-flash" width="14" height="15" src="http://fengzhiyin.iteye.com/javascripts/syntaxhighlighter/clipboard_new.swf" flashvars="clipboard=%3Ccontext-param%3E%0A%20%20%20%20%20%20%20%20%3Cparam-name%3EcontextConfigLocation%3C%2Fparam-name%3E%0A%20%20%20%20%20%20%20%20%3Cparam-value%3E%2FWEB-INF%2Fcontext%2FApplicationContext-*.xml%3C%2Fparam-value%3E%0A%3C%2Fcontext-param%3E%0A%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3Clistener%3E%0A%20%20%20%20%20%20%20%20%3Clistener-class%3E%3Cspan%20style%3D%22background-color%3A%20rgb(255%2C%20102%2C%200)%3B%22%3Eorg.springframework.web.context.ContextLoaderListener%3C%2Fspan%3E%3C%2Flistener-class%3E%0A%3C%2Flistener%3E%3C%2Fspan%3E%0A" quality="high" allowscriptaccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
- < context-param >
- < param-name > contextConfigLocation </ param-name >
- < param-value > /WEB-INF/context/ApplicationContext-*.xml </ param-value >
- </ context-param >
- < span style = "color: rgb(0, 0, 0);" > < listener >
- < listener-class > < span style = "background-color: rgb(255, 102, 0);" > org.springframework.web.context.ContextLoaderListener </ span > </ listener-class >
- </ listener > </ span >
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/context/ApplicationContext-*.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
检查spring配置管理xml文件。发现错误产生在:
Xml代码 <embed type="application/x-shockwave-flash" width="14" height="15" src="http://fengzhiyin.iteye.com/javascripts/syntaxhighlighter/clipboard_new.swf" flashvars="clipboard=%3Cbean%20id%3D%22dataSource%22%20class%3D%22%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%20background-color%3A%20rgb(255%2C%20102%2C%200)%3B%22%3Eorg.apache.commons.dbcp.BasicDataSource%3C%2Fspan%3E%22%3E%0A%09%3Cproperty%20name%3D%22driverClassName%22%20value%3D%22oracle.jdbc.driver.OracleDriver%22%3E%3C%2Fproperty%3E%0A%09%3Cproperty%20name%3D%22url%22%20value%3D%22jdbc%3Aoracle%3Athin%3A%40localhost%3A1521%3Aorcl%22%3E%3C%2Fproperty%3E%0A%09%3Cproperty%20name%3D%22username%22%20value%3D%22sys8%22%3E%3C%2Fproperty%3E%0A%09%3Cproperty%20name%3D%22password%22%20value%3D%22sys8%22%3E%3C%2Fproperty%3E%0A%3C%2Fbean%3E" quality="high" allowscriptaccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
- < bean id = "dataSource" class =" < span style=" color : rgb(0, 0, 0); background-color: rgb(255, 102, 0);" > org.apache.commons.dbcp.BasicDataSource </ span > " >
- < property name = "driverClassName" value = "oracle.jdbc.driver.OracleDriver" > </ property >
- < property name = "url" value = "jdbc:oracle:thin:@localhost:1521:orcl" > </ property >
- < property name = "username" value = "sys8" > </ property >
- < property name = "password" value = "sys8" > </ property >
- </ bean >
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource
">
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"></property>
<property name="url" value="jdbc:oracle:thin:@localhost:1521:orcl"></property>
<property name="username" value="sys8"></property>
<property name="password" value="sys8"></property>
</bean>
上面所示的代码中,红色代码是产生错误的根源,在spring管理Hibernate的dataSource是用的是:
Java代码 <embed type="application/x-shockwave-flash" width="14" height="15" src="http://fengzhiyin.iteye.com/javascripts/syntaxhighlighter/clipboard_new.swf" flashvars="clipboard=%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3Eorg.springframework.jdbc.datasource.DriverManagerDataSource%3C%2Fspan%3E" quality="high" allowscriptaccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
- <span style= "color: rgb(0, 0, 0);" >org.springframework.jdbc.datasource.DriverManagerDataSource</span>
org.springframework.jdbc.datasource.DriverManagerDataSource
解决:
Xml代码 <embed type="application/x-shockwave-flash" width="14" height="15" src="http://fengzhiyin.iteye.com/javascripts/syntaxhighlighter/clipboard_new.swf" flashvars="clipboard=%3Cbean%20id%3D%22dataSource%22%20class%3D%22%3Cspan%20style%3D%22background-color%3A%20rgb(255%2C%20102%2C%200)%3B%22%3Eorg.springframework.jdbc.datasource.DriverManagerDataSource%3C%2Fspan%3E%22%3E%0A%09%3Cproperty%20name%3D%22driverClassName%22%20value%3D%22oracle.jdbc.driver.OracleDriver%22%3E%3C%2Fproperty%3E%0A%09%3Cproperty%20name%3D%22url%22%20value%3D%22jdbc%3Aoracle%3Athin%3A%40localhost%3A1521%3Aorcl%22%3E%3C%2Fproperty%3E%0A%09%3Cproperty%20name%3D%22username%22%20value%3D%22sys8%22%3E%3C%2Fproperty%3E%0A%09%3Cproperty%20name%3D%22password%22%20value%3D%22sys8%22%3E%3C%2Fproperty%3E%0A%3C%2Fbean%3E" quality="high" allowscriptaccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
- < bean id = "dataSource" class =" < span style=" background -color: rgb(255, 102, 0);" > org.springframework.jdbc.datasource.DriverManagerDataSource </ span > " >
- < property name = "driverClassName" value = "oracle.jdbc.driver.OracleDriver" > </ property >
- < property name = "url" value = "jdbc:oracle:thin:@localhost:1521:orcl" > </ property >
- < property name = "username" value = "sys8" > </ property >
- < property name = "password" value = "sys8" > </ property >
- </ bean >
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource
">
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"></property>
<property name="url" value="jdbc:oracle:thin:@localhost:1521:orcl"></property>
<property name="username" value="sys8"></property>
<property name="password" value="sys8"></property>
</bean>
不足之处,请见谅。谢谢指正!
发表评论
-
找不到 org.springframework.test.AbstractTransactionalDataSourceSpringContextTests;
2010-03-15 13:21 3963import or ... -
Spring三种注入IOC注入方式
2010-03-10 09:46 6648Type1 接口注入 我们常常借助接口来将调用者与实现者分离 ... -
Spring中常用的hql查询方法(getHibernateTemplate())
2009-12-09 16:35 1008Spring中常用的hql查询方法(getHibernateT ... -
Spring源码分析-配置文件加载流程
2009-12-07 15:04 3347Spring配置文件加载流程 Spring配置文件 ... -
读Spring源代码之按图索骥(一)Context创建与配置文件加载
2009-12-07 13:57 1546Spring 和 Struts在web.xml中增加的配置 ... -
读Spring源代码之按图索骥(一)Context创建与配置文件加载
2009-12-07 13:56 1090Spring 和 Struts在web.xml中增加的配置 ... -
HTTP Status 404(The requested resource is not available)
2009-12-04 21:08 39258但是SSH中404不一定是以下错误! 是配置问题 HTTP S ... -
'dataSource': no matching editors or conversion strategy found
2009-12-04 19:42 3603the datasource property is look ... -
tomcat启动时出现的 严重: Error listenerStart
2009-12-04 16:15 1286最近看《WebWork.Spring.Hibernate 整 ... -
严重: Error filterStart-楼主竟然不给解决方案 = =
2009-12-04 16:14 2635今天在eclipse+myeclipse+tomcat5 ... -
org.springframework.web.filter.CharacterEncodingFilter 配置
2009-12-04 16:13 13821web.xml文件 <?xml version=&qu ... -
Spring2.0的包的说明
2009-12-04 16:12 1123Spring 压缩包目录说明 ... -
在使用SSH添加 <listener> <listener-class>org.springframework.web.context.C
2009-12-04 13:44 4332在使用SSH添加 <listener> ... -
ApplicationContext.xml
2009-12-03 16:22 1196<?xml version="1.0" ...
相关推荐
NULL 博文链接:https://123390255-qq-com.iteye.com/blog/1100047
但是,在某些情况下,Tomcat 的详细错误日志可能会消失,只报一个万恶的 Context [] startup failed due to previous errors,却找不到 previous errors 具体是啥东西。这篇文章将为您介绍解决该问题的方法。 问题...
7. **严重:Exception starting filter struts2,Error filterStart,Context [/struts2] startup failed due to previous errors** 这个严重错误通常涉及到Struts2配置问题,可能的原因包括: - `struts.xml`中的...
严重: Context startup failed due to previous errors 2009-11-06 21:39:17 org.apache.catalina.core.StandardHostDeployer install 信息: Installing web application at context path /tomcat-docs from URL ...
严重: Context [/OAProject] startup failed due to previous errors 2009-8-29 14:02:25 org.apache.catalina.core.ApplicationContext log 信息: Closing Spring root WebApplicationContext log4j:WARN No ...
- Enhanced the mechanism to report memory hardware errors in the Memory torture test. Release 5.3 build 1033 WIN32 release 1 October 2008 - Changes to correct a BurnInTest crash problem on some ...
It is up to the application to define what consistency means, and isolation in some form is needed to achieve consistent results. SQL Server uses locking to achieve isolation. Definition of ...
display_startup_errors ; Default Value: Off ; Development Value: On ; Production Value: Off ; error_reporting ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED ; Development Value: E_...
9)....Added: EMemLeaks._ReserveOutOfMemory to control reserve size of out of memory errors (default is 50 Mb) 10)..Added: "MinLeaksLimitObjs" option (EMemLeaks unit) 11)..Added: Fatal memory problem ...
[3084390] Bochs won't load floppy plugin right on startup [3043174] Docbook use of '_' build failure [3085140] Ia_arpl_Ew_Rw definition of error [3078995] ROL/ROR/SHL/SHR modeling wrong when dest ...