org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart

  今天将项目部署到Centos 6.3 x64上面的tomcat 7.0.54,访问链接出现了404错误。后来查看了/usr/local/apache-tomcat-7.0.54/logs/catalina.out 文件,出现了Error listenerStart 。

org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart

 

2014-06-13 14:30:20 [localhost-startStop-1] INFO  [ HibernateTransactionManager ] - Using DataSource [[email protected]] of Hibernate SessionFactory for HibernateTransactionManager
2014-06-13 14:30:21 [localhost-startStop-1] INFO  [ ContextLoader ] - Root WebApplicationContext: initialization completed in 7903 ms
Jun 13, 2014 2:30:21 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Jun 13, 2014 2:30:21 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/adver] startup failed due to previous errors
Jun 13, 2014 2:30:21 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/adver] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Jun 13, 2014 2:30:21 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive /usr/local/apache-tomcat-7.0.54/webapps/adver.war has finished in 20,703 ms

  再去查看/usr/local/apache-tomcat-7.0.54/logs/localhost.2014-06-13.log 文件,

Jun 13, 2014 2:33:35 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Jun 13, 2014 2:33:35 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jun 13, 2014 2:33:43 PM org.apache.catalina.core.ApplicationContext log
INFO: Set web app root system property: ‘webapp.root‘ = [/usr/local/apache-tomcat-7.0.54/webapps/adver/]
Jun 13, 2014 2:33:43 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Logback from [classpath:dev/logback.xml]
Jun 13, 2014 2:33:43 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class ch.qos.logback.ext.spring.web.LogbackConfigListener
java.lang.IllegalArgumentException: Invalid ‘logbackConfigLocation‘ parameter: class path resource [dev/logback.xml] cannot be resolved to URL because it does not exist
        at ch.qos.logback.ext.spring.web.WebLogbackConfigurer.initLogging(WebLogbackConfigurer.java:144)
        at ch.qos.logback.ext.spring.web.LogbackConfigListener.contextInitialized(LogbackConfigListener.java:54)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
        at java.lang.Thread.run(Thread.java:662)
Jun 13, 2014 2:33:44 PM org.apache.catalina.core.ApplicationContext log
INFO: Shutting down Logback
Jun 13, 2014 2:33:44 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext

  由此日志文件可以知道,在web.xml 初始化logback监听器的的时候找不到classpath:dev/logback.xml。

  后来去/usr/local/apache-tomcat-7.0.54/webapps/adver/WEB-INF/classes/ 看了,也真的是下面没有dev/logback.xml文件夹。明明在开发的时候,在tomcat里面也是有的。 但是发布的时候,就没有。

找到原因:是因为用maven打包的,maven并没有将dev/logback.xml放到WEB-INF/classes里,而是直接将logbak.xml放在WEB-INF/classes。

org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart,布布扣,bubuko.com

时间: 2024-10-12 07:01:22

org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart的相关文章

org.apache.catalina.core.StandardContext.startInternal Context [/test] startup failed due to previou

解决方法: WEB-INF/classes目录下新建一个文件叫logging.properties,截图如下: 代码如下: 1 handlers=org.apache.juli.FileHandler,java.util.logging.ConsoleHandler 2 ############################################################ 3 #Handler specific properties. 4 # Describes specifi

struts2 启动tomcat时报错:org.apache.catalina.core.StandardContext filterStart

用struts2+jsp做个网站,到了网站制作后期时,启动tomcat竟然无法启动,挂了.之前一直有用可是今天添加了一些东西就挂了,删除之后还是无法启动tomcat服务器. 下面是报错的代码: <span style="color:#ff0000;"> org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter struts</span> <s

tomcat(12)org.apache.catalina.core.StandardContext源码剖析

[0]README 0)本文部分文字描述转自 "how tomcat works",旨在学习 "tomcat(12)StandardContext源码剖析" 的基础知识: 1)Context实例表示一个具体的web 应用程序,其中包含一个或多个Wrapper实例,每个Wrapper 表示一个具体的servlet定义: 2)Context容器还需要其他组件的支持,如载入器和Session 管理器.本章要intro 的 StandardContext是 catalina

【SpringMVC】Marking servlet dispatcherServlet as unavailable org.apache.catalina.core.StandardContext.loadOnStartup Servlet [springDispatcherServlet] in web application [] threw load() exception

Marking servlet dispatcherServlet as unavailable org.apache.catalina.core.StandardContext.loadOnStartup Servlet [springDispatcherServlet] in web application [] threw load() exception Java.lang.ClassNotFoundException: org.springframework.web.servlet.D

idea启动tomcat服务失败 SEVERE [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild:

我的工程是从eclipse生成的,个人习惯用idea开发.重复了一遍以往正常的不能再正常了的导入配置,结果遇到了如下问题: SEVERE [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start comp

Linux下启动tomcat报错RROR org.apache.catalina.core.StandardContext- Error starting static Resources java.lang.IllegalArgumentException: Document base /home/duiba/apache-tomcat/webapps/../webapps/manager do

部署项目的时候,重启tomcat,死活起不来,很郁闷,网上巴拉了半天,结合自己的情况,找到了原因: 错误日志信息: 2018-12-13 13:52:26,992 [main] INFO org.apache.catalina.core.AprLifecycleListener- The APR based Apache Tomcat Native library which allows optimal performance in production environments was no

tomcat(11)org.apache.catalina.core.StandardWrapper源码剖析

[0]README 0.0)本文部分文字描述转自 "how tomcat works",旨在学习 "tomcat(11)StandardWrapper源码剖析" 的基础知识: 0.1)StandardWrapper 是 Catalina中对Wrapper接口的标准实现:要知道,tomcat 中有4种类型的容器:Engine,Host,Context 和 Wrapper:(干货--review  tomcat 中有4种类型的容器:Engine,Host,Context

Tomcat SEVERE: Error listenerStart ... ConflictingBeanDefinitionException

tomcat启动时只报错: Tomcat SEVERE: Error listenerStart.没有详细的报错信息. 查询logs/localhost.XXXX.log文件找到报错信息如下: SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframewo

Apache Catalina Error:- “SEVERE: Error listenerStart”

http://stackoverflow.com/questions/12561932/apache-catalina-error-severe-error-listenerstart http://tomcat.apache.org/tomcat-6.0-doc/logging.html http://mythinkpond.com/2011/07/01/tomcat-6-infamous-severe-error-listenerstart-message-how-to-debug-this