Playframework 1.2.1在Tomcat上部署失败?

时间:2011-07-23 18:18:28

标签: tomcat deployment playframework failover

大家好,任何人都可以帮助我,我用这个命令生成我的游戏应用程序

play war mainindonesia -o ROOT --zip

`生成的WAR文件名为ROOT.war,然后我将文件上传到tomcat 6下的webapps目录下的服务器。部署此错误时,将显示在LOG。

INFO: validateJarFile(/usr/local/shared/tomcat/mainindonesia/webapps/ROOT/WEB-INF/lib/geronimo-servlet_2.5_spec-1.2.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
08:11:14,939 INFO  ~ Starting /usr/local/shared/tomcat/mainindonesia/webapps/ROOT/WEB-INF/application
08:11:14,941 WARN  ~ Declaring modules in application.conf is deprecated. Use dependencies.yml instead (module.crud)
08:11:14,942 ERROR ~ Module crud will not be loaded because /usr/local/shared/tomcat/mainindonesia/webapps/ROOT/WEB-INF/modules/crud does not exist
08:11:14,942 WARN  ~ Declaring modules in application.conf is deprecated. Use dependencies.yml instead (module.secure)
08:11:14,942 ERROR ~ Module secure will not be loaded because /usr/local/shared/tomcat/mainindonesia/webapps/ROOT/WEB-INF/modules/secure does not exist
08:11:14,942 INFO  ~ Module secure is available (/usr/local/shared/tomcat/mainindonesia/webapps/ROOT/WEB-INF/application/modules/secure)
08:11:14,943 INFO  ~ Module crud is available (/usr/local/shared/tomcat/mainindonesia/webapps/ROOT/WEB-INF/application/modules/crud)
08:11:15,041 ERROR ~ Precompiled classes are missing!!

`任何人都可以告诉我该怎么办?

1 个答案:

答案 0 :(得分:1)

你不能将servlet.jar添加到war文件中,因为它与tomcats实现冲突...你可以针对javax/servlet/Servlet.class编译,但不能在战争中捆绑它。