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/<[EMAIL 
PROTECTED]>

Reply via email to