File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes not able to start tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "not able to start tomcat" Watch "not able to start tomcat" New topic
Author

not able to start tomcat

Ustaad Desraj
Ranch Hand

Joined: Jul 07, 2009
Posts: 34
i am starting with servlets.
I downloaded Apache Tomcat and installed it
when i click on start services shows a pop up and sudden disappeared without starting the services
i m using xp windows sp2. i have made java home and tomcat home environmental variables
.

but not able to start tell me what to do?? please please


USTAAD DESRAJ,
vjy chin
Ranch Hand

Joined: Feb 17, 2005
Posts: 279
If you doubleclick startup.bat file then the window will disappear, but the server will be started. So first check localhost:8080. If its not working, then open a command window, browse to the tomcat startup.bat and execute the file. A new window will open and if there are any issues, you can look up there.

Hope this helps.
Vamsi Mohan
Ranch Hand

Joined: Jun 20, 2009
Posts: 80
Hi Ustaad,

This is the problem with JDK. Please configure your JAVA_HOME path, automatically the issue will be resolved. Please double check the path is set correct.


VAMSI MOHAN.V
(SCJP5.0, IBM Rational Solution Designer, IBM Rational Architect, IBM RUP Designer)
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
IF you installed Tomcat as a service, delete that installation and reinstall as a normal application. it is MUCH MUCH easier to debug as an application.


There are any number of problems which can cause Tomcat to start and then quit. As vjy suggests, the first step is to use a command window to watch the progress of startup.bat.

If startup.bat runs and a tomcat window opens, then closes immediately, change the last executable line in startup.bat from


to


so that catlina.bat will continue in the same window and you can see error messages.


Bill
Ravi Gupta
Ranch Hand

Joined: Jul 15, 2006
Posts: 38
You can visit http://gupta-ravi.spaces.live.com for a guide on setting up your system for working with tomcat jsp and servlets.
If you have any issues please PM me.


help your PC help you best
http://simplepccare.spaces.live.com
Rohit Aggarawal
Ranch Hand

Joined: Jun 26, 2009
Posts: 39
Make sure that tomact is not running as the Startup service. If it's a case, may be possible that you can face this issue as mentioned.

Or Go to command prompt c:\> netstat -o. This will list down all the port that are in use. Say if the port 8080 is already in use, than Kill that task using that port on windows.

taskkill /PID 8080. and now start the server again...

I hope this may help

-Rohit


SCJP 6.0
SCBCD for JEE 5

Ustaad Desraj
Ranch Hand

Joined: Jul 07, 2009
Posts: 34
Thanks for Replies!!!

but problem not solved due to my system or lack of knowledge about tomcat
_____________

Rohit Aggarawal
8080 port is free and i think problem is not related to it,
brilliant tips and new for me brother thanks

______________

William Brogden and vjy chin

I am not able to find startup.bat file,
using xp windows and not even catalina.bat
i am using tomcat 5.5, downloaded from it's website
i think i am missing something, please help
thanks
_____________

Vamsi Mohan

i set java home again , but it doesn't help , thanks
Ustaad Desraj
Ranch Hand

Joined: Jul 07, 2009
Posts: 34
some info which may help you guys:

in java options i am getting this



does it need any change?

Java ClassPath:

C:\Tomcat 5.5\bin\bootstrap.jar

Startup:

org.apache.catalina.startup.Bootstrap

Java_Home:
C:\Program Files\Java\jdk1.6.0_04

Tomcat_Home
C:\Tomcat 5.5

and what more??
Ravi Gupta
Ranch Hand

Joined: Jul 15, 2006
Posts: 38
Hi

Did you take a look at the link I provided?

Ustaad Desraj
Ranch Hand

Joined: Jul 07, 2009
Posts: 34
yes, ravi but i get out nothing. they just said to create system variables but what to do not explained, and how to do still
Ravi Gupta
Ranch Hand

Joined: Jul 15, 2006
Posts: 38
Ustaad Desraj, please check your Private Messages
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
I am guessing that you cant find startup.bat because you installed Tomcat as a Service.

Every version of Tomcat I have installed as an application has included startup.bat

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: not able to start tomcat