Hi Willie, I did not look at your code, but I had the similar problem.
The problem, at least for me, was in the unwrapped types, since you are using -uw key in your wsdl2java tool. Please look at the http://ws.apache.org/axis2/1_2/jibx/jibx-unwrapped-example.html and make sure that the mapping in your binding.xml file is specified in the way it is described in the article. Hope it helps, Slepecki, Willie wrote: > > im trying to run wsdl2java on a new project and am getting an exception > > C:\Code\ccta-weblogic\axis-service\schemas>C:\Code\axis2-1.4-bin\axis2-1.4\bin\wsdl2java > -uri its.wsdl -p com.jpmc.paycare.its -d jibx -s -ss -sd -ssi -uw -o > build\servic > e -Ebindingfile C:\Code\ccta-weblogic\its-core\jibx\binding.xml > Using AXIS2_HOME: C:\Code\axis2-1.4-bin\axis2-1.4 > Using JAVA_HOME: C:\bea\JDK150~1 > Retrieving document at 'its.wsdl'. > Retrieving schema at 'TxnIPTransactionRequest.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/TxnIPTransactionRequest.xsd'. > Retrieving schema at 'GetTransactionDetailRequest.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/GetTransactionDetailRequest.xsd'. > Retrieving schema at 'TxnVoidTransactionResponse.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/TxnVoidTransactionResponse.xsd'. > Retrieving schema at 'GetConfigProfileRequest.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/GetConfigProfileRequest.xsd'. > Retrieving schema at 'TxnIPTransactionResponse.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/TxnIPTransactionResponse.xsd'. > Retrieving schema at 'GetIndividualAttendanceRequest.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/GetIndividualAttendanceRequest.xsd'. > Retrieving schema at 'GetReportRequest.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/GetReportRequest.xsd'. > Retrieving schema at 'GetConfigProfileResponse.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/GetConfigProfileResponse.xsd'. > Retrieving schema at 'GetReportResponse.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/GetReportResponse.xsd'. > Retrieving schema at 'GetTransactionDetailResponse.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/GetTransactionDetailResponse.xsd'. > Retrieving schema at 'TxnAbsenceValidationRequest.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/TxnAbsenceValidationRequest.xsd'. > Retrieving schema at 'TxnChildCheckInOutResponse.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/TxnChildCheckInOutResponse.xsd'. > Retrieving schema at 'GetChildrenVouchersRequest.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/GetChildrenVouchersRequest.xsd'. > Retrieving schema at 'TxnVoidTransactionRequest.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/TxnVoidTransactionRequest.xsd'. > Retrieving schema at 'GetIndividualAttendanceResponse.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/GetIndividualAttendanceResponse.xsd'. > Retrieving schema at 'TxnAbsenceValidationResponse.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/TxnAbsenceValidationResponse.xsd'. > Retrieving schema at 'TxnEnrollmentResponse.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/TxnEnrollmentResponse.xsd'. > Retrieving schema at 'GetChildrenVouchersResponse.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/GetChildrenVouchersResponse.xsd'. > Retrieving schema at 'TxnChildCheckInOutRequest.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/TxnChildCheckInOutRequest.xsd'. > Retrieving schema at 'TxnSubmitTimesheetRequest.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/TxnSubmitTimesheetRequest.xsd'. > Retrieving schema at 'TxnEnrollmentRequest.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/TxnEnrollmentRequest.xsd'. > Retrieving schema at 'TxnSubmitTimesheetResponse.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/its.wsdl'. > Retrieving schema at 'CommonTypes.xsd', relative to > 'file:/C:/Code/ccta-weblogic/axis-service/schemas/TxnSubmitTimesheetResponse.xsd'. > Exception in thread "main" > org.apache.axis2.wsdl.codegen.CodeGenerationException: > java.lang.RuntimeException: Cannot unwrap element > {http://schema.paycare.jpmc.com/getTra > nsactionDetailRequest}GetTransactionDetailRequest: no abstract mapping > definition found for type > {http://schema.paycare.jpmc.com/Common}SecurityInfoType (used by element > SecurityInfo) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) > Caused by: java.lang.RuntimeException: Cannot unwrap element > {http://schema.paycare.jpmc.com/getTransactionDetailRequest}GetTransactionDetailRequest: > no abstract mapping > definition found for type > {http://schema.paycare.jpmc.com/Common}SecurityInfoType (used by element > SecurityInfo) > at > org.apache.axis2.jibx.CodeGenerationUtility.unwrapMessage(CodeGenerationUtility.java:839) > at > org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility.java:387) > 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:77) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224) > ... 2 more > C:\Code\ccta-weblogic\axis-service\schemas> > > the only thing i can find on it is a bug listed here > http://osdir.com/ml/java.jibx.users/2007-07/msg00067.html > that was fixed in 1.3, im using 1.4, is it possible that the patch didn't > get applied to the 1.4 branch or am i doing something else wrong. > > thanks > willie > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > jibx-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jibx-users > > -- View this message in context: http://www.nabble.com/problem-with-wsdl2java-no-abstract-mapping-tp18325245p18336993.html Sent from the jibx-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
