You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Dr. Exner" <ex...@fh-flensburg.de> on 2006/02/21 18:43:34 UTC

how to switch the jre within axis?

Hi,

I freshly installed Axis 1.3 within a Tomcat stand alone test environment on XP and with the support of the tomcat users list the "happy axis" page is ok now.
But while following the "Call" link at the Axis start page (http://localhost/axis/) 
or calling test .jws files with the browser, I get errors like:

"Invalid class file format in C:\Programme\Java\jre1.5.0_06\lib\rt.jar(java/util/Enumeration.class).  
The major.minor version '49.0' is too recent for this tool to understand."

(more details see below)

For my current understanding (I did not deal with java for a long time) I should switch from jre 1.5.0_06 to jre 1.4.2_10 (both are activated in the java console). But how to switch the java runtime within axis?  

D. Exner





More details on the error message:

- Exception:
AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.compileError
 faultSubcode: 
 faultString: Error while compiling:  C:\Programme\Apache\Tomcat 5.5\webapps\axis\WEB-INF\jwsClasses\EchoHeaders.java
 faultActor: 
 faultNode: 
 faultDetail: 
 {}Errors:Error compiling C:\Programme\Apache\Tomcat 5.5\webapps\axis\WEB-INF\jwsClasses\EchoHeaders.java:
Line 0, column 0: could not parse error message:  Note: sun.tools.javac.Main has been deprecated.
error: Invalid class file format in C:\Programme\Java\jre1.5.0_06\lib\rt.jar(java/util/Enumeration.class).  The major.minor version '49.0' is too recent for this tool to understand.
C:\Programme\Apache\Tomcat 5.5\webapps\axis\WEB-INF\jwsClasses\EchoHeaders.java:22: Class java.util.Enumeration not found in import.

Line 0, column 0: could not parse error message:  import java.util.Enumeration;
       ^
error: Invalid class file format in C:\Programme\Java\jre1.5.0_06\lib\rt.jar(java/util/ArrayList.class).  The major.minor version '49.0' is too recent for this tool to understand.

Line 23, column 7: Class java.util.ArrayList not found in import.
Line 0, column 0: could not parse error message:  error: Invalid class file format in C:\Programme\Java\jre1.5.0_06\lib\rt.jar(java/util/Iterator.class).  The major.minor version '49.0' is too recent for this tool to understand.
C:\Programme\Apache\Tomcat 5.5\webapps\axis\WEB-INF\jwsClasses\EchoHeaders.java:24: Class java.util.Iterator not found in import.
import java.util.Iterator;

Line 0, column 0: could not parse error message:         ^
error: Invalid class file format in C:\Programme\Java\jre1.5.0_06\lib\rt.jar(java/lang/Object.class).  The major.minor version '49.0' is too recent for this tool to understand.
C:\Programme\Apache\Tomcat 5.5\webapps\axis\WEB-INF\jwsClasses\EchoHeaders.java:29: Superclass java.lang.Object of class EchoHeaders not found.

Line 0, column 0: no more tokens - could not parse error message:  public class EchoHeaders {
             ^
8 errors, 1 warning