Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

not able to start tomcat

 
Ustaad Desraj
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
vjy chin
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rohit Aggarawal
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ustaad Desraj
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Did you take a look at the link I provided?

 
Ustaad Desraj
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ustaad Desraj, please check your Private Messages
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic