[jboss-user] [JBossWS] - using jaxb

AJanz do-not-reply at jboss.com
Wed Jan 16 09:31:14 EST 2008


Hello,

i am developing a web service based on a wsdl file with netbeans 6.0

i want to use jaxb to unmarshall an object. but when i add jaxb-impl.jar, i got errors with the generated classes based on the wsdl file

"property xy does not exist on class myclass"

when i remove the jar everything is ok.

what must i do, to execute some code like this?

        JAXBContext context = JAXBContext.newInstance(MyClass.class);
        Unmarshaller um = context.createUnmarshaller(); 
        MyClass obj = (MyClass) um.unmarshal(new FileReader("obj.xml") );


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120470#4120470

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120470



More information about the jboss-user mailing list