Tomcat in Intellij IDEA 14 : war exploded: Server is not connected. Deploy is not available

7.1k Views Asked by At

I find the same question, but it cannot resolve my issue.

Connected to the target VM, address: '127.0.0.1:62554', transport: 'socket'
[2015-06-09 11:15:23,088] Artifact com-XXXXXXXXX-web:war exploded: Server is not connected. Deploy is not available.

the $CATALINA_HOME/bin

My Env : Tomcat7.0.59 + Intellij IDEA 14.1 + MAc Pro-64 bits

there isn't the setEnv.bat or setEnv.sh file , and I have not found the command like this
set JAVA_OPTS=-server -Xmx768m -XX:MaxPermSize=256M.
Just the command , set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%” ,found in catalina.bat, which you can check it in my Attachments repo on github.

I don't know the actual reason of this ,but it can also occasionally work after I refresh and rebuild the project via maven .

But the rebuilding is useless NOW !

How can I fix it completely ?

Thank you very much ..

1

There are 1 best solutions below

1
On

there isn't the setEnv.bat or setEnv.sh file

The setenv script is documented in RUNNING.txt. By default there is no such file - you create it by yourself.

Beware that the proper name is "setenv.sh" (lowercase).