Meaningless Drivel is fun!*
The moose likes Tomcat and the fly likes How to hide the Tomcat console Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to hide the Tomcat console" Watch "How to hide the Tomcat console" New topic
Author

How to hide the Tomcat console

Balaji Londhe
Ranch Hand

Joined: May 02, 2006
Posts: 100
Hi,

I'm developing a web application using Tomcat. I want Tomact to run as background service(hide the Console). Is there Any option?


Thanks in advance.


Attitude matters the Altitude.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

You can install tomcat as a service or use catalina.bat start
Balaji Londhe
Ranch Hand

Joined: May 02, 2006
Posts: 100
Thanks,

I tried 'Catalina.bat start' command from the windows command prompt, but it opens the new console window instead of hiding it...

How can I install the Tomcat as service, please?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

The easiest thing to do, is to download the ".exe" version of Tomcat.

Installing this way is the same as any other windows program.
You double click on the exe and a wizard takes you through the process.
One of the options will be to install as a Windows service.
This will also give you start menu items, including a Tomcat configuration tool that can be used to change things like the JVM and heap size.

When installed this way, Tomcat will redirect all the logging that was going to your console to the log files under Tomcat/logs.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
GeeCON Prague 2014
 
subject: How to hide the Tomcat console