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
Enter fullscreen mode Exit fullscreen mode
In the pom I added the lib:
<dependency>
<groupId>org.apache.ws.xmlschema</groupId>
<artifactId>xmlschema-core</artifactId>
<version>2.2.1</version>
</dependency>
Enter fullscreen mode Exit fullscreen mode
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>
Enter fullscreen mode Exit fullscreen mode
原文链接:Error – Exception occurred during code generation for the WSDL
© 版权声明
THE END
暂无评论内容