• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Tomcat server startup issue

 
Ranch Hand
Posts: 230
IntelliJ IDE Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have made the below setting on catalina.sh :-

JPDA_OPTS="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"

catalina.sh jpda start

still no luck. Please suggest if any other suggestion needs to be made on the same.
 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which version of Tomcat are you using? Isn't there a start.bat or start.sh script? I guess catalina.sh is not the script that you would use to start tomcat! You might want to check that first.

What is the error message that you get?
 
Saloon Keeper
Posts: 25625
183
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's the issue? I didn't check the options in detail, but superficially, they say to start the Tomcat server with debugging enabled on tcp port 8000 and not to pause for debugging on startup.

I do that all the time. Sometimes I even do it to servers on the opposite corner of the continent.
 
Santosh Kumar Nayak
Ranch Hand
Posts: 230
IntelliJ IDE Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using debug on Remote Java application.

Tomcat version is 6.0.32. Linux OS and I am using start.sh file to start Tomcat but no luck.

What are the setting I need to check for the same ?
 
Tim Holloway
Saloon Keeper
Posts: 25625
183
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Explain what "no luck" means. Does the Tomcat server not start, or does it start and the debugger won't connect?

If it starts OK and the debugger won't connect, you can use the "netstat" command to verify that Tomcat is listening on tcp port 8000:



If Tomcat is listening on port 8000, you may have a firewall issue and need to instruct the firewall to allow access to port 8000 from the machine you are attempting to run the debugger on.
 
Santosh Kumar Nayak
Ranch Hand
Posts: 230
IntelliJ IDE Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat does not start.

Please suggest on other settings I should verify for successful startup.
 
Santosh Kumar Nayak
Ranch Hand
Posts: 230
IntelliJ IDE Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is Tomcat 6.0.32 compatible with the Java 6 Update 35 ?
 
Tim Holloway
Saloon Keeper
Posts: 25625
183
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat 6 works with any Java version 5 or later.

Tomcat can "not start" in a number of different ways. It can literally not start (launch the Tomcat application), in which case you should see an error message on the Tomcat start command line.

It can also "not start" in that the Tomcat application launches, but fails to continue. You may see a command-line error message, but you should also check the TOMCAT_HOME/logs/catalina.out and localhost log files for error messages.

It can "not start" in that the Tomcat application comes up and runs, but web clients cannot communicate with it. You should see an error message in the catalina.out log file saying that one or more ports were in used by some other program.

It can "not start" in that the Tomcat server starts up OK, but the web application doesn't come up. URLs sent to it return a "404 Not Found" page. The catalina.out log has a progress report on the deployment and will have one or more error messages indicating what defect exists in the webapp deployment descriptor or WAR kept the web application from starting.

OR, everything might have started OK, but you're expecting the debugger to say something. When you do external debugging with the no-wait option (suspend=n), then Tomcat would start up, but you would have to manually log your debugger into Tomcat via port 8000. That would connect, but not do anything. You'd then set breakpoints or whatever to catch code executing and do the normal debugging stuff.
 
Santosh Kumar Nayak
Ranch Hand
Posts: 230
IntelliJ IDE Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat startup works for me now

http://localhost:8080/ gave successful message. But I was wondering as how was the proxy taken care ?
 
Tim Holloway
Saloon Keeper
Posts: 25625
183
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Proxy?

What proxy?
 
Santosh Kumar Nayak
Ranch Hand
Posts: 230
IntelliJ IDE Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried the same in my office desktop it worked for me.

But I was wondering as how it escaped the Office proxy ?
 
Tim Holloway
Saloon Keeper
Posts: 25625
183
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I still don't know that you mean when you say proxy.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic