Greetings,
I have installed Rampart with Axis2 1.6.1 and am trying to generate client subs
using wsdl2java and getting the following exception
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: Malformed uri: UsernameToken
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:293)
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: Malformed uri: UsernameToken
at
org.apache.neethi.PolicyReference.getRemoteReferencedPolicy(PolicyReference.java:155)
at org.apache.neethi.PolicyReference.normalize(PolicyReference.java:110)
at org.apache.axis2.util.PolicyUtil.getMergedPolicy(PolicyUtil.java:238)
at
org.apache.axis2.description.PolicyInclude.getPolicy(PolicyInclude.java:255)
at
org.apache.axis2.description.PolicyInclude.calculateEffectivePolicy(PolicyInclude.java:240)
at
org.apache.axis2.description.PolicyInclude.getEffectivePolicy(PolicyInclude.java:277)
at
org.apache.axis2.description.PolicyInclude.calculateEffectivePolicy(PolicyInclude.java:224)
at
org.apache.axis2.description.PolicyInclude.getEffectivePolicy(PolicyInclude.java:277)
at
org.apache.axis2.wsdl.codegen.extension.PolicyEvaluator.engage(PolicyEvaluator.java:137)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:246)
... 2 more
Google found a JIRA entry from 2008 which says the problem is fixed in Axis2.
Any suggestions, please....
Aaron Stromas, Practice Consultant | RSA The Security Division of EMC |
Identity & Fraud Protection Practice | +1 240 271 6458