[ http://issues.apache.org/jira/browse/AXIS2-1374?page=all ]
Asankha C. Perera updated AXIS2-1374: ------------------------------------- Attachment: ServiceRegistry.wsdl ServiceRegistry.xsd > WSDL's with policy references cause the WSDL2Java to fail with an > UnsupportedOperationException thrown by the PolicyReference class > ----------------------------------------------------------------------------------------------------------------------------------- > > Key: AXIS2-1374 > URL: http://issues.apache.org/jira/browse/AXIS2-1374 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Components: codegen > Environment: RC1 > Reporter: Asankha C. Perera > Assigned To: Sanka Samaranayake > Attachments: ServiceRegistry.wsdl, ServiceRegistry.xsd > > > WSDL's with policy references cause the WSDL2Java to fail with an > UnsupportedOperationException thrown by the PolicyReference class > C:\Testing\delete>c:\Java\axis2-std-1.1-RC1-bin\bin\WSDL2Java.bat -ss -sd -g > -uri ServiceRegistry.ws > dl > Using AXIS2_HOME: c:\Java\axis2-std-1.1-RC1-bin > Using JAVA_HOME: C:\Java\JDK\j2sdk1.4.2_07 > Retrieving schema at 'ServiceRegistry.xsd', relative to > 'file:/C:/Testing/delete/'. > cannot find a PolicyExtension to process > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/type a > ssertions > Exception in thread "main" > org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.w > sdl.codegen.CodeGenerationException: java.lang.RuntimeException: WSDL writing > failed! > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224 > ) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) > Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: > java.lang.RuntimeException: WSDL w > riting failed! > at > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(A > xisServiceBasedMultiLanguageEmitter.java:848) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:206 > ) > ... 2 more > Caused by: java.lang.RuntimeException: WSDL writing failed! > at > org.apache.axis2.wsdl.codegen.writer.WSDL11Writer.writeWSDL(WSDL11Writer.java:46) > at > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeWSDLFiles > (AxisServiceBasedMultiLanguageEmitter.java:904) > at > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(A > xisServiceBasedMultiLanguageEmitter.java:843) > ... 3 more > Caused by: org.apache.axis2.AxisFault: null; nested exception is: > java.lang.UnsupportedOperationException > at > org.apache.axis2.description.AxisService.getWSDL(AxisService.java:663) > at > org.apache.axis2.description.AxisService.printWSDL(AxisService.java:648) > at > org.apache.axis2.wsdl.codegen.writer.WSDL11Writer.writeWSDL(WSDL11Writer.java:41) > ... 5 more > Caused by: java.lang.UnsupportedOperationException > at > org.apache.neethi.PolicyReference.serialize(PolicyReference.java:64) > at > org.apache.axis2.util.PolicyUtil.getPolicyComponentAsOMElement(PolicyUtil.java:107) > at > org.apache.axis2.description.AxisService2OM.addPolicyAsExtElement(AxisService2OM.java:956 > ) > at > org.apache.axis2.description.AxisService2OM.generateSOAP11Binding(AxisService2OM.java:535 > ) > at > org.apache.axis2.description.AxisService2OM.generateOM(AxisService2OM.java:194) > at > org.apache.axis2.description.AxisService.getWSDL(AxisService.java:658) > ... 7 more > Sample WSDL and XSD attached -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]