using sun-jdk-1.6 ~amd64 the new tomcat init script is broken: 1) in /etc/conf.d/tomcat-7 set TOMCAT_START="jpda start" 2) restart tomcat 3) java is not listening on JPDA_ADDRESS cause: ${JPDA_OPTS} is included too late in the start command. moving it in front of -Dcatalina.base (or probably anywhere before org.apache.catalina.startup.Bootstrap) makes all work again. example / quick hack to get it working: --exec ${JAVA_HOME}/bin/${cmd} -- \ ${JAVA_OPTS} \ ${JPDA_OPTS} \ -Dcatalina.base="${CATALINA_BASE}" \ -Dcatalina.home="${CATALINA_HOME}" \ -Djava.io.tmpdir="${CATALINA_TMPDIR}" \ -classpath "${CLASSPATH}" \ org.apache.catalina.startup.Bootstrap \ ${CATALINA_OPTS} \ ${args} ${TOMCAT_START} Reproducible: Always
Indeed, those $args should be passed to the VM instead of the app. Fixed, revbump pending. Thanks for the report. 25 Jul 2012; Ralph Sennhauser <sera@gentoo.org> files/tomcat.init: Pass to vm instead of catalina in init script. Thanks to Märt Bakhoff <spam3910807@gmail.com> #427664
this seems to be fixed so closing.