Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0-M1
    • Component/s: None
    • Security Level: public (Regular issues)
    • Labels:
      None

      Activity

      Rick McGuire created issue -
      Hide
      Rick McGuire added a comment -

      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.

      Show
      Rick McGuire added a comment - 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.
      Hide
      Rick McGuire added a comment -

      Committed revision 927391.

      This issue was fixed by fixes for a framework assembly launch problem.

      Show
      Rick McGuire added a comment - Committed revision 927391. This issue was fixed by fixes for a framework assembly launch problem.
      Rick McGuire made changes -
      Field Original Value New Value
      Status Open [ 1 ] Resolved [ 5 ]
      Assignee Rick McGuire [ rickmcguire ]
      Fix Version/s 3.0 [ 12314206 ]
      Resolution Fixed [ 1 ]
      Rick McGuire made changes -
      Fix Version/s 3.0-M1 [ 12315090 ]
      Fix Version/s 3.0 [ 12314206 ]
      Rick McGuire made changes -
      Status Resolved [ 5 ] Closed [ 6 ]
      Transition Time In Source Status Execution Times Last Executer Last Execution Date
      Open Open Resolved Resolved
      2d 51m 1 Rick McGuire 25/Mar/10 13:58
      Resolved Resolved Closed Closed
      151d 2h 42m 1 Rick McGuire 23/Aug/10 17:41

        People

        • Assignee:
          Rick McGuire
          Reporter:
          Rick McGuire
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development