Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Difference between running Tomcat 7 as a Windows services and from bin - Tomcat7.exe

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My web application is running properly if i start the tomcat server 7 from Tomcat\bin -  Tomcat7.exe .

But it is not working properly if I start the tomcat from windows services .

Not able to get any clue from net.  
 
Saloon Keeper
Posts: 22122
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat itself is not an EXE. It's a JAR that runs via the "java" command of a JDK JVM. The EXE and service stuff is wrapper code specific to Windows.

So if you are able to launch Tomcat OK from the "Tomcat.exe" command, then Tomcat itself is OK and you simply need to check the configuration in the Windows Service Manager or whatever cute name Microsoft has assigned it for the release of Windows you are using.

The main things you need to check are that A) the service manager knows where the Tomcat Windows Service executable is and B) the start option (manual, auto, etc.)

Also don't forget that like all networking apps, only one process can listen on a set of TCP/IP ports at a time. So make sure that no other copies of Tomcat are already running or one of them will have grabbed ports 8080, 8005, 8009 and 8443 and prevented the service from using them.
 
Think of how dumb the average person is. Mathematically, half of them are EVEN DUMBER. Smart tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic