[
https://issues.apache.org/jira/browse/GERONIMO-5202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12848692#action_12848692
]
Rick McGuire commented on GERONIMO-5202:
----------------------------------------
There is a problem with using jaxb 2.2 inside the OSGi framework. The problem
occurs because jaxb 2.1 is part of the java 6 jre. When the framework is
launched, if the javax.xml.bind* packages are removed from the framework system
bundle or the javax.xml.bind packages are retained, but labeled as being at the
2.1 level, the following error occurs when trying to build the server:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] could not package plugin
Embedded error: Cannot unmarshall the ra.xml file: jar:file:/c:/.m2/repository/o
rg/tranql/tranql-connector-derby-embed-xa/1.5/tranql-connector-derby-embed-xa-1.
5.rar!/META-INF/ra.xml
com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to javax.xml.bind.JAX
BContext
This appears to be occurring because serialization code picks up the
JRE-resident version of the API classes
from the system class loader rather than from the geronimo spec jar. This
results in a class cast exception. I was able to make this error go away by
changing the version on the system bundle from 2.1 to 2.2. This causes things
to get wired correctly, but as a result, only the JRE resident version gets
wired, which is not really at the jaxb 2.2 level. This needs to be sorted out
so that the real jaxb 2.2 version is used consistently. This may require
launching the server with the jaxb 2.2 bundles on the endorsed class path.
> jaxb 2.2 version problem.
> --------------------------
>
> Key: GERONIMO-5202
> URL: https://issues.apache.org/jira/browse/GERONIMO-5202
> Project: Geronimo
> Issue Type: Sub-task
> Security Level: public(Regular issues)
> Reporter: Rick McGuire
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.