-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
camel-karaf 4.8.2: broken JAXBContext #595
Comments
I think camel-blueprint needs to exclude jaxb3 dependencies (com.sun.xml.fastinfoset.* packages) and use jaxb v4* |
please remove unused imports from camel-blueprint manifest!
|
Hi, thx for the ticket. If you don't mind, let's focus first on the problem before focusing on the solution knowing that the 2 versions of the feature were proposed for good reasons. So please provide steps to reproduce your issue with a simple camel route and/or propose a PR with a test case. |
Thanks for the report. Do you have a simple reproducer ? |
in any route/bundle just add this code and try to install it:
(bundle should use camel feature) More precisely, route/bundle must use camel-blueprint (this requires jaxb v3) and contain java code like this (this requires jaxb v4):
|
for me works this solution:
after this route works well and camel-cxf starts too
|
this code causes ClassNotFoundException (org.glassfish.jaxb.runtime.v2.ContextFactory not found) for routes deployed on karaf environment (works well in standalone routes):
because camel-karaf has 2 incompatible features jaxb-runtime, and loads only 3.0.2 jaxb bundles:
and loads only packages v 3.0.2:
I have tried to change 4.0.5 bundle dependency value to "false", but it does not work because camel-blueprint requires jaxb bundles version 3.
The text was updated successfully, but these errors were encountered: