I am trying to generate my WSDL for webservices but I get this error:
Note: ap round: 2 Exception in thread \"main\" javax.xml.ws.WebServiceException: Unable to
It looks like a part of your declared API includes a type that extends a type with an internal field of type StackTraceElement[ ].
Because StackTraceElement has no zero-argument constructor, JAXB cannot de-serialize instances of this class .
Try removing the nextException field from SQLExceptionBean, or removing parameters of type SQLExceptionBean from your service APIs.
I have resolved this issue by fixing the jaxb-impl version from 2.1.9 to 2.2.6 and it works fine now
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.2.6</version>
</dependency>