Java Tomcat 7.0.42 错误 listenerStart

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22075543/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 13:26:01  来源:igfitidea点击:

Tomcat 7.0.42 Error listenerStart

javatomcatdeployment

提问by RanPaul

Am deploying my war file on tomcat(jdk 7) and am seeing following error. Am not sure of whats causing the issue.

我正在 tomcat(jdk 7) 上部署我的 war 文件并且看到以下错误。我不确定是什么导致了这个问题。

INFO: OpenSSL successfully initialized (OpenSSL 1.0.1d 5 Feb 2013)
Feb 27, 2014 11:02:50 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8081"]
Feb 27, 2014 11:02:50 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
Feb 27, 2014 11:02:50 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1588 ms
Feb 27, 2014 11:02:50 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Feb 27, 2014 11:02:50 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.42
Feb 27, 2014 11:02:50 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive D:\Dev\tools\apache-tomcat-7.0.42\webapp
s\CollaborationPortal.war
Feb 27, 2014 11:03:09 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
Feb 27, 2014 11:03:09 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
Feb 27, 2014 11:03:09 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Feb 27, 2014 11:03:09 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/CollaborationPortal] startup failed due to previous errors
Feb 27, 2014 11:03:09 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8081"]
Feb 27, 2014 11:03:09 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-apr-8009"]
Feb 27, 2014 11:03:09 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 18890 ms

采纳答案by Szymon Jednac

You can reconfigure java.utils.loggingby adding /WEB-INF/classes/logging.propertiesto your war archive:

您可以通过添加到您的战争档案来重新配置java.utils.logging/WEB-INF/classes/logging.properties

org.apache.catalina.core.ContainerBase.[Catalina].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].handlers = java.util.logging.ConsoleHandler

The actual error message should then be visible. Also, check your application logs, if an additional logging framework is already configured (eg. log4j).

然后应该可以看到实际的错误消息。此外,如果已经配置了额外的日志框架(例如 log4j),请检查您的应用程序日志。

回答by Rishabh Mehta

There might be a mismatch in the JDK version you have installed and the JDK with which you are trying to build your project.

您安装的 JDK 版本可能与您尝试构建项目的 JDK 版本不匹配。

1)If you are using Eclipse.Go to Windows->Preferences->Compiler->checkthe compiler compliance level (It should match with your installed JDK)

1)如果您使用的是Eclipse.转到Windows->Preferences->Compiler->check编译器合规性级别(它应该与您安装的 JDK 匹配)

2)

2)