I am using jre 1.5 tomcat server. In my application I am calling a web service. When I call the web service I got the following error.
java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
So I found that the problem is with jax-ws
jar file.
I am using following jar file in my application build path.
jaxws-api-2.0.jar
I just added only this jar file. I suspect this jar is not compiled under jre 1.5
.
Please help me how to get rid of this issue. Or point me to a jar file which can work under jre 1.5
.