WSWS3204E and WSWS3330I running wsdl2java to convert wsdl into Java classes when wsdl contains attributeGroups
 Technote (troubleshooting)
 
Problem(Abstract)
If the wsdl file contains attributeGroups in it, then when this is parsed and processed by wsdl2java to generate the Java™ classes for the web service, the WSWS3204E error and WSWS3330I messages are generated.
 
Cause
This problem is caused if the wsdl file being processed by wsdl2java contains an attributeGroup tag, such as
<xsd:complexType name="string">
...
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attributeGroup ref="j:SuperTypeMetadata"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>

These are the error messages you will receive.

WSWS3204E: Error: {http://www.ibm.com/jxdm/3.0.2}ReferenceType already exists.
WSWS3294E: Error: The XML Schema type 'IDREF' is not currently supported.
WSWS3029W: Warning: The xml construct named {http://www.w3.org/2001/XMLSchema}IDREF cannot be mapped to a java type. The construct will be mapped to javax.xml.soap.SOAPElement.
WSWS3330I: Info: com\ibm\NameSearchRequestType.java already exists, WSDL2Java will not overwrite it.

The wsdl2java process will produce java classes, in spite of these errors, but it will not generate the full web service as it should.

There is an internal java.lang.NullPointerException that is caught by wsdl2java.

 
Resolving the problem
IBM® WebSphere® Application Server V5.0 and V5.1 support the JAX-RPC V1.0 spec. The attributeGroup tag is not allowable in a JAX-RPC 1.0-compliant wsdl file. If the wsdl that wsdl2java contains xsd:attributeGroup tag, then these errors will result.
The attributeGroup tag is introduced in the JAX-RPC V1.1 spec, see section V4.2.3 of the JAX-RPC V1.1 specification. WebSphere Application Server V6.0 implements this specification. To access this specification, click the appropriate download from this site, Java Technlogy and XML Downloads - Java API for XML-Based RPC (JAX-RPC) Downloads & Specifications
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Web Services (for example: SOAP or UDDI or WSGW or WSIF)
Operating system(s): Windows
Software version: 5.1.1
Software edition:
Reference #: 1224490
IBM Group: Software Group
Modified date: Dec 4, 2005