jQuery in Action, 2nd edition*
The moose likes Tomcat and the fly likes Tomcat Upgradation problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Upgradation problem" Watch "Tomcat Upgradation problem" New topic
Author

Tomcat Upgradation problem

Sharanya Sharma
Ranch Hand

Joined: Jul 26, 2004
Posts: 54
Hi,

I had Tomcat 4.1.30. (which was working really fine).I downloaded tomcat 5.0.27.

Now when I start the server the dos script runs for a second and it stops abruptly. The same is happening with both the versions. The 5.0.27 service is started. But I dont see the javaw process running in the task manager and neither any service attached to port 80.

I unistalled 5.0.27 and deleted the 4.1.30 folder and then reinstalled the new version. But the problem still persists.

Please help me with this.

Thx
Sharanya
Barbara Norway
Ranch Hand

Joined: Sep 30, 2003
Posts: 150
Are you on Windows or Linux or Mac OS X or some other unix flavor ro what? You say you deleted the old Tomcat but is the process still running (for the old version)? If so, you could have both versions of tomcat trying to use the same ports. What does your server.xml say? I have two versions of Tomcat running but am using different ports. I have the new one (v 5.0.27) connected to my Apache server version 2.0.50 with Coyote jk connector but the old Tomcat is standalone. I'm running on Solaris 8.


farmkitty
Barbara Norway
Ranch Hand

Joined: Sep 30, 2003
Posts: 150
forgot to mention: you might want to take a peek at your logs in the $CATALINA_HOME/logs directory.. Check catalina.out and localhost_log.2004-08-30.txt, etc. I'm going from memory here so your milaegae may vary on the name of the log file (the date will definitely vary as it's the date the file was written which changes each day it is written, except for catalina.out which is a running file as we are accustomed to. It doesn't write a new file every day like the tomcat access and other log files do.
Sharanya Sharma
Ranch Hand

Joined: Jul 26, 2004
Posts: 54
Hi,

Thanks..
I am using a windows 2000 machine. I have just deleted the old version may be it is still using the same port.

How can I reconfigure my new version to use a different port?

-Sharanya
Sharanya Sharma
Ranch Hand

Joined: Jul 26, 2004
Posts: 54
Both my ports 8080 and 80 are in use
Barbara Norway
Ranch Hand

Joined: Sep 30, 2003
Posts: 150
looks like you opened a new thread. Next time you can just continue to add to your original post. People will see there is new activity on this post and you'll be just as likely to be answered.

I am more familiar with unices but I'll try to help you on windows. Check your services that are running. I cannot remember how to do that step-by-step on windows but it's accessible by the control panel and is called "services". Stop the tomcat services and possibly you can stop them from being automatically started when you reboot as well.

Once you've accomplished that, you should be able to look for the server.xml file which would be in the /usr/local/tomcat/conf directory on unix. Again, your mileage may vary if tomcat is installed in a different directory. It should usually be in a /conf directory under tomcat though. To be safe copy this file before you modify it. Then modify the copy of the (actually the one named server.xml, call your copy server.xml.orig or something) file and change the ports to some not being used. If you only want to have one version of tomcat running, you could use the default 8080 unless you have the oracle web server or something else using that port. Try 8088 as an alternative. The way I learned all of this was to read the tomcat documentation and books on configuring tomcat.

Good luck!
Sharanya Sharma
Ranch Hand

Joined: Jul 26, 2004
Posts: 54
Hi,

Thanks
I opened another thread as I thought it was a different issue than the one that is running here.. Anyways...

Yae, I did the same thing and changed the port to 8081 and atlast it worked.
Once again thanks for your help

-Sharanya
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Upgradation problem