Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-5975

camel-jmx - Does not work in OSGi if XML output

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.0, 2.10.0
    • 2.9.6, 2.10.4, 2.11.0
    • camel-jmx, osgi
    • None
    • Unknown

    Description

      For example installing camel-example-jmx in Apache Karaf you get this exception

      Caused by: javax.xml.bind.JAXBException: "org.apache.camel.component.jmx.jaxb" doesnt contain ObjectFactory.class or jaxb.index
      	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:186)[:1.6.0_37]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_37]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_37]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_37]
      	at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_37]
      	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:143)
      	at javax.xml.bind.ContextFinder.find(ContextFinder.java:310)
      	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:412)
      	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:375)
      	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:279)
      	at org.apache.camel.component.jmx.NotificationXmlFormatter.getMarshaller(NotificationXmlFormatter.java:158)
      	at org.apache.camel.component.jmx.NotificationXmlFormatter.format(NotificationXmlFormatter.java:130)
      	... 48 more
      

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: