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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值