aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes start tomcat 3.3.2 in debug mode Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "start tomcat 3.3.2 in debug mode" Watch "start tomcat 3.3.2 in debug mode" New topic
Author

start tomcat 3.3.2 in debug mode

indu pai
Greenhorn

Joined: Dec 29, 2004
Posts: 17
Hi,

I have an application running in tomcat 3.3.2, and the project created in Eclipse 3.1 I am trying to debug this application, from eclipse, on a windows machine.
I started the tomcat server with the option
-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8081,server=y,suspend=n

but once the server started, if i check the listening ports, port 8081 is not displayed.
Can anybody help me in this?

Any help appreciated.
Thanks in advance.

Indu
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61224
    
  66

I'm assuming that you mean debugging in Eclipse, so I've moved this to the IDEs forum.

P.S. Tomcat 3? Why so ancient a version?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
Instructions for Tomcat 5.5 (modify it to suit tomcat 3.3.2)


Modify <Tomcat install folder>/bin/catalina.bat

Replace

set DEBUG_OPTS=

with

set DEBUG_OPTS= -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

Start Tomcat. In Eclipse, go to "Run->Debug...". Click on "Remote Java Applications", then click "New". Type in the title and all. Notice that port 8000 from the Tomcat instructions. Save and run. Eclipse will connect to the VM that Tomcat is running under.


MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
indu pai
Greenhorn

Joined: Dec 29, 2004
Posts: 17
Lynette Thanks for the reply..

In tomcat 3.3.2 there is no catalina file. it uses tomcat.bat.
I added this option in that, but it did not work out.
I was wondering if that option is supported by tomcat3.3.2.

If you have any idea, please let me know.

Indu
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
i havn't used tomcat 3.3.2 before and so i cant be of any more help. why dont you upgrade your tomcat to the latest and greatest version - 5.5?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: start tomcat 3.3.2 in debug mode