users@jaxb.java.net

Re: nor any of its super class is known to this context ..problem...

From: umen <meiry_at_fts-soft.com>
Date: Thu, 23 Nov 2006 01:29:12 -0800 (PST)

hello and thanks for the reply
what do you mean by :
"How do you create JAXBContext"??

thanks

umen wrote:
>
> hi all
>
> i have simple complex object in jave that looks like this :
>
>
> @XmlAccessorType(XmlAccessType.FIELD)
> public class MyID{
> @XmlAttribute
> public short dbnum = (short)0;
> @XmlAttribute
> public short usernum= (short)0;
> @XmlAttribute
> public long userid = (long)0;
>
> public MyId(){
> }
> }
>
> i converted it with jaxb and it generete me corespanding java object
> with the propreate geters and seters
> now when i try to in the server side to insert this object into
> List<Object> im geting error saing :
> .......
> ......
> ......
> Caused by: javax.xml.bind.JAXBException:
> com.WebServices.datastructures.MyID nor any of its super class is known
> to this context
> at
> com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.
> java:474)
> at
> com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.j
> ava:557)
> ... 47 more
>
>
>
> i must say that if i send back only this object (MyID) the unmarsheling
> passed successfully
>
> thanks for your help
>
>
>
>
>
>
>
>
>
>
>
>

-- 
View this message in context: http://www.nabble.com/nor-any-of-its-super-class-is-known-to-this-context-..problem...-tf2677432.html#a7500857
Sent from the java.net - jaxb users mailing list archive at Nabble.com.