Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

start tomcat 3.3.2 in debug mode

 
indu pai
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64829
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
indu pai
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic