IntelliJ Java IDE
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
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply 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,
 
 
subject: Custom exception missing extends Exception in jaxb generated classes.
 
Threads others viewed
Web Method Faults for JAX-WS
casting exception when using stubs generated from wsdl
Axis2 POJO web service - wsdl generating xs:anyType
Doubt in Exceptions.....
Exception handling!
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture