I'm trying to generate the java classes from the .wsdl file, but when trying to generate the following error:
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.xmlschema</groupId>
<artifactId>xmlschema-core</artifactId>
<version>2.2.1</version>
</dependency>
But the error remains.
Solution:
As decker's comment, I added the lib below in the pom and it worked, after that I managed to generate the class.
<dependency>
<groupId>org.apache.ws.xmlschema</groupId>
<artifactId>xmlschema-core</artifactId>
<version>2.0.2</version>
</dependency>
Top comments (5)
I would think it has to do with not found class NameSpacePrefixList.
Try to Google in which Jar it is and add it to the dependency.
Added a lib about NameSpacePrefixList , but the error still persists.
I found this
Maybe it is the wrong group id in your example. Do you need type pom, because I did not find it in the example.
Thanks for the help, it worked.
You're welcome!