Uploaded image for project: 'JaxMe'
  1. JaxMe
  2. JAXME-22

PropertyException thrown when setting Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION property.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • current (nightly)
    • None
    • JaxMe Core
    • None
    • O/S: Windows 2000
      JDK Version: J2SDK_1.4.1_02
      Hardware: P4, 2.4GHz, 1GB RAM

    Description

      When setting the property Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION during marshalling, JaxMe is throwing the following error:

      Exception in thread "main" javax.xml.bind.PropertyException: Unknown
      property: jaxb.noNamespaceSchemaLocation
      at org.apache.ws.jaxme.impl.JMControllerImpl.setProperty(JMControllerImpl.java:96)
      at org.apache.ws.jaxme.impl.JMMarshallerImpl.setProperty(JMMarshallerImpl.java:247)
      at org.apache.ws.jaxme.examples.misc.address.AddressCreator.writeAddress(AddressCreator.java:79)
      at org.apache.ws.jaxme.examples.misc.address.AddressCreator.mainAddressCreator.java:85)

      Here's the code where I set the property:

      JAXBContext context = JAXBContext.newInstance("org.apache.ws.jaxme.test.misc.address");
      Marshaller marshaller = context.createMarshaller();
      marshaller.setProperty(Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION, "/users/devjaxme/address.xsd");
      marshaller.marshal(addr, pWriter);

      Thanks for looking into this!

      Attachments

        Activity

          People

            Unassigned Unassigned
            jodan_calip Jose Calip
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: