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.
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.
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.
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.