Tomcat启动抛错——SEVERE: Error configuring application listener of class org.springframework.web.context.

今天用eclipse搭建了一个soa的maven项目,总是抛SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoade

网上找了很多方法也没有解决问题,后面最终找到终极解决方案。

错误信息:
SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
解决方案:
1. 打开项目右键--->properties之后,到Deployment Assembly页面,点击Add


2. 选择Jave Build Path Entries


3. 把程序用于的Library加入进来


4. 重新运行Server应该看不到这个问题了OK完美解决!

Error configuring application listener of class org.springframework.web.context.

05-09

Spring初学者,做了一个简单的Spring+Struts的例子,报错如下:rnrn严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextExceptionrn at java.lang.Class.getDeclaredConstructors0(Native Method)rn at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)rn at java.lang.Class.getConstructor0(Class.java:2699)rn at java.lang.Class.newInstance0(Class.java:326)rn at java.lang.Class.newInstance(Class.java:308)rn at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:125)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4715)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1568)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1558)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)rn at java.util.concurrent.FutureTask.run(FutureTask.java:138)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:662)rnCaused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContextExceptionrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1701)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1546)rn ... 16 morern2012-5-9 13:41:15 org.apache.catalina.core.StandardContext listenerStartrn严重: Skipped installing application listeners due to previous error(s)rn2012-5-9 13:41:15 org.apache.catalina.core.StandardContext startInternalrn严重: Error listenerStartrn2012-5-9 13:41:15 org.apache.catalina.core.StandardContext startInternalrn严重: Context [/SpringFrame] startup failed due to previous errorsrn2012-5-9 13:41:16 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["http-bio-8080"]rn2012-5-9 13:41:16 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["ajp-bio-8009"]rn2012-5-9 13:41:16 org.apache.catalina.startup.Catalina startrnrn信息: Server startup in 6251 msrnrnrn弄了很长时间,还是没有弄出来,求解答!

启动tomcat就报错Error configuring application listener of class com.function.SysConte

11-29

严重: Error configuring application listener of class com.function.SysContextListenerrnjava.lang.ClassNotFoundException: com.function.SysContextListenerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)rn at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:525)rn at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:507)rn at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:124)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4715)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1099)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1621)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnrn十一月 29, 2016 10:46:47 上午 org.apache.catalina.core.StandardContext listenerStartrnrnrnrnrn在web.xml 配置了监听器rn rn initRun rn com.chinasoft.Servlet.InitServlet rn 1 rn rnrnrn哪位大神能够解答

严重: Error configuring application listener of class sy.listener.RepairListener

07-23

严重: Error configuring application listener of class sy.listener.RepairListenerrnjava.lang.ClassNotFoundException: sy.listener.RepairListenerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3770)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn

严重: Error configuring application listener of class com.pub.init.InitListener

01-18

myeclipse中启动Tomcat就报这个错误,是什么原因?最好能够说的详细点,以前都是重新部署,或者重装tomcat,或者重装mycelipse可能就好了,但是这次上面的方法都用过了也没解决,请问错误是什么原因导致的,需要怎么解决,什么原理?谢谢rn2016-1-18 16:33:55 org.apache.catalina.core.StandardContext listenerStartrn严重: Error configuring application listener of class com.pub.init.InitListenerrnjava.lang.ClassNotFoundException: com.pub.init.InitListenerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn2016-1-18 16:33:55 org.apache.catalina.core.StandardContext listenerStartrn严重: Skipped installing application listeners due to previous error(s)rn2016-1-18 16:33:55 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2016-1-18 16:33:55 org.apache.catalina.core.StandardContext startrn严重: Context [/DMS] startup failed due to previous errorsrn2016-1-18 16:33:55 org.apache.catalina.startup.HostConfig deployDirectory

Error configuring application listener of class问题

02-22

我在调试“java web中使用 Listener”,在web.xml中增加rn[code=text]rn rn MyServlet.OnLineCountListenerrn rnrn就报错。如下:rn[code=text]2013-2-22 15:58:24 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/../lib/i386:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/client:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386::/usr/java/packages/lib/i386:/lib:/usr/librn2013-2-22 15:58:24 org.apache.tomcat.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:ServletTest' did not find a matching property.rn2013-2-22 15:58:24 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-bio-8080"]rn2013-2-22 15:58:24 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-bio-8009"]rn2013-2-22 15:58:24 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 579 msrn2013-2-22 15:58:24 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn2013-2-22 15:58:24 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/7.0.34rn2013-2-22 15:58:25 org.apache.catalina.core.StandardContext listenerStartrn严重: Error configuring application listener of class MyServlet.OnLineCountListenerrnjava.lang.ClassNotFoundException: MyServlet.OnLineCountListenerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)rn at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)rn at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)rn at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)rn at java.util.concurrent.FutureTask.run(FutureTask.java:166)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)rn at java.lang.Thread.run(Thread.java:679)rn2013-2-22 15:58:25 org.apache.catalina.core.StandardContext listenerStartrn严重: Skipped installing application listeners due to previous error(s)rn2013-2-22 15:58:25 org.apache.catalina.core.StandardContext startInternalrn严重: Error listenerStartrn2013-2-22 15:58:25 org.apache.catalina.core.StandardContext startInternalrn严重: Context [/ServletTest] startup failed due to previous errorsrn2013-2-22 15:58:25 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["http-bio-8080"]rn2013-2-22 15:58:25 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["ajp-bio-8009"]rn2013-2-22 15:58:25 org.apache.catalina.startup.Catalina startrn信息: Server startup in 1416 ms[/code]rnrn/=========================rn其中web.xml是这样写的,如下:rn[code=text]rnrn ServletTestrn rn index.htmlrn index.htmrn index.jsprn default.htmlrn default.htmrn default.jsprn rn rn MyServlet.OnLineCountListenerrn rn[/code]rnrn//====================================================rnOnLineCountListener.java文件是这样写的,如下:rn[code=java]package MyServlet.test;rnrn/*public class EncodingFilterrn rnrn */rn// ==================== Program Discription =====================rn// 程序名称:示例14-9 : OnLineCountListener .javarn// 程序目的:学习使用监听器rn// ==============================================================rnimport javax.servlet.http.*;rnimport javax.servlet.*;rnrnpublic class OnLineCountListener implements HttpSessionListener,rn ServletContextListener, ServletContextAttributeListenerrnrn private int count;rn private ServletContext context = null;rnrn public OnLineCountListener()rn rn count = 0;rn // setContext();rn rnrn // 创建一个session时激发rn public void sessionCreated(HttpSessionEvent se)rn rn count++;rn setContext(se);rnrn rnrn // 当一个session失效时激发rn public void sessionDestroyed(HttpSessionEvent se)rn rn count--;rn setContext(se);rn rnrn // 设置context的属性,它将激发attributeReplaced或attributeAdded方法rn public void setContext(HttpSessionEvent se)rn rn se.getSession().getServletContext()rn .setAttribute("onLine", new Integer(count));rn rnrn // 增加一个新的属性时激发rn public void attributeAdded(ServletContextAttributeEvent event)rn rnrn log("attributeAdded('" + event.getName() + "', '" + event.getValue()rn + "')");rnrn rnrn // 删除一个新的属性时激发rn public void attributeRemoved(ServletContextAttributeEvent event)rn rnrn log("attributeRemoved('" + event.getName() + "', '" + event.getValue()rn + "')");rnrn rnrn // 属性被替代时激发rn public void attributeReplaced(ServletContextAttributeEvent event)rn rnrn log("attributeReplaced('" + event.getName() + "', '" + event.getValue()rn + "')");rn rnrn // context删除时激发rn public void contextDestroyed(ServletContextEvent event)rn rnrn log("contextDestroyed()");rn this.context = null;rnrn rnrn // context初始化时激发rn public void contextInitialized(ServletContextEvent event)rn rnrn this.context = event.getServletContext();rn log("contextInitialized()");rnrn rnrn private void log(String message)rn rnrn System.out.println("ContextListener: " + message);rn rnrn[/code]rnrn//=============================================================rnlistener.jsp内容如下:rn[code=html]<%@ page language="java" import="javax.servlet.*" contentType="text/html; charset=UTF-8"rn pageEncoding="UTF-8"%>rnrnrnrn rn Insert title herernrnrn 目前在线人数:rnrn <%=getServletContext().getAttribute("onLine")%>rn 退出会话:rnrn rn rn rnrnrn[/code]rnrn//===============================================rn工程如下:rn[img=http://img.my.csdn.net/uploads/201302/22/1361521801_3475.png][/img]rn我查了网上的办法,没查到能解决了的,请帮助我分析解决一下。

