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 "Reneta Säll (HF/EBC)" <re...@ericsson.com> on 2007/03/22 11:32:35 UTC

WSDL2Java problem, Axis2 jaxbri

Hi all,
 
When I run the code generator in Axis2, get this error:
 
C:\axis2\bin>WSDL2java -uri bank.wsdl  -d jaxbri -g
 
Using AXIS2_HOME:   C:\axis2
Using JAVA_HOME:    C:\j2sdk1.4.2_12
Exception in thread "main" java.lang.UnsupportedClassVersionError: javax/xml/bi
d/JAXBContext (Unsupported major.minor version 49.0)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:1
3)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBR
Extension.java:68)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGene
ationEngine.java:177)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
 
What is the problem?
 

 


RE: WSDL2Java problem, Axis2 jaxbri

Posted by "Reneta Säll (HF/EBC)" <re...@ericsson.com>.
Thanks, I will try with jdk 1.5
Best regards, Reneta
 

This communication is confidential and intended solely for the addressee(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you.

E-mail including attachments is susceptible to data corruption, interception, unauthorized amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof.

 

________________________________

From: Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com] 
Sent: den 22 mars 2007 11:41
To: axis-user@ws.apache.org
Subject: Re: WSDL2Java problem, Axis2 jaxbri


use jdk 1.5. jaxb only works with jdk 1.5


On 3/22/07, Reneta Säll (HF/EBC) <re...@ericsson.com> wrote: 

	Hi all,
	 
	When I run the code generator in Axis2, get this error:
	 
	C:\axis2\bin>WSDL2java -uri bank.wsdl  -d jaxbri -g
	 
	Using AXIS2_HOME:   C:\axis2
	Using JAVA_HOME:    C:\j2sdk1.4.2_12
	Exception in thread "main" java.lang.UnsupportedClassVersionError: javax/xml/bi
	d/JAXBContext (Unsupported major.minor version 49.0)
	        at java.lang.ClassLoader.defineClass0(Native Method)
	        at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
	        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:1
	3)
	        at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
	        at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
	        at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
	        at java.security.AccessController.doPrivileged(Native Method)
	        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
	        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
	        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
	        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
	        at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBR
	Extension.java:68)
	        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGene
	ationEngine.java:177)
	        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
	        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
	 
	What is the problem?
	 

	 




-- 
Amila Suriarachchi,
WSO2 Inc. 

Re: WSDL2Java problem, Axis2 jaxbri

Posted by Amila Suriarachchi <am...@gmail.com>.
use jdk 1.5. jaxb only works with jdk 1.5

On 3/22/07, Reneta Säll (HF/EBC) <re...@ericsson.com> wrote:
>
>  Hi all,
>
> When I run the code generator in Axis2, get this error:
>
> C:\axis2\bin>WSDL2java -uri bank.wsdl  -d jaxbri -g
>
> Using AXIS2_HOME:   C:\axis2
> Using JAVA_HOME:    C:\j2sdk1.4.2_12
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> javax/xml/bi
> d/JAXBContext (Unsupported major.minor version 49.0)
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
>         at java.security.SecureClassLoader.defineClass(
> SecureClassLoader.java:1
> 3)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>         at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage
> (JAXBR
> Extension.java:68)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> (CodeGene
> ationEngine.java:177)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
>
> What is the problem?
>
>
>
>



-- 
Amila Suriarachchi,
WSO2 Inc.