Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-4936

Two implementations of jaxb-impl on classpath cause problems

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-fuse-6.3
    • jboss-fuse-6.2.1
    • Integration Pack
    • None
    • % %
    • Hide

      Runtime hot fix:

      osgi:uninstall --force org.apache.servicemix.bundles.jaxb-impl/2.2.10.1
      
      Show
      Runtime hot fix: osgi:uninstall --force org.apache.servicemix.bundles.jaxb-impl/2.2.10.1
    • Sprint 5 - towards ER2

    Description

      I am getting the following exception:

      Caused by: javax.xml.bind.PropertyException: property "com.sun.xml.bind.marshaller.CharacterEscapeHandler" must be an instance of type com.sun.xml.bind.marshaller.CharacterEscapeHandler, not org.kie.services.client.serialization.XmlCharacterHandler
              at com.sun.xml.bind.v2.runtime.MarshallerImpl.setProperty(MarshallerImpl.java:501)
              at org.kie.services.client.serialization.JaxbSerializationProvider.configureMarshaller(JaxbSerializationProvider.java:249)
              ... 181 more
      

      When we install Integration Pack on Fuse we have to versions of jaxb-impl:

      • mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.11_1 start-level=20
      • mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.10_1 start-level=10

      The newer one (2.2.11_1) bundle is default bundle in JBoss Fuse and the older one (2.2.10_1) is installed with drools-common feature. The older one version causes already mentioned exception. When we restart server after installation of drools-common then it uses the newer one version. I do not know why because it's start level is greater.

      I have reproduced this issue with bpms-remote-api-test (QE test suite).

      Attachments

        Issue Links

          Activity

            People

              vkasala@redhat.com Viliam Kasala
              mbasovni Martin Basovnik (Inactive)
              Martin Basovnik Martin Basovnik (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: