To use eclipse to debug a tomcat servlet:
1. Be sure that tomcat is started with the below.  One way to do that is to 
edit tomcat/bin/catalina.bat, where JAVA_OPTS is defined.
-Xdebug -Xnoagent  -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n
2. Set a breakpoint in the servlet code.  Note that servlet timeouts may start 
to occur when you debug, so you want the breakpoint close to the code being 
debugged.
3. Start the eclipse debugger.  Open Run | Debug...  Select the section for 
"remote java application".  Select the project.  Connection type is socket.  
Set host and address (8000 in the above case).
4. Run the test that invokes the server.  The breakpoint should show up in the 
Eclipse debugger.

Betsy
________________________________________
From: VF [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 07, 2006 12:24 AM
To: [email protected]
Subject: RE: WS debugging in Eclipse

Hi Rajith,
Im using tcp monitor,but sometimes I need to step into code. Now I make it 
so,that i construct skeleton class direct and run my web service as local 
application. But sometimes I need to debbug it on Tomcat as it would run in 
bussiness with all settings. 

         Regards Vladi

________________________________________
From: Rajith Attapattu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 06, 2006 7:36 PM
To: [email protected]
Subject: Re: WS debugging in Eclipse

Vladi,

Another more easy option would be for you to deploy your services on axis2  and 
then remote debug using eclipse.
You can also use tcpmon http://ws.apache.org/commons/tcpmon/ to check the SOAP 
messages that are exchanged between the service and the client.

Regards,

Rajith
On 12/6/06, VF < [EMAIL PROTECTED]> wrote:
Hi all,
Is it possible to debug web services in Eclipse?


       Vladi


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED]


**********************************************************************
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. Any 
unauthorized review, use, disclosure or distribution is prohibited. If you are 
not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to