You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by ja...@ws.apache.org on 2004/08/16 10:35:19 UTC
[jira] Closed: (JAXME-22) PropertyException thrown when setting Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION property.
Message:
The following issue has been closed.
Resolver: Jochen Wiedmann
Date: Mon, 16 Aug 2004 1:34 AM
The Marshaller does now recognize and handle the xsi:schemaLocation and
xsi:noNamespaceSchemaLocation attributes.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/JAXME-22
Here is an overview of the issue:
---------------------------------------------------------------------
Key: JAXME-22
Summary: PropertyException thrown when setting Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION property.
Type: Bug
Status: Closed
Priority: Major
Resolution: FIXED
Project: JaxMe
Components:
JaxMe Core
Versions:
current (nightly)
Assignee:
Reporter: Jose Calip
Created: Wed, 11 Aug 2004 5:56 PM
Updated: Mon, 16 Aug 2004 1:34 AM
Environment: 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!
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org