急!!tomcat启动报错:Error configuring application listener of class com.mot.rbt.listen

09-08

2010-09-08 17:28:49 StandardContext[/RBT]Error configuring application listener of class com.mot.rbt.listener.RBTSessionListenerrnjava.lang.ClassNotFoundException: com.mot.rbt.listener.RBTSessionListenerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3775)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)rn at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)rn at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)rn at org.apache.catalina.core.StandardService.start(StandardService.java:480)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:556)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)rnrn我的com.mot.rbt.listener.RBTSessionListener存在,class也存在,怎么会出现这个问题rnrnweb.xml内容为rnrnrnrnrn Resource Booking Toolrn Resource Booking Toolrn rn rn com.mot.rbt.listener.RBTSessionListenerrn rnrnrn rn log4jinit rn com.mot.rbt.init.Log4jInit rn rn log4j-config-file rn properties/log4j.properties rn rn 1rn rn rn rn BootStraprn com.mot.rbt.init.BootStraprn 2rn rn rnrn rn BootStraprn *.xxxrn rn rn rn DisplayChartrn org.jfree.chart.servlet.DisplayChartrn rn rnrn rn DisplayChartrn /DisplayChartrn rnrn rn index.jsprn rnrn rn 404rn /error.jsprn rnrnrnrn

急!!tomcat启动报错:Error configuring application listener of class org.springframewor

05-21

报错代码rn2011-5-21 14:11:35 org.apache.catalina.core.AprLifecycleListener initrn信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;F:\百吉特\tomcat6.0.13\binrn2011-5-21 14:11:35 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-9090rn2011-5-21 14:11:35 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 419 msrn2011-5-21 14:11:35 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2011-5-21 14:11:35 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.13rn2011-5-21 14:11:36 org.apache.catalina.loader.WebappClassLoader validateJarFilern信息: validateJarFile(F:\Users\asus\Workspaces\MyEclipse 8.6\ChooseCourse\WebContent\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.classrn2011-5-21 14:11:36 org.apache.catalina.core.StandardContext listenerStartrn严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListenerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3770)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2011-5-21 14:11:36 org.apache.catalina.core.StandardContext listenerStartrn严重: Skipped installing application listeners due to previous error(s)rn2011-5-21 14:11:36 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2011-5-21 14:11:36 org.apache.catalina.core.StandardContext startrn严重: Context [/HTMLDEMO] startup failed due to previous errorsrn2011-5-21 14:11:36 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-9090rn2011-5-21 14:11:36 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2011-5-21 14:11:36 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/32 config=nullrn2011-5-21 14:11:36 org.apache.catalina.startup.Catalina startrn信息: Server startup in 1028 msrnrn急求解决 希望有经验的朋友能帮助

启动TOMCAT服务器,报错Error configuring application listener of class

12-14

信息: validateJarFile(E:\study\apache-tomcat-6.0.37\webapps\portalFront\WEB-INF\lib\servlet-api-2.5-6.1.2rc0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.classrn十二月 14, 2013 9:54:45 上午 org.apache.catalina.core.StandardContext listenerStartrn严重: Error configuring application listener of class com.yiliaosoft.health.heartElect.web.listener.HeartElectStartupListenerrnjava.lang.ClassNotFoundException: com.yiliaosoft.health.heartElect.web.listener.HeartElectStartupListenerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn

急!!tomcat启动报错:Error configuring application listener of class org.springframework.web.context.ContextLoaderListener

01-12

严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListenerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3677)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)rn at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)rn at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)rn at org.apache.catalina.core.StandardService.start(StandardService.java:450)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:551)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

[tomcat启动报错] 严重: Error configuring application listener of class ...

02-18

