Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 112656

Summary: Not having default constructor for bean does not allow WSDL generation
Product: [WebTools] WTP Webservices Reporter: Xavier Lopez <xalopez>
Component: jst.wsAssignee: jst.ws <jst.ws-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 0.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Xavier Lopez CLA 2005-10-14 12:39:24 EDT
If you create a Web Service which operations use beans, and you do not define 
default constructor for those beans, a "BEAN is referenced but not defined" 
error message appears and the WSDL is not generated. It took me hours to find 
out the problem was being cause by the absence of default constructors. If WTP 
needs the default constructors then the message should be improved, if it 
doesn't then the problem should not even occur!
Comment 1 Chris Brealey CLA 2006-05-05 17:12:25 EDT
Xavier, there are several requirements laid down by JAX-RPC (to which Axis complies) on service classes. Having a public default CTOR is one of them. I completely agree the tools should catch this sort of thing earlier in the process and provide a good message. We're working on a fix to this via bug 132905. Messages MSG_JAXRPC11_NOT_COMPLIANT and MSG_JAXRPC11_RULE_0001 in that bug apply to your case.

*** This bug has been marked as a duplicate of 132905 ***
Comment 2 John Lanuti CLA 2006-11-28 15:49:55 EST
This is part of a mass update to close out all stale WTP bugs which are in the resolved state without an appropriate targeted version.  If you feel this bug was closed inappropriately, please reopen.