wood burning stoves 2.0*
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
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,
 
Consider Paul's rocket mass heater.
 
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