Evi, you don't need any tool, you can use the JPDA API.
Simply set the following shell variables (or something similar in windows):
JPDA_TRANSPORT=dt_socket
JPDA_ADDRESS=8000
export JPDA_TRANSPORT JPDA_ADDRESS
And start your tomcat as follows:
$TOMCAT_HOME/bin/catalina.sh jpda start
Now you can debug the JVM connecting to the port 8000.
In Eclipse you must do:
1. Run > Debug ...
2. Select "Remote Java Application"
3. Press new button
4. Configure your settings
5. Press Debug button
Thanks Joachim,
I installed the latest Sysdeo plugin and even found a nice tutorial
(http://www.keyboardsamurais.de/2004/01/15/tomcat_tutorial_helloworld_for_co
mplete_fools_-_english/).
But when I started Tomcat within Eclipse and open my J2 portal, the admin
portlets Login and Locale Selector (and some other portlets as well) are not
available (Portlet is Not Available: j2-admin::LoginPortlet Reason: null).
At the same time my own little Hello World portlet is OK.
Any ideas what might be wrong and why the portal acts differently when
Tomcat is started in Eclipse? A am using Tomcat 5.20,
sysdeo.eclipse.tomcat_3.2.0.beta3, Jetspeed-2.1.
Regards,
Evi
-----Original Message-----
From: Joachim Müller [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 24, 2007 10:32 PM
To: Jetspeed Users List
Subject: Re: Debugging with Eclipse
Hi Evi.
you can use the sysdeo tomcat plugin to start tomcat from within eclipse.
then it's easy to set breakpoints in your src and debug your code.
regards,
Joachim
evi wrote:
Hi!
In Jetspeed-2 site there is a page about developing Jetspeed with Eclipse.
Unfortunately the part of Debugging with Eclipse is not finsihed yet.
Is information about Debugging with Eclipse available elsewhere?
Evi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]