java.lang.UnsupportedClassVersionError: sun/net/www/protocol/https/Handler
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Gopinath_Radha
Posted On:   Friday, December 16, 2005 06:22 AM

Hi, I'm trying to run WSDL java file using Apache Axis.I'm using jdk1.5.0_03 and jre1.5.0_03.I'm using axis-1_3 for this. While running the java file java org.apache.axis.wsdl.WSDL2Java -U test -P customer1 https://shubservices.questemr.com/resultsHub/observations/hl7?wsdl Got the following error [WARN] JavaUtils - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled. java.lang.UnsupportedClassVersionError: sun/net/www/protocol/https/Handler (Unsu pported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source)    More>>

Hi,
I'm trying to run WSDL java file using Apache Axis.I'm using jdk1.5.0_03 and jre1.5.0_03.I'm using axis-1_3 for this.

While running the java file

java org.apache.axis.wsdl.WSDL2Java -U test -P customer1 https://shubservices.questemr.com/resultsHub/observations/hl7?wsdl

Got the following error

[WARN] JavaUtils - Unable to find required classes (javax.activation.DataHandler
and javax.mail.internet.MimeMultipart). Attachment support is disabled.
java.lang.UnsupportedClassVersionError: sun/net/www/protocol/https/Handler (Unsu
pported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.net.URL.getURLStreamHandler(Unknown Source)
at java.net.URL. (Unknown Source)
at java.net.URL. (Unknown Source)
at java.net.URL. (Unknown Source)
at org.apache.axis.wsdl.toJava.JavaServiceImplWriter.writeFileBody(JavaS
erviceImplWriter.java:194)
at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
at org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWri
ter.java:112)
at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(Jav
aGeneratorFactory.java:421)
at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:476)
at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
at java.lang.Thread.run(Unknown Source)



Help me out to rectify this error.

Cheers
Gopi

   <<Less

Re: java.lang.UnsupportedClassVersionError: sun/net/www/protocol/https/Handler

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, December 24, 2005 06:50 PM

You appear to be missing 2 jar files at least (the activation jar and the mail jar) that are referenced in your code (directly or indirectly);



and you also appear to have a JDK version problem, among/between jar files and/or your code, with some compiled code being too new for some older compiled code to handle.



maybe your Apache Axis jar is older, and cannot handle your new code compiled with Java 5? (1.5)
About | Sitemap | Contact