java 严重:空组件 Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/myproject,J2EEApplication=none,J2EEServer=none

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

SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/myproject,J2EEApplication=none,J2EEServer=none

tomcatjavajdk1.6

提问by kitokid

I have the following problem. I used jdk1.6.0_23to compile my project with eclipse. but in the server enviroment, tomcat is running with jre1.6.0_31.

我有以下问题。我使用jdk1.6.0_23用 eclipse 编译我的项目。但是在服务器环境中,tomcat 运行的是jre1.6.0_31

What might the cause of SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/myproject,J2EEApplication=none,J2EEServer=none

可能是什么原因 SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/myproject,J2EEApplication=none,J2EEServer=none

May 18, 2012 3:40:41 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jre1.6.0_31/lib/amd64/server:/usr/java/jre1.6.0_31/lib/amd64:/usr/java/jre1.6.0_31/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
May 18, 2012 3:40:41 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8084
May 18, 2012 3:40:41 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 436 ms
May 18, 2012 3:40:41 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 18, 2012 3:40:41 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.27
May 18, 2012 3:40:41 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 18, 2012 3:40:41 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/home/vas/servers/twit_tomcat/webapps/snp/WEB-INF/lib/jetty-jsp-api-2.1.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/jsp/JspPage.class
May 18, 2012 3:40:41 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/home/vas/servers/twit_tomcat/webapps/snp/WEB-INF/lib/jsp-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/jsp/JspPage.class
May 18, 2012 3:40:41 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/home/vas/servers/twit_tomcat/webapps/snp/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
May 18, 2012 3:40:41 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/home/vas/servers/twit_tomcat/webapps/snp/WEB-INF/lib/servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
May 18, 2012 3:40:43 PM org.apache.commons.modeler.Registry registerComponent
SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/myproject,J2EEApplication=none,J2EEServer=none
May 18, 2012 3:40:43 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8084
May 18, 2012 3:40:43 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8012
May 18, 2012 3:40:43 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/18  config=null
May 18, 2012 3:40:43 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
May 18, 2012 3:40:43 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2116 ms

采纳答案by kitokid

That might be a problem of conflicting jar file. when I deleted jetty jars and two servlet jars from the WEBINF/lib folder, it is ok.

那可能是jar文件冲突的问题。当我从 WEBINF/lib 文件夹中删除 jetty jar 和两个 servlet jar 时,就可以了。

回答by atom217

update server jre environment of tomcat instance

更新tomcat实例的服务器jre环境

回答by Noumenon

I got this when my project was using JRE 8 instead of JDK 8.

当我的项目使用 JRE 8 而不是 JDK 8 时,我得到了这个。