One or more listeners failed to start. Full details will be found in the appropriate container log
最新推荐文章于 2023-05-15 21:53:04 发布
最新推荐文章于 2023-05-15 21:53:04 发布
Java EE 目录:
https://blog.csdn.net/dkbnull/article/details/87932809
搭建SpringMVC框架时,启动Tomcat报错:
One or more listeners failed to start. Full details will be found in the appropriate container log file
[2018-08-12 11:56:19,745] Artifact SpringMVCDemo:war exploded: Artifact is being deployed, please wait...
12-Aug-2018 11:56:20.338 严重 [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
12-Aug-2018 11:56:20.339 严重 [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/springmvcdemo] startup failed due to previous errors
Full details will be found in the appropriate container log file 意思是让我们在日志文件中查看详细报错信息,那日志文件在哪里呢?这里如果我们是使用idea调试,则日志文件存放在
C:\Users\Administrator\.IntelliJIdea2017.1\system\tomcat\Unnamed_SpringMVCDemo\logs
详细日志在
localhost.2018-08-12.log
文件中。
我们打开localhost.2018-08-12.log文件,发现报错信息为
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
12-Aug-2018 11:32:57.554 严重 [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:509)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:490)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:118)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4775)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1696)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:484)
at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:433)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)
at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:324)
at sun.rmi.transport.Transport$1.run(Transport.java:200)
at sun.rmi.transport.Transport$1.run(Transport.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
12-Aug-2018 11:32:57.554 严重 [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.StandardContext.listenerStart Skipped installing application listeners due to previous error(s)
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 意思为找不到“org.springframework.web.context.ContextLoaderListener”类,ContextLoaderListener类在
spring-web.jar
包下,检查环境,已经引入了该jar包,可编译器还是报找不到ContextLoaderListener类错误,仔细查看编译后输出
out\artifacts\SpringMVCDemo_war_exploded\WEB-INF\lib\
发现lib文件夹下是空的,原来是使用idea自动搭建的框架,lib并没有放在
web\WEB-INF\lib
中,将所需要的jar全拷贝到该文件夹下即可。
今日搭建一个web应用的时候总是遇到tomcat报错:one or more
listener
s
failed
to s
tar
t. Full detail balabale....而且还没有其他提示,就这样应用就启动不了了。
### 思路首先提供一下解决问题的思路
1. 在WEB-INF/classes路径下创建一个
log
ging.p
rop
erties文件2. 添加以下内容````p
rop
er...
今日搭建一个web应用的时候总是遇到tomcat报错:
one or more
listener
s
failed
to s
tar
t. Full detail balabale…
而且还没有其他提示,就这样应用就启动不了了。
首先提供一下解决问题的思路
在WEB-INF/classes路径下创建一个
log
ging.p
rop
erties文件
添加以下内容
org.apache.catalina.core.
Container
Base.[Catalina].level=INFO
org.apache.ca
one or more
listener
s
failed
. Full
details
will be found in the
app
rop
ria
te
container
log
file
这句话的字面意思就是:一个或多个侦听器无法启动。完整的详细信息将在相...
08-Jul-2017 21:45:26.064 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardCon
te
xt.s
tar
tIn
te
rnal One or more
listener
s
failed
t...
报错信息:One or more
listener
s
failed
to s
tar
t. Full
details
will be found in the
app
rop
ria
te
container
log
file.
具体就是web.xml此配置报错:
启动tomcat的时候报如下错误:
log
4j:WARN No such p
rop
erty [maxFileSize] in org.apache.
log
4j.DailyRollingFile
App
ender.
log
4j:WARN No such p
rop
erty [maxBackupIndex] in org.apache.
log
4j.DailyRollingFile
App
ender.
org.apache.catalina.core.StandardCon
te
xt.s
tar
tIn
te
rnal 一个或多个
listener
s启动失败,更多详细信息查看对应的容器日志文件
org.apache.catalina.core.StandardCon
te
xt.s
tar
tIn
te
rnal 由于之前的错误,Con
te
xt[/demo4_war]启动失败
网上有各种各样的解决方法大部分原因是因为
Spring
-web包没有导入成功导致(前提是pom.xml中已经导入
Spring
-web坐标)
解决方法为ctr
org.apache.catalina.core.StandardCon
te
xt.s
tar
tIn
te
rnal One or more
listener
s
failed
to s
tar
t. Full
details
will be found in the
app
rop
ria
te
container
log
file
由Con
te
xtLoader
Listener
引起的错误大坑,搞了几个小时
我的ss...
七月 06, 2015 7:10:27 上午 org.apache.catalina.core.StandardCon
te
xt s
tar
tIn
te
rnal
严重: One or more Fil
te
rs
failed
to s
tar
t. Full
details
will be found in the
app
rop
ria
te
container
log
file
七月 06, 2015 7:
严重 [main]org.apache.catalina.core.StandardCon
te
xt.s
tar
tIn
te
rnal一个或多个
listener
s启动失败,更多详细信息查看对应的容器日志文件
严重 [main]org.apache.catalina.core.StandardCon
te
xt.s
tar
tIn
te
rnal由于之前的错误,Con
te
xt[/xxxxxx]启动失败
今天使用idea启动tomcat时报错,控制台的错误信息只有一句:One or more
listener
s
failed
to s
tar
t。没有其他的任何错误信息。
最快的解决方案是:在classes目录下面添加一个配置文件
log
ging.p
rop
erties内容为:
handlers = org.apache.juli.FileHandler,
java
.util.
log
ging.Con...
这个时候可以打开tomcat localhost
log
,并且找到原因,如下图:
就可以根据这个问题去搜索解决办法啦。我是因为导入项目的时候,没有将src和resources文件夹设置为Source文件夹和Resources文件夹,所以出现找不到的错误。
08-Mar-2019 23:32:39.015 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardCon
te
xt.s
tar
tIn
te
rnal One or more
listener
s
failed
...