我有一个在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
我使用以下配置
知道为什么这不运行?致谢
答案 0 :(得分:1)
我去了http://tomcat.apache.org/download-60.cgi并下载了一个新版本的tomcat,指向我的IDE并且我的问题已经消失了。看起来我有tomcat 5.x和Intellij Idea 12不喜欢它。
看起来Intellij Idea 12需要支持Tomcat 5.x没有的基于JNI的应用程序。