Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-16542

Remove the xerces dependency from WS deployment for WildFly Preview

    XMLWordPrintable

Details

    • ---
    • ---

    Description

      To pass the tck test 

      com/sun/ts/tests/jaxws/ee/w2j/document/literal/marshalltest/Client.java#MarshallDateTimeTest_from_standalone

      , we have to add the xerces dependency to webservice deployment in WSDependenciesProcessor , then jaxb 2.3.x can marshall the datatime property without throw exception:

       

      javatest.batch] Caused by: com.sun.istack.SAXParseException2; lineNumber: 1; columnNumber: 310; --05Z
      [javatest.batch]     at org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:693)
      [javatest.batch]     at org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.UnmarshallingContext.handleError(UnmarshallingContext.java:720)
      [javatest.batch]     at org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.UnmarshallingContext.handleError(UnmarshallingContext.java:716)
      [javatest.batch]     at org.glassfish.jaxb.runtime.v2.model.impl.RuntimeBuiltinLeafInfoImpl$13.parse(RuntimeBuiltinLeafInfoImpl.java:595)
      [javatest.batch]     at org.glassfish.jaxb.runtime.v2.model.impl.RuntimeBuiltinLeafInfoImpl$13.parse(RuntimeBuiltinLeafInfoImpl.java:565)
      [javatest.batch]     at org.glassfish.jaxb.runtime.v2.runtime.FilterTransducer.parse(FilterTransducer.java:50)
      [javatest.batch]     at org.glassfish.jaxb.runtime.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(TransducedAccessor.java:214)
      [javatest.batch]     at org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.LeafPropertyLoader.text(LeafPropertyLoader.java:35)
      [javatest.batch]     at org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.UnmarshallingContext.text(UnmarshallingContext.java:543)
      [javatest.batch]     at org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.StAXStreamConnector.processText(StAXStreamConnector.java:321)
      [javatest.batch]     at org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.StAXStreamConnector.handleEndElement(StAXStreamConnector.java:187)
      [javatest.batch]     at org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:154)
      [javatest.batch]     at org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:376)
      [javatest.batch]     ... 38 more
      [javatest.batch] Caused by: jakarta.xml.bind.UnmarshalException: --05Z
      [javatest.batch]  - with linked exception:
      [javatest.batch] [java.lang.IllegalArgumentException: --05Z]
      [javatest.batch]     ... 51 more
      [javatest.batch] Caused by: java.lang.IllegalArgumentException: --05Z
      [javatest.batch]     at org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl$Parser.skip(XMLGregorianCalendarImpl.java:2932)
      [javatest.batch]     at org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl$Parser.parse(XMLGregorianCalendarImpl.java:2855)
      [javatest.batch]     at org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl.<init>(XMLGregorianCalendarImpl.java:478)
      [javatest.batch]     at org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl.newXMLGregorianCalendar(DatatypeFactoryImpl.java:230)
      [javatest.batch]     at org.glassfish.jaxb.runtime.v2.model.impl.RuntimeBuiltinLeafInfoImpl$13.parse(RuntimeBuiltinLeafInfoImpl.java:593)
      [javatest.batch]     ... 47 more

       

      When we upgrade to jaxb 3.x in WildFly Preview , this dependency is not needed. So we need to add some check to only add this dependency for javax/standard WildFly.

       

       

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-ema Jim Ma
              rhn-engineering-ema Jim Ma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: