• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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.  
 
Bartender
Posts: 20849
125
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!