高手帮忙诊断下,万分感谢

cragsman 发布于 2014/08/30 02:36
阅读 312
收藏 0

一个java web项目,客户追加了一些功能(v4.0),在原来的环境中老版本(v3.0)还要运行,新版本和旧版本的发布目录是平行的。

以下是生产环境的一些信息:
------------------------------------------------------
Using CATALINA_BASE:   /xxx/apache-tomcat-5.5.33
Using CATALINA_HOME:   /xxx/apache-tomcat-5.5.33
Using CATALINA_TMPDIR: /xxx/apache-tomcat-5.5.33/temp
Using JRE_HOME:        /xxx/jdk1.5.0_20
Using CLASSPATH:       /xxx/apache-tomcat-5.5.33/bin/bootstrap.jar
Server version: Apache Tomcat/5.5.33
Server built:   Feb 8 2011 05:13:31
Server number:  5.5.33.0
OS Name:        Linux
OS Version:     2.6.32-279.el6.i686
Architecture:   i386
JVM Version:    1.5.0_20-b02
JVM Vendor:     Sun Microsystems Inc.
-------------------------------------------------

旧版本系统路径:/xxx/stastt3/WebContent
新版本系统路径:/xxx/stastt/WebContent
新旧版本的系统里面的文件目录结构都是完全一样的,新版本只是追加了一点功能。

/xxx/apache-tomcat-5.5.33/conf/Catalina/localhost下有2个配置文件:
1.stastt.xml
<?xml version="1.0" encoding="UTF-8"?>
<Context
    docBase="/xxx/stastt/WebContent"
    reloadable="true"
    workDir="/xxx/stastt/WebContent/WEB-INF/classes">

<Resource name="jdbc/Mysql"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/STADB3"
username="root"
password="xxx"
maxActive="1000"
maxIdle="30"
maxWait="10000"
useUnicode="true"
characterEncoding="UTF-8"
/> 
<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false">
<Store className="org.apache.catalina.session.FileStore" />
</Manager>

</Context>

2.stastt3.xml
<?xml version="1.0" encoding="UTF-8"?>
<Context
    docBase="/xxx/stastt3/WebContent"
    reloadable="true"
    workDir="/xxx/stastt3/WebContent/WEB-INF/classes">

<Resource name="jdbc/Mysql"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/STADB3"
username="root"
password="xxx"
maxActive="1000"
maxIdle="30"
maxWait="10000"
useUnicode="true"
characterEncoding="UTF-8"
/> 
<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false">
<Store className="org.apache.catalina.session.FileStore" />
</Manager>

</Context>
现在的问题是启动tomcat后,只有一个应用可以用如果删除掉stastt.xml,则stastt3可用,反之亦然。

错误log如下:

2014-8-30 2:28:45 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: /xxx/jdk1.5.0_20/jre/lib/i386/client:/xxx/jdk1.5.0_20/jre/lib/i386:/xxx/jdk1.5.0_20/jre/../lib/i386
2014-8-30 2:28:45 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8888
2014-8-30 2:28:45 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 728 ms
2014-8-30 2:28:45 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2014-8-30 2:28:45 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.33
2014-8-30 2:28:45 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
2014-8-30 2:28:46 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2014-8-30 2:28:46 org.apache.catalina.core.StandardContext start
严重: Context [/stastt] startup failed due to previous errors
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
[DEBUG] 2014-08-30 02:28:47,989 -- JspRuntimeContext Parent class loader is: WebappClassLoader
  delegate: false
  repositories:
    /WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@1f48262

