Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-363

JAXB Deserializer issues

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jbossws-1.0Beta
    • jbossws-1.0.0
    • jbossws-native
    • None

      Running the testsuite, I see the following exception:
      ===================================================================================================================
      Caused by: org.jboss.ws.binding.BindingException: javax.xml.bind.JAXBException:
      Failed to parse source: Failed to resolve class name for person of type

      {http:// org.jboss.ws/samples/types}

      Person: org.jboss.test.ws.samples.purchase.Person
      at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeseria
      lizer.java:96)
      at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElemen
      t.java:197)
      ... 25 more
      Caused by: javax.xml.bind.JAXBException: Failed to parse source: Failed to resol
      ve class name for person of type

      {http://org.jboss.ws/samples/types}

      Person: org.
      jboss.test.ws.samples.purchase.Person
      at org.jboss.ws.jaxb.JAXBUnmarshallerImpl.unmarshal(JAXBUnmarshallerImpl
      .java:77)
      at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeseria
      lizer.java:85)
      ....
      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed
      to resolve class name for person of type

      {http://org.jboss.ws/samples/types}

      Per
      son: org.jboss.test.ws.samples.purchase.Person
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBPars
      er.java:138)
      at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java
      :120)
      at org.jboss.ws.jaxb.JAXBUnmarshallerImpl.unmarshal(JAXBUnmarshallerImpl
      .java:73)
      ... 27 more
      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve class
      name for person of type

      {http://org.jboss.ws/samples/types}

      Person: org.jboss.te
      st.ws.samples.purchase.Person
      at org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtElementHandl
      er.getClass(RtElementHandler.java:938)
      at org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtElementHandl
      er.startElement(RtElementHandler.java:253)
      at org.jboss.xb.binding.sunday.unmarshalling.TypeBinding.startElement(Ty
      peBinding.java:252)
      at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startE
      lement(SundayContentHandler.java:287)
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHan
      dler.startElement(SaxJBossXBParser.java:217)
      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
      ce)

      =====================================================================================

      Once I debug further, I will add some comments to this case. Currently, I am going to set this issue as dependent
      on the jaxrpc and binding layers. Once I investigate, will assign to the right layer.

            tdiesler@redhat.com Thomas Diesler
            anil.saldhana Anil Saldanha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: