geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick McGuire (JIRA)" <>
Subject [jira] Commented: (GERONIMO-5202) jaxb 2.2 version problem.
Date Tue, 23 Mar 2010 13:15:27 GMT


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

[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] could not package plugin

Embedded error: Cannot unmarshall the ra.xml file: jar:file:/c:/.m2/repository/o
com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to javax.xml.bind.JAX

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:
>             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.

View raw message