2

I have a java app which used org.apache.cxf -artifactId cxf-rt-frontend-jaxrs with version 3.3.7 but when I try to upgrade it to version 4, I am getting build errors. As earlier code used to work properly, what do I need to change while migrating?

Not a valid jaxb or jaxws binding file, please check the namespace at org.apache.cxf.tools.wsdlto.frontend.jaxws.customization.CustomizationParser.addBinding(CustomizationParser.java:540) [[1;33mWARNING[m] at org.apache.cxf.tools.wsdlto.frontend.jaxws.customization.CustomizationParser.parse(CustomizationParser.java:117) [[1;33mWARNING[m] at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.customize(JAXWSDefinitionBuilder.java:115) [[1;33mWARNING[m] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:188) [[1;33mWARNING[m] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:156) [[1;33mWARNING[m] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:402) [[1;33mWARNING[m] at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:105) [[1;33mWARNING[m] at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113) [[1;33mWARNING[m] at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86) [[1;33mWARNING[m] at org.apache.cxf.maven_plugin.wsdl2java.ForkOnceWSDL2Java.main(ForkOnceWSDL2Java.java:51)

2
  • Does this answer your question? jaxws: It is not a jaxws or a jaxb binding file Commented Mar 20, 2024 at 1:13
  • @Trenton: that also answers the question but the error message in my case (upgrade to cxf 4) is "Not a valid jaxb or jaxws binding file" not "It is not a jaxws or a jaxb binding file". So in a sense this question is more accurate. Commented May 7 at 13:12

1 Answer 1

0

I got solution for this (basically it is due to shift to jakarta name convention---> xmlns:jxb="http://java.sun.com/xml/ns/jaxb" to xmlns:jxb="https://jakarta.ee/xml/ns/jaxb" and jxb:bindings version ="3" from "2") Please refer jaxws: It is not a jaxws or a jaxb binding file as this helped me.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.