"TypeSystemHolder does not exist" compile errors from WSDL2Java
---------------------------------------------------------------
Key: AXIS2-313
URL: http://issues.apache.org/jira/browse/AXIS2-313
Project: Apache Axis 2.0 (Axis2)
Type: Bug
Reporter: trebor iksrazal
The WSDL2Java tool that comes with Axis2 produces code which does not compile
easily. Per the axis user list I was asked by Eran Chinthaka to produce a JIRA
issue that describes the problem and solution:
"This was a known issue. I think Ajith once wrote a small ant script to
copy the generated stuff to correct places and generate a jar file.
Anyway, since this is a well know problem and a solution, can you please
open a JIRA on this and close it giving your solution. This will be
useful for tracking purposes."
The heart of the matter is that the java source files produced from WSDL2Java
contain references such as:
public static final org.apache.xmlbeans.SchemaType type =
(org.apache.xmlbeans.SchemaType)schemaorg_apache_xmlbeans.system.sC4E9AB45BD3F86168AEED3EE91073B40.TypeSystemHolder.typeSystem.resolveHandle("timea4a3doctype");
This reference is _not_ contained in the source code produced by Axis2
WSDL2Java, and does not compile easily as one would normally expect.
/WSDL2Java.sh -uri wsdl/service.wsdl -ss -sd -o wise/ -p
com.siemens.swa.plugins.webservices.types
[javac]
/home/iksrazal/white3/wise/com/siemens/swa/plugins/webservices/types/databinding/org/xmlsoap/schemas/TimeDocument.java:19:
package
schemaorg_apache_xmlbeans.system.sECC7940C4012EB2293D5238A794D458D.TypeSystemHolder
does not exist
[javac] public static final org.apache.xmlbeans.SchemaType type =
(org.apache.xmlbeans.SchemaType)schemaorg_apache_xmlbeans.system.sECC7940C4012EB2293D5238A794D458D.TypeSystemHolder.typeSystem.resolveHandle("timea4a3doctype");
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira