users@jaxb.java.net

IllegalAnnotationsException no ObjectFactory with an element

From: Trankh <juliend1985_at_gmail.com>
Date: Wed, 30 Jun 2010 01:44:38 -0700 (PDT)

Hi,

I am trying to test a webservice and i got these errors:

Exception in thread "main" javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException
        at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:294)
        at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:287)
        at javax.xml.ws.Service.getPort(Service.java:161)
        at com.santeos.dmp.server.PatientTest.main(PatientTest.java:26)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
        at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:274)
        at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:336)
        at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:420)
        at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:190)
        at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:164)
        at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:408)
        at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:292)
        ... 3 more
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 42
counts of IllegalAnnotationExceptions
There's no ObjectFactory with an @XmlElementDecl for the element
{urn:hl7-org:v3}asAgent.
        this problem is related to the following location:
                at protected javax.xml.bind.JAXBElement
com.santeos.dmp.iheprofiles.hl7.MCCIMT000300UV01Device.asAgent
                at com.santeos.dmp.iheprofiles.hl7.MCCIMT000300UV01Device
                at protected com.santeos.dmp.iheprofiles.hl7.MCCIMT000300UV01Device
com.santeos.dmp.iheprofiles.hl7.MCCIMT000300UV01Receiver.device
                at com.santeos.dmp.iheprofiles.hl7.MCCIMT000300UV01Receiver
                at protected java.util.List
com.santeos.dmp.iheprofiles.hl7.QUQIIN000003UV01MCCIMT000300UV01Message.receiver
                at com.santeos.dmp.iheprofiles.hl7.QUQIIN000003UV01MCCIMT000300UV01Message
There's no ObjectFactory with an @XmlElementDecl for the element
{urn:hl7-org:v3}location.
        this problem is related to the following location:
                at protected javax.xml.bind.JAXBElement
com.santeos.dmp.iheprofiles.hl7.MCCIMT000300UV01LocatedEntity.location
                at com.santeos.dmp.iheprofiles.hl7.MCCIMT000300UV01LocatedEntity
                at protected java.util.List
com.santeos.dmp.iheprofiles.hl7.MCCIMT000300UV01Device.asLocatedEntity
                at com.santeos.dmp.iheprofiles.hl7.MCCIMT000300UV01Device
                at protected com.santeos.dmp.iheprofiles.hl7.MCCIMT000300UV01Device
com.santeos.dmp.iheprofiles.hl7.MCCIMT000300UV01Receiver.device
                at com.santeos.dmp.iheprofiles.hl7.MCCIMT000300UV01Receiver
                at protected java.util.List
com.santeos.dmp.iheprofiles.hl7.QUQIIN000003UV01MCCIMT000300UV01Message.receiver
                at com.santeos.dmp.iheprofiles.hl7.QUQIIN000003UV01MCCIMT000300UV01Message
There's no ObjectFactory with an @XmlElementDecl for the element
{urn:hl7-org:v3}assignedDevice.
        this problem is related to the following location:
                at protected javax.xml.bind.JAXBElement
com.santeos.dmp.iheprofiles.hl7.QUQIMT000001UV01AuthorOrPerformer.assignedDevice
                at com.santeos.dmp.iheprofiles.hl7.QUQIMT000001UV01AuthorOrPerformer
                at protected java.util.List
com.santeos.dmp.iheprofiles.hl7.QUQIMT000001UV01ControlActProcess.authorOrPerformer
                at com.santeos.dmp.iheprofiles.hl7.QUQIMT000001UV01ControlActProcess
                at protected
com.santeos.dmp.iheprofiles.hl7.QUQIMT000001UV01ControlActProcess
com.santeos.dmp.iheprofiles.hl7.QUQIIN000003UV01MCCIMT000300UV01Message.controlActProcess
                at com.santeos.dmp.iheprofiles.hl7.QUQIIN000003UV01MCCIMT000300UV01Message
There's no ObjectFactory with an @XmlElementDecl for the element
{urn:hl7-org:v3}assignedPerson.
        this problem is related to the following location:
                at protected javax.xml.bind.JAXBElement
com.santeos.dmp.iheprofiles.hl7.QUQIMT000001UV01AuthorOrPerformer.assignedPerson
                at com.santeos.dmp.iheprofiles.hl7.QUQIMT000001UV01AuthorOrPerformer
                at protected java.util.List
com.santeos.dmp.iheprofiles.hl7.QUQIMT000001UV01ControlActProcess.authorOrPerformer
                at com.santeos.dmp.iheprofiles.hl7.QUQIMT000001UV01ControlActProcess
                at protected
com.santeos.dmp.iheprofiles.hl7.QUQIMT000001UV01ControlActProcess
com.santeos.dmp.iheprofiles.hl7.QUQIIN000003UV01MCCIMT000300UV01Message.controlActProcess
                at com.santeos.dmp.iheprofiles.hl7.QUQIIN000003UV01MCCIMT000300UV01Message
There's no ObjectFactory with an @XmlElementDecl for the element
{urn:hl7-org:v3}representedOrganization.
        this problem is related to the following location:
                at protected javax.xml.bind.JAXBElement
com.santeos.dmp.iheprofiles.hl7.MCCIMT000300UV01Agent.representedOrganization
                at com.santeos.dmp.iheprofiles.hl7.MCCIMT000300UV01Agent
There's no ObjectFactory with an @XmlElementDecl for the element
{urn:hl7-org:v3}notificationParty.
        this problem is related to the following location:
                at protected javax.xml.bind.JAXBElement
com.santeos.dmp.iheprofiles.hl7.MCCIMT000300UV01Organization.notificationParty
                at com.santeos.dmp.iheprofiles.hl7.MCCIMT000300UV01Organization
........




I don't want to add missing methods by hand.

What is the solution to avoid this?

Thanks
-- 
View this message in context: http://old.nabble.com/IllegalAnnotationsException-no-ObjectFactory-with-an-element-tp29032152p29032152.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.