Sanchit Dua created AXIS2-5725:
----------------------------------

             Summary: Exception in thread "main" 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
                 Key: AXIS2-5725
                 URL: https://issues.apache.org/jira/browse/AXIS2-5725
             Project: Axis2
          Issue Type: Bug
         Environment: Windows 7, java version "1.5"
            Reporter: Sanchit Dua


I am getting following errors while using axis2 library tool WSDL2Code or 
WSDL2Java. Any help on this will be highly appreciated.
Thanks,
Sanchit

Retrieving document at 
'C:\Eclipse_Workspace\wsdlToCode\src\main\resources\service.wsdl'.
Exception in thread "main" 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
        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: 
java.lang.reflect.InvocationTargetException
        at 
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:53)
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
        ... 2 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
        ... 3 more
Caused by: java.lang.NoSuchMethodError: 
org.apache.ws.commons.schema.XmlSchema.getTypeByName(Ljava/lang/String;)Lorg/apache/ws/commons/schema/XmlSchemaType;
        at 
org.apache.axis2.schema.SchemaCompiler.isComponetExists(SchemaCompiler.java:2728)
        at 
org.apache.axis2.schema.SchemaCompiler.getParentSchemaFromIncludes(SchemaCompiler.java:2670)
        at 
org.apache.axis2.schema.SchemaCompiler.getParentSchema(SchemaCompiler.java:2644)
        at 
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:925)
        at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:592)
        at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:563)
        at 
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:370)
        at 
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:280)
        at 
org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:103)
        ... 8 more




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to