You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2013/08/13 11:30:50 UTC
[jira] [Resolved] (SANTUARIO-365) JAXB Context from
ObjectFactory....
[ https://issues.apache.org/jira/browse/SANTUARIO-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh resolved SANTUARIO-365.
-------------------------------------------
Resolution: Fixed
Fix Version/s: Java 2.0.0
Fixed thanks. Also fixed in WSS4J.
Colm.
> JAXB Context from ObjectFactory....
> -----------------------------------
>
> Key: SANTUARIO-365
> URL: https://issues.apache.org/jira/browse/SANTUARIO-365
> Project: Santuario
> Issue Type: Bug
> Components: Java
> Affects Versions: Java 2.0.0
> Reporter: Daniel Kulp
> Assignee: Colm O hEigeartaigh
> Fix For: Java 2.0.0
>
>
> In OSGi, the context classloader that is used for the JAXBContext.newInstance can be a bit unpredictable. It would be better to create the JAXB context from the ObjectFactories directly:
> {code}
> --- src/main/java/org/apache/xml/security/stax/ext/XMLSecurityConstants.java (revision 1513267)
> +++ src/main/java/org/apache/xml/security/stax/ext/XMLSecurityConstants.java (working copy)
> @@ -76,11 +76,11 @@
> try {
> setJaxbContext(
> JAXBContext.newInstance(
> - "org.apache.xml.security.binding.xmlenc:" +
> - "org.apache.xml.security.binding.xmlenc11:" +
> - "org.apache.xml.security.binding.xmldsig:" +
> - "org.apache.xml.security.binding.xmldsig11:" +
> - "org.apache.xml.security.binding.excc14n"
> + org.apache.xml.security.binding.xmlenc.ObjectFactory.class,
> + org.apache.xml.security.binding.xmlenc11.ObjectFactory.class,
> + org.apache.xml.security.binding.xmldsig.ObjectFactory.class,
> + org.apache.xml.security.binding.xmldsig11.ObjectFactory.class,
> + org.apache.xml.security.binding.excc14n.ObjectFactory.class
> )
> );
> SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira