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

Marshalling java.util.Date to xsd:dateTime

XMLWordPrintable

      $ ant -Dtest=org.jboss.test.webservice.marshalltest.MarshallDocLiteralTestCase

      According to the jaxrpc-1.1 spec (5.3.2) it should be possible to marshall java.util.Date to xsd:dateTime

      Caused by: java.lang.ClassCastException: java.util.Date
      at org.jboss.xml.binding.SimpleTypeBindings.marshal(SimpleTypeBindings.java:1090)
      at org.jboss.xml.binding.XercesXsMarshaller.marshalSimpleType(XercesXsMarshaller.java:374)
      at org.jboss.xml.binding.XercesXsMarshaller.marshalElementType(XercesXsMarshaller.java:351)
      at org.jboss.xml.binding.XercesXsMarshaller.marshalElement(XercesXsMarshaller.java:327)
      at org.jboss.xml.binding.XercesXsMarshaller.marshalParticle(XercesXsMarshaller.java:469)
      at org.jboss.xml.binding.XercesXsMarshaller.marshalModelGroupSequence(XercesXsMarshaller.java:583)
      at org.jboss.xml.binding.XercesXsMarshaller.marshalModelGroup(XercesXsMarshaller.java:538)
      at org.jboss.xml.binding.XercesXsMarshaller.marshalParticle(XercesXsMarshaller.java:462)
      at org.jboss.xml.binding.XercesXsMarshaller.marshalComplexType(XercesXsMarshaller.java:449)
      at org.jboss.xml.binding.XercesXsMarshaller.marshallInternal(XercesXsMarshaller.java:176)
      at org.jboss.xml.binding.XercesXsMarshaller.marshal(XercesXsMarshaller.java:141)
      at org.jboss.ws.jaxb.JAXBMarshallerImpl.marshal(JAXBMarshallerImpl.java:89)
      at org.jboss.ws.jaxrpc.encoding.JAXBSerializer.serialize(JAXBSerializer.java:84)
      at org.jboss.ws.soap.SOAPContentElement.getXMLFragment(SOAPContentElement.java:137)

              olubyans@redhat.com Alexey Loubyansky
              tdiesler@redhat.com Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: