简体   繁体   English

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

[英]IntelliJ Idea 12 CANNOT run/deploy web application

I have a java application with web module set up in IntelliJ 12. I am trying to run my application from the IDE. 我有一个在IntelliJ 12中设置了Web模块的Java应用程序。我试图从IDE运行我的应用程序。 However, everytime I hit the run button I get this error 但是,每次我按下运行按钮时,都会出现此错误

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]

I get the following output as well: 我也得到以下输出:

    [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

I am using the following configuration 我正在使用以下配置

在此处输入图片说明

Any idea why is this not running? 知道为什么它不运行吗? THANKS 谢谢

I went to http://tomcat.apache.org/download-60.cgi and downloaded a new version of tomcat, pointed my IDE to it and my problems were gone. 我去了http://tomcat.apache.org/download-60.cgi并下载了新版本的tomcat,将我的IDE指向了它,而我的问题就消失了。 It looks like I had tomcat 5.x and Intellij Idea 12 doesn't like it. 看来我安装了tomcat 5.x,而Intellij Idea 12却不喜欢它。

It look like Intellij Idea 12 require support for JNI based application which Tomcat 5.x doesn't have. 看来Intellij Idea 12需要支持Tomcat 5.x所没有的基于JNI的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM