简体   繁体   English

无法部署到谷歌应用引擎

[英]Can't deploy to google apps engine

I have a little application which is working fine when testing is on localhost. 我有一个小应用程序,当在localhost上进行测试时工作正常。

But when I want to deploy it to google app engine server, I have thoses errors : 但是当我想将它部署到谷歌应用引擎服务器时,我遇到了错误:

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

Usefull files (I think) are here : http://pastebin.com/zuELG18u 有用的文件(我认为)在这里: http ://pastebin.com/zuELG18u

Does your project use GWT for the client side? 您的项目是否为客户端使用GWT? Your deployment is failing when it is trying to do a special GWT compliation step. 当您尝试执行特殊的GWT补充步骤时,您的部署失败。

I believe your problem is that your RDFServlet class is part of a GWT module, which is not what you are intending. 我相信你的问题是你的RDFServlet类是GWT模块的一部分,这不是你想要的。

The default Eclipse project for GAE comes preconfigured to work with GWT. GAE的默认Eclipse项目预先配置为与GWT一起使用。 The package is structure in the example is like this: 该示例中的包结构如下:

client/    <--- GWT code (for client side, compiled to JavaScript)
shared/    <--- Code necessary on both the client and server
server/    <--- Server side code

When GWT compiles client/ down to JavaScript, it needs the full source of all its dependencies, and there are many classes that should not be referenced. 当GWT将client / down编译为JavaScript时,它需要所有依赖项的完整源代码,并且有许多类不应该被引用。 However, it seems that you have a servlet ( RDFServlet ) in the "client" package. 但是,您似乎在“client”包中有一个servlet( RDFServlet )。

You probably want to either disable GWT in your project, or move RDFServlet into a package that is not part of a GWT module. 您可能希望在项目中禁用GWT,或者将RDFServlet移动到不属于GWT模块的包中。 (For example, if you are using the Eclipse sample project, Servlets would be put somewhere under the 'server' package. (例如,如果您正在使用Eclipse示例项目,则Servlets将放在“server”包下的某个位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法部署GAE(Google App Engine)应用程序(Java SDK) - Couldn't deploy GAE (Google App Engine) application (Java SDK) 我无法将基于教程的项目部署到Google Application Engine - I can not deploy tutorial based project to Google Application Engine 无法部署到 Google App Engine,原因是:默认服务(模块)可能不会被删除,并且必须至少包含一个版本 - Can't deploy to Google App Engine due to: The default service (module) may not be deleted, and must comprise at least one version 无法访问管理控制面板或部署 App Engine 应用程序 - Can't Access Admin Control Panel or Deploy App Engine App 在Google App Engine上部署应用程序 - Deploy the app on Google App Engine 谷歌应用引擎部署错误 - error with google app engine deploy 无法上传到谷歌应用引擎 - Can't upload to google app engine 在Google App Engine上部署时部署失败(用于在App Engine上上传) - Deploy Failed when Deploy on google App Engine (for upload on app engine) Java + Google Web工具包(Google Apps引擎) - java + google web toolkit (google apps engine) Google App Engine JSP无法部署:java.lang.RuntimeException:无法获取System Java Compiler。请使用JDK,而不是JRE - Google App Engine JSP can't deploy: java.lang.RuntimeException: Cannot get the System Java Compiler. Please use a JDK, not a JRE
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM