Deploying to remote Tomee 7: Unable to connect… javax.naming.NameNotFoundException
Intellij IDEA 2017.3.2, Windows 7
Remote Ubuntu server 18.04 + Tomee plume 7
I try to deploy my project on remote Tomee, but there is error:
Error running 'TomEE Remote'
Unable to connect to the 192.168.0.202:1099, reason:
com.intellij.javaee.process.common.WrappedException: javax.naming.NameNotFoundException: /openejb/DeployerBusinessRemote does not exist in the system.
I have edited ‘catalina.sh’ on remote Tomee:
CATALINA_OPTS="$CATALINA_OPTS
-Dtomee.remote.support=true
-Dcom.sun.management.jmxremote=
-Dcom.sun.management.jmxremote.port=1099
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Djava.rmi.server.hostname=192.168.0.202"
I have setup ‘Run/Dedug Configuration’ in the Intellij IDEA:

What else needs to be done to fix this error?
Please sign in to leave a comment.
Hello,
Please try to enable this option: "
openejb.system.apps = true"Is it maven project? What artifact type do you deploy - WAR or EAR?
Hello,
I need to deploy WAR file.
I enabled this option: "
openejb.system.apps = true" in the "system.properties" file and the error disappeared:may 22, 2018 12:35:46 PM org.apache.openejb.client.EventLogger log
INFO: RemoteInitialContextCreated{providerUri=http://192.168.0.202:8080/tomee/ejb}
Connected to server
But there is no my WAR file and my project in the "/webapps/.." catalog on the remote server 192.168.0.202.
How can I deploy WAR file to remote server automatically?
There is another suggestion to comment all properties: https://stackoverflow.com/questions/38805940/intellij-and-tomee-7-0-1-jmx-not-connected