Java 无法部署到google apps引擎

Java 无法部署到google apps引擎,java,google-app-engine,Java,Google App Engine,我有一个小应用程序,当在本地主机上进行测试时,它运行良好 但当我想将其部署到google app engine服务器时,我有以下错误: Compiling module org.magnetik.semola.Org_magnetik Validating newly compiled units Ignored 1 unit with compilation errors in first pass. Compile with -strict or with -logLeve

我有一个小应用程序,当在本地主机上进行测试时,它运行良好

但当我想将其部署到google app engine服务器时,我有以下错误:

Compiling module org.magnetik.semola.Org_magnetik
   Validating newly compiled units
      Ignored 1 unit with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
   Finding entry point classes
      [ERROR] Errors in 'file:/C:/Users/magnetik/git/semola-rdf/org.magnetik/src/org/magnetik/semola/client/RDFServlet.java'
         [ERROR] Line 13: No source code is available for type javax.servlet.http.HttpServlet; did you forget to inherit a required module?
         [ERROR] Line 16: No source code is available for type javax.servlet.http.HttpServletRequest; did you forget to inherit a required module?
         [ERROR] Line 16: No source code is available for type javax.servlet.http.HttpServletResponse; did you forget to inherit a required module?
         [ERROR] Line 25: No source code is available for type com.hp.hpl.jena.rdf.model.Model; did you forget to inherit a required module?
         [ERROR] Line 25: No source code is available for type com.hp.hpl.jena.rdf.model.ModelFactory; did you forget to inherit a required module?
         [ERROR] Line 37: No source code is available for type java.io.ByteArrayInputStream; did you forget to inherit a required module?
      [ERROR] Unable to find type 'org.magnetik.semola.client.RDFServlet'
         [ERROR] Hint: Previous compiler errors may have made this type unavailable
         [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly

我认为有用的文件在这里:

您的项目是否在客户端使用GWT?当您的部署尝试执行一个特殊的GWT兼容步骤时,它失败了

我相信您的问题在于RDFServlet类是GWT模块的一部分,这不是您想要的

GAE的默认Eclipse项目预先配置为与GWT一起使用。示例中的包结构如下所示:

client/    <--- GWT code (for client side, compiled to JavaScript)
shared/    <--- Code necessary on both the client and server
server/    <--- Server side code
当GWT将client/down编译为JavaScript时,它需要所有依赖项的完整源代码,并且有许多类不应该被引用。但是,在客户机包中似乎有一个servlet RDFServlet


您可能希望在项目中禁用GWT,或者将RDFServlet移动到不属于GWT模块的包中。例如,如果您使用的是Eclipse示例项目,servlet将放在“服务器”包的某个地方。

您能否检查gwt.xml是否包含所有需要的模块。例如,对于使用GWT XML,您需要继承XML模块,比如:我没有使用任何GWT工具,禁用Eclipse中的GWT工具特性就可以了。谢谢