问题描述:rn 现有两个工程A、B,其中A为web工程,B为java工程。B工程包含一些共用类。rn 把B工程打成jar包,A工程通过buildpath引入b.jar。rnrn 使用eclipse3.6 + tomcat6.0插件的方式进行开发。rnrn 启动tomcat发布A工程之后,报错如下:rn2011-2-18 10:18:55 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\CommonTools\Java\jdk1.5.0_22\bin;.;C:\Windows\system32;C:\Windows;C:\CommonTools\Java\jdk1.5.0_22\jre\bin;C:/CommonTools/Java/jre6/bin/client;C:/CommonTools/Java/jre6/bin;C:/CommonTools/Java/jre6/lib/i386;C:\oracle\ora90\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;C:\j2sdk1.4.2\bin;C:\Program Files\MySQL\MySQL Server 5.1\bin;C:\CommonTools\UnixUtils\bin;C:\CommonTools\UnixUtils\usr\local\wbin;C:\CommonTools\Vim\vim72;C:\CommonTools\Java\jad.exe;C:\CommonTools\MinGW\bin;C:\Program Files\GTK2-Runtime\bin;C:\Program Files\SinoVoice\jTTS 5.0 Desktop\Bin;E:\STUDY_JAVA_JAR\apache-ant-1.7.1-bin\apache-ant-1.7.1\bin;C:\CommonTools\TortoiseSVN\binrn2011-2-18 10:18:55 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-80rn2011-2-18 10:18:55 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 529 msrn2011-2-18 10:18:55 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2011-2-18 10:18:55 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.20rn2011-2-18 10:18:55 org.apache.catalina.core.StandardContext listenerStartrn严重: Error configuring application listener of class com.mycop.spring.ContextHolderListenerrnjava.lang.ClassNotFoundException: com.mycop.spring.ContextHolderListenerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3877)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)rn at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)rn at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:583)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:592)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2011-2-18 10:18:55 org.apache.catalina.core.StandardContext listenerStartrn严重: Skipped installing application listeners due to previous error(s)rn2011-2-18 10:18:55 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2011-2-18 10:18:55 org.apache.catalina.core.StandardContext startrn严重: Context [/copbusi] startup failed due to previous errorsrn2011-2-18 10:18:56 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn2011-2-18 10:18:56 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rn2011-2-18 10:18:56 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-80rn2011-2-18 10:18:56 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2011-2-18 10:18:56 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/35 config=nullrn2011-2-18 10:18:56 org.apache.catalina.startup.Catalina startrn信息: Server startup in 1040 ms rnrnrn其中A工程中web.xml中相关配置:rn .....rn rn rn com.mycop.spring.ContextHolderListenerrn rn .....rnrncom.mycop.spring.ContextHolderListener 是B工程中的一个实现类rnrnrn哪位高人能够指点一 2,非常感谢!

做定时器时的监听器 报错 严重: Error configuring application listener of class test.timer.Time

08-05

直接上代码吧,高手们帮我看看rnweb.xml:rn[code=XML]rnrnrn rn test.timer.TimerListenerrn rnrn rn index.jsprn rn[/code]rn[code=Java]rnpackage test.timer;rnrnimport java.text.ParseException;rnimport java.text.SimpleDateFormat;rnimport java.util.Date;rnimport java.util.Timer;rnrnimport javax.servlet.ServletContext;rnimport javax.servlet.ServletContextEvent;rnimport javax.servlet.ServletContextListener;rnrnpublic class TimerListener implements ServletContextListener rnrn @SuppressWarnings("unused")rn private ServletContext servletContext = null;rn private Timer timer = null;rnrn /**rn * 开始执行rn */rn @Overridern public void contextInitialized(ServletContextEvent e) rn e.getServletContext().log("init !");rn timer = new Timer(true);rn // 获得当天的日期rn SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd ");rn Date date = new Date();rn // 定义开始时间字符串rn String timeStr = "12:00:00";rn timeStr = sdf.format(date) + timeStr;rn // 获得当天的指定时间的date对象rn sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");rn try rn date = sdf.parse(timeStr);rn catch (ParseException e1) rn e1.printStackTrace();rn rnrn // 判断今天的执行时间是否已经过去,如果过去则改为明天rn if (date.getTime() < System.currentTimeMillis()) rn date = new Date(date.getTime() + 24 * 60 * 60 * 1000);rn rnrn timer.schedule(new TestTimer(), date, 24*60*60 * 1000);rnrn rnrn /**rn * 销毁rn */rn @Overridern public void contextDestroyed(ServletContextEvent e) rn timer.cancel();rn e.getServletContext().log("destroyed");rn rnrn[/code]rn环境没有问题,如果web.xml去掉可以正常启动。项目就这么几个文件

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试