急!!tomcat启动报错:Error configuring application listener of class com.mot.rbt.listen
2010-09-0817:28:49StandardContext[/RBT]Errorconfiguringapplicationlistenerofclasscom....
2010-09-08 17:28:49 StandardContext[/RBT]Error configuring application listener of class com.mot.rbt.listener.RBTSessionListener
java.lang.ClassNotFoundException: com.mot.rbt.listener.RBTSessionListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3775)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
我的com.mot.rbt.listener.RBTSessionListener存在,class也存在,怎么会出现这个问题
路径都对,包也没有问题。这个工程在其他机器上没问题,在另一台新机器上部署就出了这个问题,里面的东西代码都没有改过。
请教大家,怎么解决
eclipse 报错如下
SEVERE: Skipped installing application listeners due to previous error(s)
Sep 9, 2010 9:51:41 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Sep 9, 2010 9:51:41 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
web.xml部分内容如下
<web-app>
<display-name>Resource Booking Tool</display-name>
<description>Resource Booking Tool</description>
<listener>
<listener-class>com.mot.rbt.listener.RBTSessionListener</listener-class>
</listener>
<servlet>
<servlet-name>log4jinit</servlet-name>
<servlet-class>com.mot.rbt.init.Log4jInit</servlet-class>
<init-param>
<param-name>log4j-config-file</param-name>
<param-value>properties/log4j.properties</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
…… 展开
java.lang.ClassNotFoundException: com.mot.rbt.listener.RBTSessionListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3775)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
我的com.mot.rbt.listener.RBTSessionListener存在,class也存在,怎么会出现这个问题
路径都对,包也没有问题。这个工程在其他机器上没问题,在另一台新机器上部署就出了这个问题,里面的东西代码都没有改过。
请教大家,怎么解决
eclipse 报错如下
SEVERE: Skipped installing application listeners due to previous error(s)
Sep 9, 2010 9:51:41 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Sep 9, 2010 9:51:41 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
web.xml部分内容如下
<web-app>
<display-name>Resource Booking Tool</display-name>
<description>Resource Booking Tool</description>
<listener>
<listener-class>com.mot.rbt.listener.RBTSessionListener</listener-class>
</listener>
<servlet>
<servlet-name>log4jinit</servlet-name>
<servlet-class>com.mot.rbt.init.Log4jInit</servlet-class>
<init-param>
<param-name>log4j-config-file</param-name>
<param-value>properties/log4j.properties</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
…… 展开
4个回答
展开全部
删掉没有用的jar文件,这时候可能还会报错,但是错误已经很转移成其他的,根据报错的提示不断完善就可以了,本人已完成过,望采纳!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
如果排除程序配置的问题,就只能是tomcat启动时的毛病了。
个人怀疑tomcat启动时分配的内存不够,导致部分jar没有被读取。
删除$CATALINA/work中的内容,启动文本中添加-Xmx,数值弄大一点,例如-Xmx1024试一下效果如何
个人怀疑tomcat启动时分配的内存不够,导致部分jar没有被读取。
删除$CATALINA/work中的内容,启动文本中添加-Xmx,数值弄大一点,例如-Xmx1024试一下效果如何
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
项目没有引tomcat的servlet-api.jar包,引一下包就好了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
web.xml里面的class和listener顺序的问题吧,你最好把配置文件粘出来大家看看
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询