Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Having problem running tomcat 4.1

 
Sean Hetfield
Ranch Hand
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 118
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sean Hetfield
Ranch Hand
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no file in tomcat_home\logs and when I start catalina, stil command prompt is disappearing.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And you have a full j2sdk? Not just a JRE?

What OS are you running?
 
Sean Hetfield
Ranch Hand
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Full j2sdk1.4.2_06 and Windows XP service pack2
 
Sean Hetfield
Ranch Hand
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any idea?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic