尝试将我们的应用程序从tomcat5迁移到tomcat7时遇到了很多麻烦。我终于找到了这个日志,这给了我一个线索,但是它非常模糊。这就是说的:

+ /usr/java/bin/java -Dnop -Dfile.encoding=UTF-8 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xmx1g -Xms256m -Djava.endorsed.dirs=/usr/local/apache-tomcat-7.0.30/endorsed -classpath /usr/local/apache-tomcat-7.0.30/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.30/bin/tomcat-juli.jar -Dcatalina.base=/software/tomcat-sbox7 -Dcatalina.home=/usr/local/apache-tomcat-7.0.30 -Djava.io.tmpdir=/software/tomcat-sbox7/temp org.apache.catalina.startup.Bootstrap start
Oct 4, 2012 2:13:10 PM org.apache.catalina.startup.Catalina initDirs
SEVERE: Cannot find specified temporary folder at /software/tomcat-sbox7/temp
Oct 4, 2012 2:13:10 PM org.apache.catalina.startup.Catalina load
WARNING: Unable to load server configuration from [/software/tomcat-sbox7/conf/server.xml]
Oct 4, 2012 2:13:10 PM org.apache.catalina.startup.Catalina initDirs
SEVERE: Cannot find specified temporary folder at /software/tomcat-sbox7/temp
Oct 4, 2012 2:13:10 PM org.apache.catalina.startup.Catalina load
WARNING: Unable to load server configuration from [/software/tomcat-sbox7/conf/server.xml]
Oct 4, 2012 2:13:10 PM org.apache.catalina.startup.Catalina start
SEVERE: Cannot start server. Server instance is not configured.


我不知道为什么这些东西无法加载。有没有地方我可以找到更全面的日志,或者您有一些想法可以尝试使之工作?

最佳答案

事实证明,应用程序的catalina.properties中的common.loader是:

common.loader=${catalina.home}/lib


它必须是:

common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar

07-24 20:42