TomEE Intellij Idea:远程部署

时间:2014-11-10 11:11:53

标签: java tomcat deployment intellij-idea tomee

我尝试使用IDEA在远程服务器(VPS)上删除我的webapp。

我做了以下事情:

export JAVA_OPTS="-Dcom.sun.management.jmxremote=
-Dcom.sun.management.jmxremote.port=1099
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false"

现在很好,"连接到服务器"

但后来我得到了例外:

  

[2014-11-10 03:00:44,431]神器MavenChat:战争:   javax.ejb.EJBException:bean遇到了非应用程序   例外;嵌套异常是:

     

org.apache.openejb.OpenEJBRuntimeException:   java.io.FileNotFoundException:   /home/denis/apache-tomee-webprofile-1.7.1/bin/C:\Users\Denis\IdeaProjects\MavenChat\target\MavenChat.war   (没有这样的文件或目录)

我该如何解决?

当我手动部署我的应用时,我

  1. 建造MavenChat.war
  2. 将其重命名为ROOT.war
  3. 将其上传至/home/denis/apache-tomee-webprofile-1.7.1/webapps
  4. IDEA配置屏幕:

    enter image description here

    我确定我做错了" Staging"

1 个答案:

答案 0 :(得分:0)

好的,我无法配置它,但我可以使用maven将我的应用程序部署到我的远程服务器! 我跟着this manual,它有效!