• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

start tomcat 3.3.2 in debug mode

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
This cake looks terrible, but it tastes great! Now take a bite out of this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic