This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

start tomcat 3.3.2 in debug mode  RSS feed

 
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
 
Sheriff
Posts: 67261
170
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?
 
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?
 
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!