簡體   English   中英

無法部署到谷歌應用引擎

[英]Can't deploy to google apps engine

我有一個小應用程序,當在localhost上進行測試時工作正常。

但是當我想將它部署到谷歌應用引擎服務器時,我遇到了錯誤:

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

有用的文件(我認為)在這里: http ://pastebin.com/zuELG18u

您的項目是否為客戶端使用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時,它需要所有依賴項的完整源代碼,並且有許多類不應該被引用。 但是,您似乎在“client”包中有一個servlet( RDFServlet )。

您可能希望在項目中禁用GWT,或者將RDFServlet移動到不屬於GWT模塊的包中。 (例如,如果您正在使用Eclipse示例項目,則Servlets將放在“server”包下的某個位置。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM