jaxws-maven-plugin wsgen IllegalAnnotationExceptions

I'm using clientgen to generate client-side classes from third party WSDLs. Then I'm using wsgen to create my web service, bundling up my classes, as well as the generated ones.

The jaxws-maven-plugin wsgen throws JAXBContext IllegalAnnotationsException complaining that the generated classes do not have a no-arg default constructor.

One solution that I saw on this site was to wrap the classes in XMLWrappers. Problem is the third-party classes are used in the third-party methods that I don't have control over.

Is there a solution or workaround for this?

Answers


A possible workaround is to use the axis2 maven wsdl2code generators.

This will however generate a totally different client(still easy to use though).

The doc tells to add the following dependency as well:

<dependency>
      <groupId>org.apache.axis2</groupId>
      <artifactId>axis2</artifactId>
      <version>1.4</version>
</dependency>

Need Your Help

Web Based Documentation Generator / Editor

php web-applications documentation phpdoc mediawiki-extensions

I'm looking for a good documentation generator that supports various programming languages, but PHP is a must. The thing is, I'm looking for it to do a very specific thing, which is essentially bu...

Adding a button to the ActionBar with ActionBarSherlock

android actionbarsherlock android-actionbar

I have been trying to add a button to the SherlockActionBar but I can't get it working.