File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Custom exception missing extends Exception in jaxb generated classes. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Custom exception missing extends Exception in jaxb generated classes." Watch "Custom exception missing extends Exception in jaxb generated classes." New topic
Author

Custom exception missing extends Exception in jaxb generated classes.

Srinivas Kasani
Greenhorn

Joined: Sep 26, 2008
Posts: 22
Hi,
I'm using a WSDL first approach with apache cxf 2.2. I have a custom defined exception defined in WSDL. When i'm generaetd the stubs, for the exception class, I donot see header called which extends from Exception in the generated stub.

Example:
<soap:fault name="SecurityException" use="literal"/>

In the generated classes, I see the generated class as

public class SecurityException {

}

I was exception to see, something like public class SecurityException extends Exception instead.
Is there any special parameter I'm missing to specify. Please advice.

Thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Custom exception missing extends Exception in jaxb generated classes.
 
Similar Threads
Exception handling!
Axis2 POJO web service - wsdl generating xs:anyType
Doubt in Exceptions.....
casting exception when using stubs generated from wsdl
Web Method Faults for JAX-WS