Hi,

I am attempting to re-build some server side code + stubs using axis 1.6.1 and 
rampart 1.6.0. I am getting the following error:

# wsdl2java.bat -uri Test.wsdl -o generated -or -p test -ss -sd -ssi -uw 
--noBuildXML

 Using AXIS2_HOME: C:\bin\axis2-1.6.1
 Using JAVA_HOME:  C:\Program Files\Java\jdk1.6.0_27
Retrieving document at 'Test.wsdl'.
Exception in thread "main" 
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:175)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.AxisFault: java.lang.Class cannot be cast to 
java.lang.reflect.ParameterizedType
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:411)
        at 
org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:169)
        ... 2 more
Caused by: java.lang.ClassCastException: java.lang.Class cannot be cast to 
java.lang.reflect.ParameterizedType
        at 
org.apache.neethi.AssertionBuilderFactoryImpl.findAssertionBuilderTarget(AssertionBuilderFactoryImpl.java:136)
        at 
org.apache.neethi.AssertionBuilderFactoryImpl.invokeBuilder(AssertionBuilderFactoryImpl.java:128)
        at 
org.apache.neethi.AssertionBuilderFactoryImpl.build(AssertionBuilderFactoryImpl.java:110)
        at 
org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:225)
        at 
org.apache.neethi.PolicyBuilder.getAllOperator(PolicyBuilder.java:185)
        at 
org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:218)
        at 
org.apache.neethi.PolicyBuilder.getExactlyOneOperator(PolicyBuilder.java:181)
        at 
org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:216)
        at 
org.apache.neethi.PolicyBuilder.getPolicyOperator(PolicyBuilder.java:175)
        at org.apache.neethi.PolicyBuilder.getPolicy(PolicyBuilder.java:125)
        at org.apache.neethi.PolicyEngine.getPolicy(PolicyEngine.java:113)
        at 
org.apache.axis2.util.PolicyUtil.getPolicyComponent(PolicyUtil.java:171)
        at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPoliciesInDefintion(WSDL11ToAxisServiceBuilder.java:3119)
        at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPoliciesInDefintion(WSDL11ToAxisServiceBuilder.java:3097)
        at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:374)
        ... 4 more

When using axis 1.6.0 and rampart 1.6.0, the server side code and stubs are 
generated without error.

The sample wsdl is attached.

>From the stack trace, it looks like the upgrade to neethi v3.0.1 that happened 
>in axis 1.6.1 is causing issues with our policy, but I'm not sure how to 
>resolve it.

I suspect I'm not the only one hitting this, as googling found this: 
http://stackoverflow.com/questions/7397591/axis2-1-6-1-vs-rampart-1-6-0-compatibility

Any ideas?

Thanks
Leon

Attachment: Test.wsdl
Description: Test.wsdl

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to