• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

How to hide the Tomcat console

 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can install tomcat as a service or use catalina.bat start
 
Balaji Londhe
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic