users@jaxb.java.net

There's no ObjectFactory with an _at_XmlElementDecl for the element

From: Guilhem Legal <legal.g_at_hotmail.fr>
Date: Thu, 20 Sep 2007 07:41:35 -0700 (PDT)

Hi!

I have a problem whith the generated classes with xjc.

When i try to create the JAXBContext i get the following error :

There's no ObjectFactory with an @XmlElementDecl for the element
{http://www.opengis.net/ogc}temporalOps.
        this problem is related to the following location:
                at protected javax.xml.bind.JAXBElement
net.opengeospatial.sos._0.GetResult$EventTime.temporalOps
                at net.opengeospatial.sos._0.GetResult$EventTime
                at protected java.util.List
net.opengeospatial.sos._0.GetResult.eventTime
                at net.opengeospatial.sos._0.GetResult

        at
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
        at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)
        at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
        at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
        at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


I look at the ObjectFactory and there is a @XmlElementDecl for the element
{http://www.opengis.net/ogc}temporalOps :

 @XmlElementDecl(namespace = "http://www.opengis.net/ogc", name =
"temporalOps")
    public JAXBElement<TemporalOpsType> createTemporalOps(TemporalOpsType
value) {
        return new JAXBElement<TemporalOpsType>(_TemporalOps_QNAME,
TemporalOpsType.class, null, value);
    }

I see in another post that this problem was fixed but i use the last release
of jaxb and i still have the same problem. could you help me?
-- 
View this message in context: http://www.nabble.com/There%27s-no-ObjectFactory-with-an-%40XmlElementDecl-for-the-element-tf4487974.html#a12798615
Sent from the java.net - jaxb users mailing list archive at Nabble.com.