[英]IntelliJ Idea 12 CANNOT run/deploy web application
我有一個在IntelliJ 12中設置了Web模塊的Java應用程序。我試圖從IDE運行我的應用程序。 但是,每次我按下運行按鈕時,都會出現此錯誤
Application Server was not connected before run configuration stop, reason:
java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketException: Connection reset]
我也得到以下輸出:
[2014-02-07 05:42:22,126] Artifact arisk.dashboard:war: Server is not connected. Deploy is not available.
Using CATALINA_BASE: "C:\.IntelliJIdea12\system\tomcat\Unnamed_AtlasRisk"
Using CATALINA_HOME: "C:\apps\apache\jakarta\tomcat\"
Using CATALINA_TMPDIR: "C:\apps\apache\jakarta\tomcat\temp"
Using JRE_HOME: "C:\Program Files\Java\jdk1.7.0_07"
Using CLASSPATH: "C:\apps\apache\jakarta\tomcat\\bin\bootstrap.jar"
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-client to select the "client" VM
...
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.
Disconnected from server
我正在使用以下配置
知道為什么它不運行嗎? 謝謝
我去了http://tomcat.apache.org/download-60.cgi並下載了新版本的tomcat,將我的IDE指向了它,而我的問題就消失了。 看來我安裝了tomcat 5.x,而Intellij Idea 12卻不喜歡它。
看來Intellij Idea 12需要支持Tomcat 5.x所沒有的基於JNI的應用程序。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.