tomcat 4.1 no longer working after xp upgrade and java upgrade

This is a discussion on tomcat 4.1 no longer working after xp upgrade and java upgrade within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi All: I previously had Apache Tomcat 4.1 running under Windows 2000. It worked perfectly with no problems at ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-12-2005
Drew
 
Posts: n/a
Default tomcat 4.1 no longer working after xp upgrade and java upgrade


Hi All:

I previously had Apache Tomcat 4.1 running under Windows 2000. It
worked perfectly with no problems at all.

I recently upgraded the same PC to Windows XP. In the same upgrade
process, I also upgraded from version 1.4.2 of the JRE and JDK to the
newest 1.5.x versions.

I previously had Apache Tomcat starting automatically as a service
which worked great.

Now, when Windows XP boots, the Tomcat service doesn't get started.
If I go under Control Panel/Services and manually start it, I get a
message that says the service started and then stopped. The next
sentence says that this can happen when a service has nothing to do.

If I go under Event Viewer and look at the Application Log messages,
every manual start (or Windows launch start) of the Tomcat service,
writes these three events to the application log:

1) Apache Tomcat 4.1 service failed to start.
2) Could not load the Java Virtual Machine.
3)The LoadLibrary function failed for the following reason: The
specified module could not be found.

I think the new versions of Java are installed correctly as I'm able
to compile my Java programs and seem to be able to view Java web pages
with no problems.

I did all of the upgrades back to back so I cannot be sure if the
Windows XP upgrade or the Java upgrades broke the service.

Any help is very much appreciated!

Drew

..
  #2 (permalink)  
Old 03-12-2005
Drew
 
Posts: n/a
Default Re: tomcat 4.1 no longer working after xp upgrade and java upgrade


As a follow up, if I run startup.bat in C:\Program Files\Apache
Group\Tomcat 4.1\bin and then try and access the main Tomcat page, it
works fine. So, its something with the service file, tomcat.exe, that
is amiss.

Drew

  #3 (permalink)  
Old 03-12-2005
Drew
 
Posts: n/a
Default Re: tomcat 4.1 no longer working after xp upgrade and java upgrade


Disregard. I figured it out and should have thought of the solution.

If the Tomcat or Java directories change, you have to recreate the
Tomcat service so that it knows about the change. To do that, use
tomcat -uninstall "Service Name Here" from the command prompt to clear
it.

Then reinstall it with something like this sustituting your correct
folder names as needed.

tomcat.exe -install "Apache Tomcat 4.1" "C:\Program
Files\Java\jdk1.5.0_02\jre\bin\server\jvm.dll"
-Djava.class.path="C:\Program Files\Apache Group\Tomcat
4.1\bin\bootstrap.jar" -Dcatalina.home="C:\Program Files\Apache
Group\Tomcat 4.1" -Djava.endorsed.dirs="C:\Program Files\Apache
Group\Tomcat 4.1\common\endorsed" -start
org.apache.catalina.startup.Bootstrap -params start -stop
org.apache.catalina.startup.Bootstrap -params stop -out "C:\Program
Files\Apache Group\Tomcat 4.1\logs\stdout.log" -err "C:\Program
Files\Apache Group\Tomcat 4.1\logs\stderr.log" -current "C:\Program
Files\Apache Group\Tomcat 4.1\bin"


All of these lines will have to be on one line in your batch file.

Thanks!
Drew

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:45 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0