Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 427664 - www-servers/tomcat-7.0.29-r1 - init.d script fails to start jpda
Summary: www-servers/tomcat-7.0.29-r1 - init.d script fails to start jpda
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 428002
  Show dependency tree
 
Reported: 2012-07-22 18:06 UTC by Märt Bakhoff
Modified: 2012-09-06 14:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Märt Bakhoff 2012-07-22 18:06:12 UTC
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
Comment 1 Ralph Sennhauser (RETIRED) gentoo-dev 2012-07-25 08:16:21 UTC
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
Comment 2 Miroslav Šulc gentoo-dev 2012-09-06 14:29:47 UTC
this seems to be fixed so closing.