Deploying to remote Tomee 7: Unable to connect… javax.naming.NameNotFoundException

Answered

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?

 

0
3 comments
Avatar
Yaroslav Bedrov

Hello,

Please try to enable this option: "openejb.system.apps = true"

Is it maven project? What artifact type do you deploy - WAR or EAR?

0
Avatar
Permanently deleted user

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?

 

 

0
Avatar
Yaroslav Bedrov
0

Please sign in to leave a comment.