wood burning stoves*
The moose likes Tomcat and the fly likes Tomcat shutting down automatically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat shutting down automatically" Watch "Tomcat shutting down automatically" New topic
Author

Tomcat shutting down automatically

Susmitha Metlapalli
Ranch Hand

Joined: May 16, 2007
Posts: 44
Hi,

Using putty session, i started tomcat on solaris server. I am able to see that tomcat is up when putty window is open.

When putty session window is closed, Tomcat is shutting down automatically.

No messages found in logs about automatic shutdown.

Please help me....

Thanks,
susmitha.
Susmitha Metlapalli
Ranch Hand

Joined: May 16, 2007
Posts: 44
can anyone help me out please........
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41144
    
  45
PatienceIsAVirtue.

Are you starting Tomcat as a background job? Any foreground job started in a shell is terminated if the shell is closed.


Ping & DNS - my free Android networking tools app
Susmitha Metlapalli
Ranch Hand

Joined: May 16, 2007
Posts: 44
I don't know the concept of background and foreground process.

Can you please explain the difference?

I started tomcat from bin directory.

./startup.sh
Susmitha Metlapalli
Ranch Hand

Joined: May 16, 2007
Posts: 44
need your help...
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41144
    
  45
For starters, use "./startup.sh &" instead of "./startup.sh". That will give you your command line prompt back after you start Tomcat. But it will still be terminated if you end the terminal session.

If you connect to a Unix-ish machine through Telnet or SSH, you can use the amazing utility screen to start processes and keep them running after you log out. An introduction can be found here.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You should also get familiar with the 'nohup' (no hangup) program.

Type: for more information.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat shutting down automatically
 
Similar Threads
Netscape Browser and session
Running java applications in virtual machine without a terminal
Get String from servlet
Tomcat shutting down automatically
unable to get tomcat home page displayed in browser