Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
current (nightly)
-
None
-
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!