wood burning stoves 2.0*
The moose likes Tomcat and the fly likes moving from Java 5 to Java 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "moving from Java 5 to Java 6" Watch "moving from Java 5 to Java 6" New topic
Author

moving from Java 5 to Java 6

John Eric Hamacher
Ranch Hand

Joined: Apr 25, 2007
Posts: 230
I am trying to upgrade the JDK my Tomcat 5.5 is running on from Java 5 to Java 6. I used the Java tab in tomcat5w to change the JVM but I get the following error when I try to start the service:

[2007-10-04 10:01:42] [174 javajni.c] [error] The specified module could not be found.
[2007-10-04 10:01:42] [947 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0_01\jre\bin\server\jvm.dll
[2007-10-04 10:01:42] [1202 prunsrv.c] [error] ServiceStart returned 1

Are there any extra steps I need to take to get the change accomplished?

Thanks.

Eric
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

From:
http://tomcat.apache.org/tomcat-5.5-doc/setup.html


Java location: The installer will use the registry or the JAVA_HOME environment variable to determine the base path of a J2SE 5 JRE.


I don't see any mention of Tomcat 5x being supported with Java 6.
Do you see it somewhere else?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Maybe the Tomcat documentation does not say explicitly that Tomcat 5.5 runs on Java 6, but I've been running it on Java 6 (on Windows Vista) and it works without problems, so it should work just fine on Java 6.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Originally posted by John Eric Hamacher:

[2007-10-04 10:01:42] [174 javajni.c] [error] The specified module could not be found.
[2007-10-04 10:01:42] [947 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0_01\jre\bin\server\jvm.dll


So, is the named file there? If not, is the path correct up to that point? Maybe you have a different patchlevel installed, or it's installed somewhere else? Maybe your "jre" directory is missing? Maybe the file is there, but not accessible (Windows does have some kind of access control, doesn't it?)


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: moving from Java 5 to Java 6
 
Similar Threads
I can't start tomcat service
Apache Tomcat
I have some problems
Is it not possible to install apache-tomcat-6.0.20 as a service in WindowsXP SP3?
Retriving data from a log file