This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Tomcat Service on Windows 2003 server

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
am running a batch file to create a tomcat service...
-----------------------
"%CATALINA_HOME%\bin\tomcat.exe" -install VFarm "%JAVA_HOME%\jre\bin\server\jvm.dll" -Djava.class.path="%CATALINA_HOME%\common\lib;%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar" -Dcatalina.home="%CATALINA_HOME%" -djava.home="%JAVA_HOME%\jre" %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.BootstrapService -params start -config "%CATALINA_HOME%\conf\server.xml" -stop org.apache.catalina.startup.BootstrapService -params stop -out "%CATALINA_HOME%\logs\stdout.log" -err "%CATALINA_HOME%\logs\stderr.log" -current "%CATALINA_HOME%"
-----------------------
are the contents of the file.am able to create a service but it does not start....when I start the service it pops up a message...
"The tomcat service on Local computer started and stopped.Some services stop automtically if they have no work to do........."
how can I make the service work...
Thanks in advance!!
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
there are no option named '-config' - try removing it and uninstall/install again..
-config "%CATALINA_HOME%\conf\server.xml"
You can see the valid options by typing 'tomcat /?' in a DOS box.
you could also look at this post: https://coderanch.com/t/81928/Tomcat/Tomcat-as-service
or do a search in the this forum - there has been a lot of post about this topic.
Rene
[ July 30, 2003: Message edited by: Rene Larsen ]
 
zena sam
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Rene!
am not sure where am going wrong...I tried creating a service from command line and by running the command, the service gets created but I still have a problem in starting the service...Any ideas where am wrong,...
Thanks in Advance!!
Zena
 
zena sam
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here's the command I have used....
set SERVICENAME=Apache
set JAVACLASSPATH=%CLASSPATH%
set JAVACLASSPATH=%JAVACLASSPATH%;"%CATALINA_HOME%\bin\bootstrap.jar"
set JAVACLASSPATH=%JAVACLASSPATH%;"%CATALINA_HOME%\common\lib\servlet.jar"
set JAVACLASSPATH=%JAVACLASSPATH%;"%JAVA_HOME%\lib\tools.jar"
tomcat.exe -install "%SERVICENAME%" "%JAVA_HOME%\jre\bin\server\jvm.dll" -Djava.class.path="%JAVACLASSPATH%" -Dcatalina.home="%CATALINA_HOME%" -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out "%CATALINA_HOME%\logs\catalina.out" -err "%CATALINA_HOME%\logs\stderr.log" -current "%CATALINA_HOME%\bin"...
Any idea as to how I can have the service started after installing the service...
Thanks in Advance!
zena
 
Look! I laid an egg! Why does it smell like that? Tiny ad, does this smell weird to you?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic