jaxws: It is not a jaxws or a jaxb binding file
Asked Answered
L

1

8

I'm getting this error message:

[WARNING] Ignoring: binding file "file:/home/jeusdi/projects/salut/hes/hes-visor-api-service/src/jaxws/bindings.xml". It is not a jaxws or a jaxb binding file

It's telling me that my binding.xml file is not valid and it will be ingored.

My binding.xml file content is:

<jaxb:bindings xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
           xmlns:xsd="http://www.w3.org/2001/XMLSchema"
           jaxb:version="2.0">
    <jaxb:bindings >
        <jaxb:globalBindings typesafeEnumMaxMembers="2000"/>
    </jaxb:bindings>
</jaxb:bindings>

Any ideas?

Linage answered 14/1, 2021 at 13:1 Comment(0)
S
20

If this is the Jakarta XML Web Services implementation that you're using, then you should not use xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" but xmlns:jaxb="https://jakarta.ee/xml/ns/jaxb".

This did the trick for me for the exact same error.

See JAXWSBindingsConstants.java

Stansberry answered 14/4, 2021 at 9:10 Comment(1)
additionally version="2.0" has to be bumped to version="3.0"Purapurblind

© 2022 - 2024 — McMap. All rights reserved.