急!!tomcat启动报错:Error configuring application listener of class org.springframework.web.context.ContextLoaderListener<!-- google_ad_section_end -->[问题点数:20
分,结帖人:java2000_net
]
-
-
tusea
- (Be a man~)
-
- 等 级:
- 结帖率:97.62%
-
|
楼主
发表于:2007-01-12 13:43:24
<!-- google_ad_section_start -->
严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3677)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
<!-- google_ad_section_end --><!-- End_body//--> |
|
|
|
回复次数: 21
<!-- |
浏览次数:<span csdnid="vcount" title="该帖阅读数为5052">5052</span>-->
|
<!-- google_ad_section_start(weight=ignore) -->
|
#1楼 得分:3
回复于:2007-01-12 13:55:51
错误说明很清楚呀
<!-- End_rbody_38865426//--> |
|
|
|
|
#2楼 得分:3
回复于:2007-01-12 14:05:38
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
//检查spring相关的jar在不在tomcat的发布工程的lib下
<!-- End_rbody_38865688//--> |
|
|
|
|
#3楼 得分:0
回复于:2007-01-12 14:22:30
要是能行的话早就解决了。。
<!-- End_rbody_38866093//--> |
|
|
|
|
#4楼 得分:2
回复于:2007-06-09 19:06:08
遇到相同问题,LZ是否已解决?
<!-- End_rbody_41229614//--> |
|
|
|
|
#5楼 得分:2
回复于:2007-06-12 00:35:01
treeroot(旗鲁特) ( )
光说明很清楚到底错误是啥你倒是说出来啊。小心装B遭雷劈
<!-- End_rbody_41250199//--> |
|
|
|
|
#6楼 得分:2
回复于:2007-06-12 02:40:12
xml设置里面用到的bean不对,可能名字写错了。
<!-- End_rbody_41250416//--> |
|
|
|
|
#7楼 得分:2
回复于:2008-02-13 17:22:18
web.xml 文件的
<listener>
标签必须在
<servlet>
之前
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<servlet>
<description>
</description>
<display-name>
TimeServlet </display-name>
<servlet-name>TimeServlet </servlet-name>
<servlet-class>
TimeServlet </servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TimeServlet </servlet-name>
<url-pattern>/TimeServlet </url-pattern>
</servlet-mapping>
要是位置颠倒的话,就会报错!
<!-- End_rbody_47330415//--> |
|
|
|
|
#8楼 得分:2
回复于:2008-04-15 10:43:03
引用 7 楼 VerRan 的回复:
web.xml 文件的
<listener>
标签必须在
<servlet>
之前
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<servlet>
<description>
</description>
<display-name>
TimeServlet </display-name>
<servlet-name>TimeServlet </servlet-name>
<servlet-class>
TimeServlet </servlet-class>
</servlet>
<…
可是我的顺序没错啊。。我怀疑还是jar包的问题
<!-- End_rbody_48477816//--> |
|
|
|
|
#9楼 得分:0
回复于:2008-04-15 10:45:24
引用 5 楼 jiangabcwei 的回复:
treeroot(旗鲁特) ( )
光说明很清楚到底错误是啥你倒是说出来啊。小心装B遭雷劈
jiangabcwei 老兄说的很对。。呵呵
<!-- End_rbody_48477927//--> |
|
|
|
|
#10楼 得分:2
回复于:2008-04-24 21:30:06
楼主有解决该问题吗?
<!-- End_rbody_48747507//--> |
|
|
|
|
#11楼 得分:2
回复于:2008-04-24 21:45:06
springframework的包有放到项目中了吗?
<!-- End_rbody_48748140//--> |
|
|
|
|
#12楼 得分:0
回复于:2008-05-22 16:29:13
这里有解决方案:http://hi.baidu.com/java%5Froad/blog/item/a059e6349f53723e5ab5f526.html
<!-- End_rbody_49613364//--> |
|
|
|
|
#13楼 得分:0
回复于:2008-09-16 16:13:39
怎么还没解决方案---我都急着用呢.
<!-- End_rbody_52286596//--> |
|
|
|
|
#14楼 得分:0
回复于:2008-10-23 23:20:57
郁闷。我的只是几个基本的包,也报这个错
<!-- End_rbody_53091497//--> |
|
|
|
|
#15楼 得分:0
回复于:2008-10-23 23:22:33
严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3773)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2008-10-23 23:15:19 org.apache.catalina.core.StandardContext listenerStart
严重: Skipped installing application listeners due to previous error(s)
郁闷啊,上次整合SSH搞了三天才搞好,这次想好好搞struts2,还是第一个程序,还没涉及到 spring,他也报这个
<!-- End_rbody_53091512//--> |
|
|
|
|
#16楼 得分:0
回复于:2008-11-18 11:11:00
如果你用的是myeclispeeclispe首先要说的是不要使用myeclispeeclispe自带的myeclispeTomcat,因为它不识别jar包
其次每次修改jar包时,要重新部署项目。
<!-- End_rbody_53650773//--> |
|
|
|
|
#17楼 得分:0
回复于:2008-11-18 16:37:14
应该少加了spring-web.jar这个包
<!-- End_rbody_53660717//--> |
|
|
|
|
#18楼 得分:0
回复于:2008-12-03 10:42:01
我出遇到了这样的问题。加上spring-web.jar以后就好用了。
<!-- End_rbody_53970226//--> |
|
|
|
|
#19楼 得分:0
回复于:2009-01-14 16:53:55
在myeclipse中我刚也遇到了这个问题。忘了给编译文件指定保存路径。
<!-- End_rbody_54828295//--> |
|
|
|
|
#20楼 得分:0
回复于:2009-10-12 20:20:34
工程右键,MyEclipse,Add Spring Library,选择对应的spring web Library,问题即可解决。。。
<!-- End_rbody_55733843//--> |
|
|
|
|
#21楼 得分:0
回复于:2009-11-20 21:33:28
|
分享到:
相关推荐
在使用Maven构建项目时,可能会遇到发布到Tomcat服务器的困难,Error configuring application listener of class org.springframework.web.context.ContextLoaderListener错误,无法加载相应的 jar 文件,导致项目...
再者,如果在配置监听器时遇到`Error configuring application listener of class org.springframework.web.context.ContextLoaderListener`,可能是因为Eclipse在生成项目时遗漏了一些必要的Spring库。此时,应手动...
接下来,关于IntelliJ IDEA的问题,错误“Error configuring application listener of class org.springframework.web.context.ContextLoaderListener”通常意味着Spring MVC应用的配置不完整。解决方法是确保IDEA的...
stuts2项目启动tomcat报错:Error configuring application listener of class org.apache.struts2.dispatcher.ng.listener.StrutsListener,缺少的是这个javassist-3.11.0.GA.jar
Getting started with Spring Framework is a hands-on guide to begin developing applications using Spring Framework. This book is meant for Java developers with little or no knowledge of Spring ...
解决异常:Error configuring application listener of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener java.lang.ClassNotFoundException: ...
严重: Error configuring application listener of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener java.lang.ClassNotFoundException: ...
8.1. Configuring Web Flow in Spring 8.1.1. Wiring a flow executor 8.1.2. Configuring a flow registry 8.1.3. Handling flow requests 8.2. The components of a flow 8.2.1. States 8.2.2. Transitions 8.2.3....
“Error configuring application listener of class org.springframework.web.context.ContextLoaderListener”通常是由于缺少Spring的相关库。确保已正确导入Spring 3.0 Web Libraries,并且项目构建设置无误。 ...
3. New Features and Enhancements in Spring Framework 4.0 ............................................ 17 3.1. Improved Getting Started Experience .........................................................
Mapping Error Pages outside of Spring MVC 27.1.12. Spring HATEOAS 27.1.13. CORS Support 27.2. The “Spring WebFlux Framework” 27.2.1. Spring WebFlux Auto-configuration 27.2.2. ...
3. New Features and Enhancements in Spring Framework 4.0 ............................................ 17 3.1. Improved Getting Started Experience .........................................................
Table of Contents Configuring a Spring Development Environment Spring Framework Fundamentals Web Application Architecture Spring MVC Architecture Implementing Controllers Implementing Controllers ...
MCTS 70-643 Configuring Windows Server 2008 Application Infrastructure.part1
MCTS 70-643 Configuring Windows Server 2008 Application Infrastructure.part2
根据提供的文件信息,可以推断这是一本关于Spring Security的专业书籍,书名为《Pro+Spring+Security》,主要面向Java开发者。该书深入探讨了Spring Security框架,涵盖了从基础的安全概念到高级的安全策略实施。接...
Configuring SAP R3 FICO The Essential Resource for Configuring the Financial and Controlling Modules.part3