Java IntelliJ Idea 12无法运行/部署web应用程序

Java IntelliJ Idea 12无法运行/部署web应用程序,java,tomcat,intellij-idea,Java,Tomcat,Intellij Idea,我有一个java应用程序,在Intellij12中设置了web模块。我正在尝试从IDE运行我的应用程序。然而,每次我点击run按钮时,都会出现这个错误 Application Server was not connected before run configuration stop, reason: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationExcep

我有一个java应用程序,在Intellij12中设置了web模块。我正在尝试从IDE运行我的应用程序。然而,每次我点击run按钮时,都会出现这个错误

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
我正在使用以下配置

你知道为什么没有运行吗?谢谢

我去下载了一个新版本的tomcat,将我的IDE指向它,我的问题就消失了。看起来我有tomcat 5.x,Intellij Idea 12不喜欢它


Intellij Idea 12似乎需要对基于JNI的应用程序的支持,而Tomcat 5.x却没有这种支持。

很难给出一致的答案,但它解决了Tomcat的问题。提取新的tomcat副本并重试,而不是当前副本。顺便说一句,在配置之前您是否单击了
+
?是的,我单击了。。。这是必需的为什么您的
$CATALINA_HOME
$CATALINA_BASE
不同?请尝试创建新的Tomcat配置好吗?