my dog learned polymorphism*
The moose likes Tomcat and the fly likes problem starting Tomcat.....pleae Advise Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "problem starting Tomcat.....pleae Advise" Watch "problem starting Tomcat.....pleae Advise" New topic
Author

problem starting Tomcat.....pleae Advise

Anil Jain
Ranch Hand

Joined: Mar 10, 2002
Posts: 51
Friends!!
I have installed tomcat v4 in directory CATALINA_HOME (as per some java book). I have also set the environment variable JAVA_HOME. When i click on startup in Catalina_home/bin, the console screen comes and goes away.
To check whether the tomcat has started or not, i open the browser and type in http://localhost:8080 but the reply i get is web page not found.
Please help me what could be the problem.
Thanks,
FYI- I am using IE 5


Anil Jain<br />Sun Certified Java(2) Programmer
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
1) Use DOS command to type catalina.bat start, you might see something readable.
2) Check the tomcat/logs directory, then you will know why in print...
3) Good luck!
Anil Jain
Ranch Hand

Joined: Mar 10, 2002
Posts: 51
Roseanee, I did that but i still face the same problem , the console window goes away after i clik startp.bat in bin directory.
I have not setup iis or apache. Do i need to setup some web server first to get tomcat working??
Please help
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
You need to read the error message catalina tells you. Nobody can read them remotely.
The other way is uninstall it, then reintall it. Actually catalina is much easier than the old tomcat.
Oh, intall tomcat in directory called c:/tomcat, NOT C:/program files/apache group/jakarta-tomcat-4.0.3/...
You might get a command line too long error if you install them the other way around. Then, catalina will not have a chance to write anything in her log.
If necessary, you might need to uninstall/reinstall you Java to shorter the path too.
Good luck!!!
[ June 15, 2002: Message edited by: Roseanne Zhang ]
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
No, you don't need to have apache to start tomcat.
Anil Jain
Ranch Hand

Joined: Mar 10, 2002
Posts: 51
Thanks Roseanne. Atleast I came to know that i don't need apache.
My startup.bat file is installed in following location
c:\catalina\bin\bin\startup.bat
my java is installed in following location
c:\jdk1.3
I have the following environ ment variable setup
JAVA_HOME = C:\jdk1.3
And lastly when i go to command prompt and type in these command
c:\catalina\bin\bin\startup.bat
i get the following messages :
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDR: ..\temp
Using JAVA_HOME: C:\jdk1.3
after the one console windows with title "tomcat" comes for about 4 secs and goes away
after that to check if tomcat has started or not i open the browser and type in http://localhost:8080
i don't get the desired default webpage.
Please advise.
Thanks,
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
Where is your bin/bin came from?
You can read the logs now, have you done that?
Anil Jain
Ranch Hand

Joined: Mar 10, 2002
Posts: 51
Thanks Roseanne for you help. Finally i got it straighten up. I downloaded a lower version i.e.tomcat v3.3.
Now it is working fine for me!!!
Thanks to all again!!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15665
    
  15

Actually, I'm not sure that 8080 is the right port for Catalina. It MAY be 8180. They set it up that way so you could run both Tomcat 3 and 4 on the same machine simultaneously while using the default config files.
Check your conf/server.xml file and you should be able to see what port you really need.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
Don't get me started about those stupid light bulbs.
 
subject: problem starting Tomcat.....pleae Advise
 
Similar Threads
about tomcat
Problems Running Servlet code on Win 2000
Problem with tomcat...please advise
Tomcat doesn't work with IE 7
Getting Tomcat to recognize directory