eclipse org.apache.catalina.core.StandardContext startInternal 严重:错误 listenerStart
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12873674/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart
提问by Mas
Just trying to deploy web service war file but could not make it using apache tomcat 7. I tried sample war file and it works fine just accesing from browser localhost:8080/sample so sure that my tomcat is well configured. just copying the war under webapps/ and deploy it but same message: description The requested resource is not available. I am wondering if web service application shows another way to deploy it ??? here is a content of catalina.log file:
只是试图部署 web 服务War文件,但无法使用 apache tomcat 7 来实现。我尝试了示例War文件,它工作正常,只需从浏览器 localhost:8080/sample 访问,确保我的 tomcat 配置良好。只需复制 webapps/ 下的War并部署它,但相同的消息:描述请求的资源不可用。我想知道 Web 服务应用程序是否显示了另一种部署方式???这是 catalina.log 文件的内容:
4:28:25 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
4:28:25 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/APP] startup failed due to previous errors
Oct 12, 2012 4:28:25 PM org.apache.catalina.startup.HostConfig deployDirectory
Any idea ??
任何的想法 ??
回答by RenRen
I had a similar problem. The catalina.out logged this log Message
我有一个类似的问题。catalina.out 记录了这个日志消息
Apr 17, 2013 5:14:46 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart
2013 年 4 月 17 日下午 5:14:46 org.apache.catalina.core.StandardContext start 严重:错误 listenerStart
The error is caused when a exception is thrown while the server is starting.
该错误是在服务器启动时抛出异常引起的。
To figure out what is causing the you should look at localhost.log(in the same directory as catalina.out) not catalina.out, you should be able to see the exception that caused the error
要找出导致错误的原因,您应该查看localhost.log(与 catalina.out 位于同一目录中)而不是 catalina.out,您应该能够看到导致错误的异常
回答by Nickmancol
You can check the error by adding a logging.properties file in your WEB-INF/classes folder with the following contents:
您可以通过在您的 WEB-INF/classes 文件夹中添加一个 logging.properties 文件来检查错误,其中包含以下内容:
org.apache.catalina.core.ContainerBase.[Catalina].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].handlers = java.util.logging.ConsoleHandler
org.apache.catalina.core.ContainerBase.[Catalina].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].handlers = java.util.logging.ConsoleHandler