[DEBUG] 2014-08-30 02:28:47,993 -- JspRuntimeContext Compilation classpath initialized: /xxx/stastt3/WebContent/WEB-INF/classes/:/xxx/stastt3/WebContent/WEB-INF/lib/activation-1.1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/antlr-2.7.6.jar:/xxx/stastt3/WebContent/WEB-INF/lib/cglib-nodep-2.2_beta1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/classes12.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-beanutils-1.7.0.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-collections-3.2.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-dbcp-1.2.1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-digester-1.8.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-fileupload-1.1.1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-io-1.3.1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-lang-2.3.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-logging-1.1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-logging-adapters-1.1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-net-1.4.1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-validator-1.1.4.jar:/xxx/stastt3/WebContent/WEB-INF/lib/dom4j-1.6.jar:/xxx/stastt3/WebContent/WEB-INF/lib/dwr-1.1.4.jar:/xxx/stastt3/WebContent/WEB-INF/lib/ehcache-1.1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/hibernate2.jar:/xxx/stastt3/WebContent/WEB-INF/lib/iTextAsian-1.03.jar:/xxx/stastt3/WebContent/WEB-INF/lib/iTextAsianCmaps-1.03.jar:/xxx/stastt3/WebContent/WEB-INF/lib/ibatis-2.3.0.jar:/xxx/stastt3/WebContent/WEB-INF/lib/ibatis-dao-2.2.0.jar:/xxx/stastt3/WebContent/WEB-INF/lib/itext-1.4.6.jar:/xxx/stastt3/WebContent/WEB-INF/lib/jakarta-oro-2.0.8.jar:/xxx/stastt3/WebContent/WEB-INF/lib/jasperreports-1.2.1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/jaxen-full-1.0.jar:/xxx/stastt3/WebContent/WEB-INF/lib/jcommon-1.0.6.jar:/xxx/stastt3/WebContent/WEB-INF/lib/jfreechart-1.0.3.jar:/xxx/stastt3/WebContent/WEB-INF/lib/jstl-1.0.5.jar:/xxx/stastt3/WebContent/WEB-INF/lib/jta.jar:/xxx/stastt3/WebContent/WEB-INF/lib/log4j-1.2.14.jar:/xxx/stastt3/WebContent/WEB-INF/lib/mail-1.4.jar:/xxx/stastt3/WebContent/WEB-INF/lib/mlibwrapper_jai.jar:/xxx/stastt3/WebContent/WEB-INF/lib/mysql-connector-java-5.1.5-bin.jar:/xxx/stastt3/WebContent/WEB-INF/lib/odmg-3.0.jar:/xxx/stastt3/WebContent/WEB-INF/lib/poi-3.0-rc4-20070503.jar:/xxx/stastt3/WebContent/WEB-INF/lib/poi-contrib-3.0-rc4-20070503.jar:/xxx/stastt3/WebContent/WEB-INF/lib/poi-scratchpad-3.0-rc4-20070503.jar:/xxx/stastt3/WebContent/WEB-INF/lib/postgresql-8.3-604.jdbc3.jar:/xxx/stastt3/WebContent/WEB-INF/lib/postgresql-8.3-604.jdbc4.jar:/xxx/stastt3/WebContent/WEB-INF/lib/quartz-1.5.2.jar:/xxx/stastt3/WebContent/WEB-INF/lib/saxpath-1.0.jar:/xxx/stastt3/WebContent/WEB-INF/lib/spring-full-1.2.8.jar:/xxx/stastt3/WebContent/WEB-INF/lib/sqljdbc.jar:/xxx/stastt3/WebContent/WEB-INF/lib/standard-1.0.5.jar:/xxx/stastt3/WebContent/WEB-INF/lib/struts-1.2.9.jar:/xxx/stastt3/WebContent/WEB-INF/lib/tmsbase.jar:/xxx/stastt3/WebContent/WEB-INF/lib/tmsbase_auth.jar:/xxx/stastt3/WebContent/WEB-INF/lib/velocity-1.4.jar:/xxx/stastt3/WebContent/WEB-INF/lib/velocity-tools-1.3.jar:/xxx/stastt3/WebContent/WEB-INF/classes:/xxx/stastt3/WebContent/WEB-INF/classes/:/xxx/stastt3/WebContent/WEB-INF/lib/activation-1.1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/antlr-2.7.6.jar:/xxx/stastt3/WebContent/WEB-INF/lib/cglib-nodep-2.2_beta1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/classes12.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-beanutils-1.7.0.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-collections-3.2.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-dbcp-1.2.1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-digester-1.8.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-fileupload-1.1.1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-io-1.3.1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-lang-2.3.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-logging-1.1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-logging-adapters-1.1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-net-1.4.1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/commons-validator-1.1.4.jar:/xxx/stastt3/WebContent/WEB-INF/lib/dom4j-1.6.jar:/xxx/stastt3/WebContent/WEB-INF/lib/dwr-1.1.4.jar:/xxx/stastt3/WebContent/WEB-INF/lib/ehcache-1.1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/hibernate2.jar:/xxx/stastt3/WebContent/WEB-INF/lib/iTextAsian-1.03.jar:/xxx/stastt3/WebContent/WEB-INF/lib/iTextAsianCmaps-1.03.jar:/xxx/stastt3/WebContent/WEB-INF/lib/ibatis-2.3.0.jar:/xxx/stastt3/WebContent/WEB-INF/lib/ibatis-dao-2.2.0.jar:/xxx/stastt3/WebContent/WEB-INF/lib/itext-1.4.6.jar:/xxx/stastt3/WebContent/WEB-INF/lib/jakarta-oro-2.0.8.jar:/xxx/stastt3/WebContent/WEB-INF/lib/jasperreports-1.2.1.jar:/xxx/stastt3/WebContent/WEB-INF/lib/jaxen-full-1.0.jar:/xxx/stastt3/WebContent/WEB-INF/lib/jcommon-1.0.6.jar:/xxx/stastt3/WebContent/WEB-INF/lib/jfreechart-1.0.3.jar:/xxx/stastt3/WebContent/WEB-INF/lib/jstl-1.0.5.jar:/xxx/stastt3/WebContent/WEB-INF/lib/jta.jar:/xxx/stastt3/WebContent/WEB-INF/lib/log4j-1.2.14.jar:/xxx/stastt3/WebContent/WEB-INF/lib/mail-1.4.jar:/xxx/stastt3/WebContent/WEB-INF/lib/mlibwrapper_jai.jar:/xxx/stastt3/WebContent/WEB-INF/lib/mysql-connector-java-5.1.5-bin.jar:/xxx/stastt3/WebContent/WEB-INF/lib/odmg-3.0.jar:/xxx/stastt3/WebContent/WEB-INF/lib/poi-3.0-rc4-20070503.jar:/xxx/stastt3/WebContent/WEB-INF/lib/poi-contrib-3.0-rc4-20070503.jar:/xxx/stastt3/WebContent/WEB-INF/lib/poi-scratchpad-3.0-rc4-20070503.jar:/xxx/stastt3/WebContent/WEB-INF/lib/postgresql-8.3-604.jdbc3.jar:/xxx/stastt3/WebContent/WEB-INF/lib/postgresql-8.3-604.jdbc4.jar:/xxx/stastt3/WebContent/WEB-INF/lib/quartz-1.5.2.jar:/xxx/stastt3/WebContent/WEB-INF/lib/saxpath-1.0.jar:/xxx/stastt3/WebContent/WEB-INF/lib/spring-full-1.2.8.jar:/xxx/stastt3/WebContent/WEB-INF/lib/sqljdbc.jar:/xxx/stastt3/WebContent/WEB-INF/lib/standard-1.0.5.jar:/xxx/stastt3/WebContent/WEB-INF/lib/struts-1.2.9.jar:/xxx/stastt3/WebContent/WEB-INF/lib/tmsbase.jar:/xxx/stastt3/WebContent/WEB-INF/lib/tmsbase_auth.jar:/xxx/stastt3/WebContent/WEB-INF/lib/velocity-1.4.jar:/xxx/stastt3/WebContent/WEB-INF/lib/velocity-tools-1.3.jar:/xxx/apache-tomcat-5.5.33/common/i18n/tomcat-i18n-en.jar:/xxx/apache-tomcat-5.5.33/common/i18n/tomcat-i18n-es.jar:/xxx/apache-tomcat-5.5.33/common/i18n/tomcat-i18n-ja.jar:/xxx/apache-tomcat-5.5.33/common/i18n/tomcat-i18n-fr.jar:/xxx/apache-tomcat-5.5.33/common/lib/jsp-api.jar:/xxx/apache-tomcat-5.5.33/common/lib/jasper-compiler-jdt.jar:/xxx/apache-tomcat-5.5.33/common/lib/naming-factory-dbcp.jar:/xxx/apache-tomcat-5.5.33/common/lib/jasper-compiler.jar:/xxx/apache-tomcat-5.5.33/common/lib/jasper-runtime.jar:/xxx/apache-tomcat-5.5.33/common/lib/naming-resources.jar:/xxx/apache-tomcat-5.5.33/common/lib/commons-el.jar:/xxx/apache-tomcat-5.5.33/common/lib/servlet-api.jar:/xxx/apache-tomcat-5.5.33/common/lib/naming-factory.jar:/xxx/apache-tomcat-5.5.33/bin/bootstrap.jar:/xxx/jdk1.5.0_20/jre/lib/ext/localedata.jar:/xxx/jdk1.5.0_20/jre/lib/ext/sunpkcs11.jar:/xxx/jdk1.5.0_20/jre/lib/ext/dnsns.jar:/xxx/jdk1.5.0_20/jre/lib/ext/sunjce_provider.jar
[DEBUG] 2014-08-30 02:28:47,997 -- JspServlet Scratch dir for the JSP engine is: /xxx/stastt3/WebContent/WEB-INF/classes
[DEBUG] 2014-08-30 02:28:47,998 -- JspServlet IMPORTANT: Do not modify the generated servlets
2014-8-30 2:28:50 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-8888
2014-8-30 2:28:50 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2014-8-30 2:28:50 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/17  config=null
2014-8-30 2:28:50 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2014-8-30 2:28:50 org.apache.catalina.startup.Catalina start
信息: Server startup in 4946 ms
是两个项目发布后冲突了吗?我本人不是做java的,今天上线,折腾了半天也没搞定,请高手支招,谢谢啦!

以下是问题补充:

@cragsman:忘记说一句,之前的项目是用Eclipse JUNO export war的,现在用的是LUNA export war的,不过项目的jre依赖都是1.5,不会是IDE升级后编译出问题了吧?我看了看编译设置compiler compliance level是1.5。 (2014/08/30 02:41)
加载中
0
cragsman
cragsman
@红薯大哥,可以帮我看下吗?
返回顶部
顶部