我有以下问题。我用 jdk1.6.0_23 用eclipse编译了我的项目。但是在服务器环境中,tomcat与 jre1.6.0_31一起 运行。
可能是什么原因 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
这可能是与jar文件冲突的问题。当我从WEBINF / lib文件夹中删除码头罐和两个servlet罐时,就可以了。