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 Having problem running tomcat 4.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Having problem running tomcat 4.1" Watch "Having problem running tomcat 4.1" New topic
Author

Having problem running tomcat 4.1

Sean Hetfield
Ranch Hand

Joined: Dec 01, 2003
Posts: 83
I have installed jakarta-tomcat-4.1.31 and j2sdk1.4.2_06 and JAVA_HOME and CATALINA_HOME has been set sccordingly, but when I run startup.bat, the command prompt coming up but disapperaing very fast and http://localhost:8080/ does not bring up the tomcat page.

Thanks,

Sean
anupa oru
Ranch Hand

Joined: Jan 15, 2005
Posts: 118
Hi,
I also faced this problem earlier but what i did is I set environment variable by going to Mycomputer->properties and set JAVA-HOME,TOMCAT_HOME to corresponding jre directory,tomcat home directory.Then I again start server by startup.bat then server was started.try this
I hope this will work
Sean Hetfield
Ranch Hand

Joined: Dec 01, 2003
Posts: 83
Hi,

I have tried this one, but I get error when I try to run tomcat. So problem is still unresolved.

:roll:
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It's normal for the command prompt to disappear.
If you're not seeing the tomcat page when you go to http://localhost:8080 then you should check the log files under TOMCAT_HOME\logs.
One of them should tell you something.

By the way, if you want the dos window to stay open don't use 'startup'.
From the bin directory, type: catalina start


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

Joined: Dec 01, 2003
Posts: 83
There is no file in tomcat_home\logs and when I start catalina, stil command prompt is disappearing.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Out of curiosity, is there any reason why you have to go with 4.1x?

Tomcat 5x has a very solid windows installer for running as a service.
When run as a service, all the stdout and stderr messages goe into log files in the logs directory.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

If you must use 4.1, read this thread and try altering your catalina.bat file according to William Brogden's instructions:
http://www.coderanch.com/t/84613/Tomcat/tomcat-window-closes-startup
Sean Hetfield
Ranch Hand

Joined: Dec 01, 2003
Posts: 83
The reason I want to use 4.1.x is that this is the same version we are running in university and I am doing a project that alitimately I have to deploy it to University Server and we have been advised to use the same version of tomacat.
I just installed the exe version of tomcat and I had the same problem and nothing written in logs.

Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

That's a good reason.

How are you starting Tomcat with the exe version? From the services window?
From the start menu?

Try those methods and see if you get any logs. You will need to choose the "service" option during install to get it running as a service.

It still closes even when you start with: catalina start
?
Sean Hetfield
Ranch Hand

Joined: Dec 01, 2003
Posts: 83
Yes, I am running the tomcat using start menu but result is the same with no log file and I have tried catalina start as well and result is the same.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

And you have a full j2sdk? Not just a JRE?

What OS are you running?
Sean Hetfield
Ranch Hand

Joined: Dec 01, 2003
Posts: 83
Full j2sdk1.4.2_06 and Windows XP service pack2
Sean Hetfield
Ranch Hand

Joined: Dec 01, 2003
Posts: 83
Also I should mention that version 5.0.28 is just working fine but it supports JSP 2.o, but I need to work with previous version of JSP and tomcat 4.1.
Sean Hetfield
Ranch Hand

Joined: Dec 01, 2003
Posts: 83
I have some good news

Eventually my problem solved.
First I tried to see if tomcat 5 is working or not. What I see was that, at beginning of start up of tomcat, windows was that asked if it has to block it that I said no. Then I installed version 4.1 again that this time it worked fine.
I guess there is an incompatibility between service pack 2 and tomcat 4.1 (may block it without showing any alert but show that for tomcat 5) that some how was solved.

Thanks for all your answers
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Thanks for posting back. Once you said 5.0 was working, I was stumped. I thought maybe the service pack might have shut port 8080, then you said 5.0 was working.

That you got 5.0 to work also ruled out a problem between the seat and the keyboard.

Again, thanks for letting us know.
Sean Hetfield
Ranch Hand

Joined: Dec 01, 2003
Posts: 83
Any idea?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Having problem running tomcat 4.1