...
/sbin/iptables-save or /etc/init.d/iptables save
Enjoy It!
How do I debug a Tomcat application?
There is nothing magical about debugging a Tomcat application. All you need is an IDE and two environment variables.
- If you have not already done so begin by creating a new Tomcat context for your application. Navigate to TOMCAT_HOME\conf\Catalina\localhost and create a new file, say, myapp.xml. This will become part of your url, so to access your app you'll have to type *http://localhost:8080/myapp*.
- Enter the following in myapp.xml:
No Format |
---|
<Context docBase="c:/worskpace/myapp/WebRoot" path="/HelloWorld"/>
|
This assumes you have a web application containing WEB-INF in c:/workspace/myapp/WebRoot
- Create two environment variables:
No Format |
---|
C:\>set JDPA_ADDRESS=1044
C:\>set JDPA_TRANSPORT=dt_socket
|
- Now, you can launch Tomcat with these debug options:
No Format |
---|
TOMCAT_HOME\bin\>catalina jdpa start
|
- Use your IDE to connect to Tomcat through port 1044
Wiki Markup |
---|
If Eclipse happens to be your IDE of choice, you can get more information at \[http://jroller.com/page/gursesl/cleanfulltext/remote_application_debugging_with_weblogic Remote Debugging with Eclipse\]. |