You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Cherian Sijo <si...@yahoo.com> on 2008/10/10 17:26:59 UTC
java2wsdl using JaxbSchemaGenerator
Hi,
I am using java2wsdl -sg org.apache.axis2.jaxbri.JaxbSchemaGenerator option to generate wsdl.
When I am throwing a simple exception from a operation in service class, the schemageneration fails saying:
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
java.lang.StackTraceElement does not have a no-arg default constructor.
this problem is related to the following location:
at java.lang.StackTraceElement
at public java.lang.StackTraceElement[] java.lang.Throwable.getStackTrace()
at java.lang.Throwable
at java.lang.Exception
at MyException
How can I stop the schemagen to go beyond java.lang.Exception?
I am prefering JaxbSchemaGenerator option because I can generate more accurate wsdl that specify mandatory field in my Java bean (by adding appropriate constructor, along with default constructor).
Thanks
Sijo
Reference thread: http://mail-archives.apache.org/mod_mbox/ws-axis-user/200712.mbox/<79...@mail.gmail.com>