Removing setenv.sh from $CATALINA_HOME/bin also worked for me. I am running tomcat7 / Ubuntu / IntelliJ 12
With setenv.sh in the bin folder, when running inside IJ I see in the logs:
/usr/local/tomcat/apache-tomcat-7.0.52/bin/catalina.sh run [2014-07-28 02:41:39,274] Artifact TomcatDebug:war exploded: Server is not connected. Press 'Deploy' to start deployment. Jul 28, 2014 2:41:40 PM org.apache.catalina.core.AprLifecycleListener init odonovanj@ubuntuj:/usr/local/tomcat/apache-tomcat-7.0.52$ sudo netstat -tulpn|grep 2928 tcp6 0 0 :::8080 :::* LISTEN 2928/java tcp6 0 0 127.0.0.1:8005 :::* LISTEN 2928/java tcp6 0 0 :::8009 :::* LISTEN 2928/java
After deleting it in the logs, I see: INFO: starting the server in 76 ms. Connected to the server [2014-07-28 02: 44: 35,847] Artifact TomcatDebug: the war exploded: the artifact is deployed, wait ... [2014-07-28 02: 44: 36,512] TomcatDebug artifact: war exploded: artifact successfully deployed
odonovanj@ubuntuj:/usr/local/tomcat/apache-tomcat-7.0.52$ sudo netstat -tulpn|grep 2346 tcp6 0 0 :::8080 :::* LISTEN 2346/java tcp6 0 0 :::50044 :::* LISTEN 2346/java tcp6 0 0 127.0.0.1:8005 :::* LISTEN 2346/java tcp6 0 0 :::8009 :::* LISTEN 2346/java tcp6 0 0 :::1099 :::* LISTEN 2346/java tcp6 0 0 :::52268 :::* LISTEN 2346/java
setenv.sh seems to have overridden $JAVA_OPTS , interfering with JNDI running on port 1099.
user2262727 Jul 28 '14 at 2:49 a.m. 2014-07-28 14:49
source share