Hi Dennis, I saw this bug raised by Andrey and you have closed the same. After i have taken the latest code[where the bug have been fixed](CodeGenerationUtility.java <http://svn.apache.org/viewcvs.cgi//webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/CodeGenerationUtility.java/?rev=539405&view=diff&r1=539405&r2=539404&p1=/webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/CodeGenerationUtility.java&p2=/webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/CodeGenerationUtility.java> , JiBXDataSource.java <http://svn.apache.org/viewcvs.cgi//webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/JiBXDataSource.java/?rev=539405&view=diff&r1=539405&r2=539404&p1=/webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/JiBXDataSource.java&p2=/webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/JiBXDataSource.java> , JibXDatabindingTemplate.xsl <http://svn.apache.org/viewcvs.cgi//webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/template/JibXDatabindingTemplate.xsl/?rev=539405&view=diff&r1=539405&r2=539404&p1=/webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/template/JibXDatabindingTemplate.xsl&p2=/webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/template/JibXDatabindingTemplate.xsl> )(from http://svn.apache.org/viewvc?view=rev&revision=539405), i m getting the a differnt error when running the WSDL2Java with -uw option.
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: Cannot unwrap e lement {http://bpma.myorg.com/}SearchMembersByPropertyValue: no abstract mapping definition found for type {http://bpma.myorg.com/datatypes}ListType (used by element {http://bpma.myorg.com/}listType) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:256) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: java.lang.RuntimeException: Cannot unwrap element {http://bpma.myorg.com/}SearchMembersByPropertyValue: no abst ract mapping definition found for type {http://bpma.myorg.com/datatypes}ListType (used by element {http://bpma.myorg.co m/}listType) at org.apache.axis2.jibx.CodeGenerationUtility.unwrapMessage(CodeGenerationUtility.java:905) at org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility.java:384) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExtension.java:74) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:209) The definition from the wsdl: <s:element name="SearchMembersByPropertyValue"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="locator" type="s2:MemberLocator" /> <s:element minOccurs="1" maxOccurs="1" name="listType" type="s2:ListType" /> <s:element minOccurs="0" maxOccurs="1" name="searchParams" type="s2:SearchParams" /> <s:element minOccurs="1" maxOccurs="1" name="batchSize" type="s:int" /> <s:element minOccurs="0" maxOccurs="1" name="filterCriteria" type="s2:FilterCriteria" /> </s:sequence> </s:complexType> </s:element> ............... <s:simpleType name="ListType"> <s:restriction base="s:string"> <s:enumeration value="Children" /> <s:enumeration value="Descendants" /> <s:enumeration value="Parents" /> <s:enumeration value="Ancestors" /> </s:restriction> </s:simpleType> I tried putting a debugger in CodeGenerationUtility.java and found that, inside "private Element unwrapMessage(.....)" method, "element.getSchemaType()" [for the element <s:element minOccurs="1" maxOccurs="1" name="listType" type="s2:ListType" /> ]is null and it didnt go inside the "if (element.getSchemaType() instanceof XmlSchemaSimpleType) {" block. That is why it gave this error. Do you feel that i m missing out on something? Thanks Surjit
<<winmail.dat>>
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users