tomcat6 needs debug start mode with jpda

Bug #375149 reported by Bruce Edge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Invalid
Undecided
Unassigned
tomcat6 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Bits and pieces here from different sources but it all describes the prob.

tomcat 6:
 dpkg -l | grep tomcat6
ii libtomcat6-java 6.0.18-0ubuntu6 Servlet and JSP engine -- core libraries
ii tomcat6 6.0.18-0ubuntu6 Servlet and JSP engine
ii tomcat6-admin 6.0.18-0ubuntu6 Servlet and JSP engine -- admin web applications
ii tomcat6-common 6.0.18-0ubuntu6 Servlet and JSP engine -- common files
ii tomcat6-user 6.0.18-0ubuntu6 Servlet and JSP engine -- tools to create user instances

I've installed the stock tomcat6 package on Intrepid, and I want to configure it for remote JPDA debugging (listening on port 8000) for debugging a webapp from eclipse. The normal way to do this is to edit /usr/share/tomcat6/bin/startup.sh so it starts in debug mode:

exec "$PRGDIR"/"$EXECUTABLE" jpda start "$@"

However, the Ubuntu system startup script doesn't seem to follow the normal tomcat6 startup procedure. /etc/init.d/tomcat6 runs /usr/bin/jsvc instead of executing the normal startup scripts in /usr/share/tomcat6/bin:

DAEMON=/usr/bin/jsvc
.
.
.
$DAEMON -user "$TOMCAT6_USER" -cp "$JSVC_CLASSPATH" \
-outfile SYSLOG -errfile SYSLOG \
-pidfile "$CATALINA_PID" $JAVA_OPTS "$BOOTSTRAP_CLASS"

How should I configure it to start the debugger?

The fix is to apply the enclosed patch, or something like it.

Revision history for this message
Bruce Edge (bruce-edge) wrote :
Changed in rosetta:
status: New → Invalid
Revision history for this message
Bruce Edge (bruce-edge) wrote : Re: [Bug 375149] Re: tomcat6 needs debug start mode with jpda

Why is this invalid?
Is it not desirable to be able to run tomcat with a debugger?

-Bruce

On Mon, May 11, 2009 at 11:31 PM, Данило Шеган <email address hidden> wrote:

> ** Changed in: rosetta
> Status: New => Invalid
>
> ** Also affects: ubuntu
> Importance: Undecided
> Status: New
>
> --
> tomcat6 needs debug start mode with jpda
> https://bugs.launchpad.net/bugs/375149
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
William Grant (wgrant) wrote :

On Tue, 2009-05-12 at 12:56 +0000, Thag wrote:
> Why is this invalid?
> Is it not desirable to be able to run tomcat with a debugger?
>
> -Bruce
>
> On Mon, May 11, 2009 at 11:31 PM, Данило Шеган <email address hidden>
> wrote:
>
> > ** Changed in: rosetta
> > Status: New => Invalid

rosetta is the Launchpad Translations system. It is in rosetta that it
was marked invalid.

> > ** Also affects: ubuntu
> > Importance: Undecided
> > Status: New

Данило correctly marked it as affecting Ubuntu, rather than Launchpad
Translations.

This bug is not totally invalid; it's just invalid in Launchpad
Translations.

--
William Grant

affects: ubuntu → tomcat6 (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.