`
08284008
  • 浏览: 49018 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

jdk版本引发的报错

 
阅读更多

唉,一直以来的问题终于得到解决了。

我写的程序;开发环境是jdk1.6,tomcat6.0和mysql,开发工具是eclipse。

程序放到客户的linux服务器上总是报404错误,tomcat的日志是这样的:

2011-12-14 9:34:31 org.apache.catalina.startup.HostConfig checkResources
信息: Undeploying context [/KaoQin]
2011-12-14 9:34:31 org.apache.catalina.startup.HostConfig deployWAR
信息: Deploying web application archive KaoQin.war
2011-12-14 9:34:34 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(/usr/tomcat/webapps/KaoQin/WEB-INF/lib/javax.servlet-5.1.12.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2011-12-14 9:34:38 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2011-12-14 9:34:38 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
2011-12-14 9:34:38 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2011-12-14 9:34:38 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2011-12-14 9:41:21 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.5.0_16/jre/lib/i386/server:/usr/java/jdk1.5.0_16/jre/lib/i386:/usr/java/jdk1.5.0_16/jre/../lib/i386
2011-12-14 9:41:21 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2011-12-14 9:41:21 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 676 ms
2011-12-14 9:41:21 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2011-12-14 9:41:21 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.29
2011-12-14 9:41:21 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
2011-12-14 9:41:21 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor host-manager.xml
2011-12-14 9:41:21 org.apache.catalina.startup.HostConfig deployWAR
信息: Deploying web application archive JiuFeng.war
2011-12-14 9:41:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2011-12-14 9:41:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
2011-12-14 9:41:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2011-12-14 9:41:25 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2011-12-14 9:41:25 org.apache.catalina.startup.HostConfig deployWAR
信息: Deploying web application archive KaoQin.war
2011-12-14 9:41:27 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(/usr/tomcat/webapps/KaoQin/WEB-INF/lib/javax.servlet-5.1.12.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2011-12-14 9:41:31 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2011-12-14 9:41:31 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
2011-12-14 9:41:31 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2011-12-14 9:41:31 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]

2011-12-14 9:41:31 org.apache.catalina.core.StandardContext start
严重: Error filterStart

2011-12-14 9:41:31 org.apache.catalina.core.StandardContext start
严重: Context [/KaoQin] startup failed due to previous errors

2011-12-14 9:41:36 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/KaoQin] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@8bd3bb]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1f9b804]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.

2011-12-14 9:41:37 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2011-12-14 9:41:37 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory Forum
2011-12-14 9:41:38 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory examples

2011-12-14 9:41:38 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
2011-12-14 9:41:42 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080

2011-12-14 9:41:42 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009

2011-12-14 9:41:42 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/95  config=null
2011-12-14 9:41:42 org.apache.catalina.startup.Catalina start
信息: Server startup in 21671 ms

 

几番挣扎,发现客户服务器上的jdk是1.5的,于是怀疑是jdk的版本问题,回来在自己的服务器上安装也有这样的问题。

需要将项目用jdk1.5的编译。

0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics