0

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

play war mainindonesia -o ROOT --zip

`生成名为 ROOT.war 的 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!!

`谁能告诉我我该怎么办?

4

1 回答 1

1

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

于 2011-07-23T19:39:12.597 回答