Error - Exception occurred during code generation for the WSDL

Viewed 18

I'm trying to generate the java classes from the .wsdl file, but when trying to generate the following error:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7zmrc0roo8abztn605l4.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hg83c8yew7rgae1owrp0.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nnoxg4qu37fj4ya3ti4g.png)

Exception occurred during code generation for the WSDL : java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/utils/NamespacePrefixList
     java.lang.reflect.InvocationTargetException

In the pom I added the lib:

<dependency>
            <groupId>org.apache.ws.commons</groupId>
            <artifactId>XmlSchema</artifactId>
            <version>1.1</version>
        </dependency>

I attempted to resolve this by downloading the jar file "xmlschema-core-2.2.1.jar", but the exception persists.

0 Answers
Related