Thursday, July 21, 2011

Starting Tomcat Server through Command Prompt

Most of Us start the Tomcat Server either
  • By double clicking tomcat_home\bin\  tomcatX.exe
  • By using Services in Service Manager
  • By using the short cut in System-tray(area where u see time)
But SomeTimes due to virus,TomcatX.exe may not be present in bin folder or may not be working
Reason may be anything,But Problem is You are unable to start the tomcat server.

So One more way is there,which Some people Knows,But Few People Shares

Open Dos and navigate to the bin folder of Tomcat and type the following
c:\Tomcat 6.0\bin>java -jar bootstrap.jar

It will start the tomcat.Notice that in your bin folder we have bootstrap.jar which is not a normal jar file.Its Executable jar file.
When you say >java -jar bootstrap.jar,    org.apache.catalina.startup.Bootstrap  class gets Executed.
and you get the Tomcat Console


 




No comments:

Post a Comment