Okay, I'm thinking environment, java version or something else on my
machine, because I've tried other wsdl files including
Axis2SAmpleDocLit.wsdl from the axis2-1.3 samples and I still get the same
error from wsdl2java:


Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(
CodeGenerationEngine.java:153)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
range: -1
        at java.lang.String.substring(String.java:1768)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.getBaseURI(
CodeGenerationEngine.java:341)
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(
CodeGenerationEngine.java:286)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(
CodeGenerationEngine.java:105)
        ... 2 more

Surely someone has encountered this before? I've tried using both jdk 1.6and
1.5, with the same results.

Dennis

Reply via email to