Camel app on Liberty - JAXB Marshalling -


i'm running camel application on liberty profile server. i'm taking message queue, unmarshalling, mapping marshalling. working fine i'm getting error jaxbdatabinding method getcontextualnamespacemap not found. think because there older version of jar in server libs don't know why started using it.

ibm jar: com.ibm.ws.org.apache.cxf-rt-databinding-jaxb.2.6.2_1.0.12 

the issue resolved if switch parent last class loading hacky way fix , not great option. other ideas? i'm thinking feature or other dependency in build may have pulled jar in.

so getcontextualnamespacemap available in newer versions of org.apache.cxf-rt-databinding-jaxb jar available in liberty.

it might parentlast best option then. (you know how it's documented (here). if leads other issues follow-up question.

i suppose it's conceivable might able @ whatever packaged within application , try removing set of things , picking them liberty runtime, avoid running in parentlast mode. e.g. if referencing getcontextualnamespacemap because have other code in app there alternative path have gone down entirely in liberty-provided modules, in theory ok.

i'm not familiar enough code paths in modules in cxf or camel "stack" guess whether that's real-world likelihood though.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -