We can debug our web application on Catalina.bat itself or Via Eclipse IDE.
I used TomCat 7.0 and Eclipse Ganymede for my Testing.
First I went to my TOMCAT_HOME/bin/catalina.bat
[TOMCAT_HOME=C:\Software\apache-tomcat-7.0.12\]
open catalina.bat with a notepad and Set two variables shown as follows,
set JPDA_ADDRESS=1044 (Testing port)
set JPDA_TRANSPORT=dt_socket
Then open the application via Eclipse IDE go to debug configuration and pass those argument on arguments.
JPDA_ADDRESS=1044 (Testing port).
JPDA_TRANSPORT=dt_socket.
Press Apply and Now Debugging :)
If there are different modules,Add thos e to the project. :)
This method can be used for JBOSS as well.
JBOSS is an Application server
ToMCAT is a web application server.
Wednesday, July 13, 2011
Subscribe to:
Posts (Atom)