Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Help! Having issues with Tomcat

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a problem debugging my servlet code on the command prompt using Tomcat 4. When the code is executed, which is calling a MS Access database, it crashes the server and the command window immediately closes. I need it to remain open so I can see at what point in the code it crashed. I have added system.println at varios locations throughout the code to see where it is crashing. Is there a way to configure Tomcat to keep the prompt window open after the server crashes? I am using Win98. If anyone can help I would appreciate it.

Peter
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, if the command window is closing because of the crash, then no, there is no way to prevent the closing of the window.

It's like asking Win98 to stop giving you a blue screen, so that you can see what went wrong.

The other thing you could do is to inspect the log files that Tomcat generates in the <CATALINA_HOME>/logs directory.

Of particular interest is the localhost_log.your-date-here.txt file... this is where stack traces get blown out.
 
Saloon Keeper
Posts: 25466
180
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
Actually, if YOU open the command window and manually start Tomcat, it shouldn't close. Automatic window-closing is normally a result of running a process that also automatically opens the window. There IS a way of setting PIF options to keep the window open.
MS Access isn't really a good DBMS for use with web servers. But then Win/98 isn't a good DBMS for web servers either. I presume/hope that you're using this setup for R&D and not production.
 
No holds barred. And no bars holed. Except this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic