tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akoulov, Alexandre [IT]" <>
Subject RE: Tomcat 5.5.x and java 1.4.x
Date Mon, 09 Jan 2006 06:17:07 GMT
now I am trying to compile Tomcat5.5.12 with java 1.4.2_10 and getting the following error:

    [javac] Compiling 318 source files to /home/aa05584/tmp/apache-tomcat-5.5.12-src_hasBuildWithJava1.4.2_10/jakarta-tomcat-5/build/classes
    [javac] /home/aa05584/tmp/apache-tomcat-5.5.12-src_hasBuildWithJava1.4.2_10/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/
cannot access javax.servlet.ServletException
    [javac] bad class file: /software/local/java/packages/servletapi/servletapi-2.4/lib/servlet-api.jar(javax/servlet/ServletException.class)
    [javac] class file has wrong version 49.0, should be 48.0
    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
    [javac] import javax.servlet.ServletException;
    [javac]                      ^
    [javac] 1 error

Any ideas on what's going on?

Kind regards,


-----Original Message-----
From: Akoulov, Alexandre [IT] 
Sent: Monday, 9 January 2006 3:28 PM
To: Tomcat Users List
Subject: Tomcat 5.5.x and java 1.4.x

Hi all,

Some time ago I built Tomcat 5.5.12 from source with java 1.5.0_05 and then ran it with the
same java version (ie 1.5.0_05). However, our requirements have changed since then and now
I need to run Tomcat 5.5.12 in java 1.4.2_10.

I've dropped the content of the 'compat' directory into the Tomcat5.5.12 installation directory
(as per instructions found on and also
in RUNNING.txt). Then tried to start tomcat and got java.lang.UnsupportedClassVersionError,
which in our case indicates that classes that were compiled with the lower java version attempt
to run in the higher java version. This is exactly what I expected.

However, when doing the same thing with the Tomcat 5.5.12 binaries downloaded directly from
the I was surprised to find that it started successfully. 

My question is: was Tomcat 5.5.12 binary version that can be downloaded from
compiled with java 1.4?

Thanks a lot for your help on this issue.


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message