aspose file tools*
The moose likes Tomcat and the fly likes Tomcat startup.bat command not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat startup.bat command not working" Watch "Tomcat startup.bat command not working" New topic
Author

Tomcat startup.bat command not working

Ja vardhan
Ranch Hand

Joined: May 09, 2005
Posts: 169
Hi,
When am giving startup command from command prompt, it is showing error:
-------------------------------------------------------------
The CATALINA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
---------------------------------------------------------------

I had set that CATALINA_HOME to tomcat root directory :
C:\Program Files\Apache Group\Tomcat 4.1
I dont know where the problem is. In command prompt its just showing that error, nothing else. That means server is not started.
But when i give localhost:8080 in browser, its showing Tomcat server home page. This means server is running.. how come???


Javardhan:
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

If you see the Tomcat welcome page, it's running.
I generally don't set the CATALINA_HOME environment variable unless I'm running multiple instances from the same install. The wrapper scripts will deduce the value from your current working directory.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ja vardhan
Ranch Hand

Joined: May 09, 2005
Posts: 169
Thanks for ur reply Ben.
I understood Tomcat was running.. but how come? I am getting error with startup.bat. That means am not able to start the Tomcat, then who started the Tomcat? Why its already in running mode? How to stop the Tomcat now?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

The startup.bat file has a complimentary "shutdown.bat" file.
Just issue the "shutdown" command from the tomcat/bin directory.

If you're running on Windows, you might want to consider installing the ".exe" version which installs Tomcat as a service. This version doesn't rely on environment variables. Instead it store the needed settings in the registry.

There are valid reasons for each method.
Ja vardhan
Ranch Hand

Joined: May 09, 2005
Posts: 169
I am using "shutdown.bat", the server is still in running mode.
-----------------------------------------
The startup.bat file has a complimentary "shutdown.bat" file.
Just issue the "shutdown" command from the tomcat/bin directory.
-------------------------------------------

I didnt get what u r saying:
----------------------------------------------
If you're running on Windows, you might want to consider installing the ".exe" version which installs Tomcat as a service. This version doesn't rely on environment variables. Instead it store the needed settings in the registry.

There are valid reasons for each method.
-------------------------------------------
Please clear me.
Thnkas for replying.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Assuming tomcat is in e:\appservers\tomcat
From the command line, type:


As to the ".exe/service" install over the zipped version...

The .exe version is easier to install and doesn't require setting environment variables.
It also installs Tomcat as a service (which is how a production app on windows should be run) for you.
It gives you a set of Start menu items that you can use to start, stop, and configure Tomcat from a user friendly GUI screen.

The Zipped version is nice if you're developing and want to keep all of Tomcat in one directory. Especially if you are running multiple versions for multiple projects. You can control the environment by ammending the wrapper scripts or by creating your own wrapper scripts.
Having all of Tomcat in one directory also means that you can remove ALL of it with one delete command and not have to worry about lingering registry entries and start menu items.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat startup.bat command not working
 
Similar Threads
please help with tomcat
How to set environment variables for tomcat?
ben..............tomcat is not installing
doubt in setting class path
problem in running tomcat 5