You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "lichtin (via GitHub)" <gi...@apache.org> on 2025/08/12 10:39:54 UTC
[I] camel-xml-jaxb is missing 'org.apache.camel.model.app' Import [camel-karaf]
lichtin opened a new issue, #644:
URL: https://github.com/apache/camel-karaf/issues/644
`Caused by: jakarta.xml.bind.JAXBException: "org.apache.camel.model.app" doesnt contain ObjectFactory.class or jaxb.index
at org.glassfish.jaxb.runtime.v2.ContextFactory.createContext(ContextFactory.java:241) ~[!/:4.0.5 - cb19596]
at org.glassfish.jaxb.runtime.v2.JAXBContextFactory.createContext(JAXBContextFactory.java:58) ~[!/:4.0.5 - cb19596]
at jakarta.xml.bind.ContextFinder.find(ContextFinder.java:322) ~[!/:4.0.2]
at jakarta.xml.bind.JAXBContext.newInstance(JAXBContext.java:392) ~[!/:4.0.2]
at jakarta.xml.bind.JAXBContext.newInstance(JAXBContext.java:349) ~[!/:4.0.2]
at org.apache.camel.xml.jaxb.DefaultModelJAXBContextFactory.newJAXBContext(DefaultModelJAXBContextFactory.java:44) ~[!/:?]
at org.apache.camel.xml.jaxb.DefaultModelJAXBContextFactory.newJAXBContext(DefaultModelJAXBContextFactory.java:32) ~[!/:?]
at org.apache.camel.xml.jaxb.JaxbHelper.getJAXBContext(JaxbHelper.java:78) ~[!/:?]
at org.apache.camel.xml.jaxb.JaxbHelper.loadRoutesDefinition(JaxbHelper.java:389) ~[!/:?]`
Class DefaultModelJAXBContextFactory is providing its class loader which does not "see" the org.apache.camel.model.app package.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] camel-xml-jaxb is missing 'org.apache.camel.model.app' Import [camel-karaf]
Posted by "lichtin (via GitHub)" <gi...@apache.org>.
lichtin commented on issue #644:
URL: https://github.com/apache/camel-karaf/issues/644#issuecomment-3426198935
It's done programmatically via a method call, given a Camel context, such as
```JaxbHelper.loadRoutesDefinition(modelCamelContext, is);```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] camel-xml-jaxb is missing 'org.apache.camel.model.app' Import [camel-karaf]
Posted by "jbonofre (via GitHub)" <gi...@apache.org>.
jbonofre commented on issue #644:
URL: https://github.com/apache/camel-karaf/issues/644#issuecomment-3422779868
@lichtin can you describe quickly a way to reproduce the `JAXBException` ? Is it while loading a blueprint route ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] camel-xml-jaxb is missing 'org.apache.camel.model.app' Import [camel-karaf]
Posted by "lichtin (via GitHub)" <gi...@apache.org>.
lichtin commented on issue #644:
URL: https://github.com/apache/camel-karaf/issues/644#issuecomment-3476067556
Patched the Manifest file and had to add the following to the "Import-Package" directive:
`org.glassfish.jaxb.runtime.v2,
org.apache.camel.model.app,
org.apache.camel.model.cloud,
org.apache.camel.model.config,
org.apache.camel.model.errorhandler,
org.apache.camel.model.loadbalancer,
org.apache.camel.model.transformer,
org.apache.camel.model.validator`
to get above mentioned loadRoutesDefinition working.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] camel-xml-jaxb is missing 'org.apache.camel.model.app' Import [camel-karaf]
Posted by "jbonofre (via GitHub)" <gi...@apache.org>.
jbonofre closed issue #644: camel-xml-jaxb is missing 'org.apache.camel.model.app' Import
URL: https://github.com/apache/camel-karaf/issues/644
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org