簡體   English   中英

GWT無法在開發模式下工作

[英]GWT not working in development mode

我正在嘗試運行一個用GWT創建的項目。 在Intellij Idea中,我創建了以下類型的GWT配置類型的運行配置:

  • 開發人員模式參數:

    -noserver -bindAddress 127.0.0.1 -codeServerPort 9997 -war D:\\ projects \\ greensoft \\ trunk \\ out \\ artifacts \\ sd_extern_war_exploded

  • 服務器:默認

當我開始打印時:

Connected to the target VM, address: '127.0.0.1:60552', transport: 'socket'
Nov 28, 2014 12:45:31 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Dev Mode initialized. Startup URLs: 
http://127.0.0.1:8888/chestionar.html?gwt.codesvr=127.0.0.1:9997
http://127.0.0.1:8888/index.html?gwt.codesvr=127.0.0.1:9997

但是,當我啟動服務器時,此網址不起作用:

http://localhost:8080/sd-extern/chestionar.html?gwt.codesvr=127.0.0.1:9997

出現錯誤警告:

Plugin failed to connect to Development Mode server at 127.0.0.1:9997

有任何想法嗎?

謝謝你,特金

您還應該看到指向https://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM的鏈接

也許只是嘗試使用http://127.0.0.1:8080而不是http://localhost:8080

也許您沒有為IntelliJ模塊添加Web Facet。 您可以在“項目結構”對話框的“模塊”選項卡中看到它。 該模塊下應具有GWT構面和Web構面。

謝謝您的回答。 我終於找到了問題:該應用程序使用了另一個具有GWT構面的應用程序(我沒有在Idea中創建)。 我沒想到要提到存在多個模塊的事實,所以我想這是我的錯:)

暫無
暫無

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

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