[ https://issues.apache.org/jira/browse/AXIS2-4242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674912#action_12674912 ]
Shyamala commented on AXIS2-4242: --------------------------------- I use the following ant task to invoke the code generation: <target name="wsdl2javaIdentity"> <echo message="[ Generating WSDL to Java Types for Identity ]" /> <java fork="true" failonerror="true" classname="org.apache.axis2.wsdl.WSDL2Java"> <classpath refid="axis2.classpath"/> <arg value="-uri" /> <arg file="${web.home}/identityService.wsdl" /> <arg value="-s" /> <arg value="-d" /> <arg value="jaxbri" /> <arg value="-o" /> <arg value="${generated}" /> <arg value="-p" /> <arg value="com.ebay.trinity.identityservice.pres.wsdl" /> <arg value="-ns2p" /> <arg value="http://identity.ebay.com/trinity=com.ebay.trinity.identityservice.pres.wsdl" /> </java> <echo message="[ Done.]" /> </target> > org.apache.axis2.wsdl.codegen.CodeGenerationException: > java.lang.RuntimeException: java.lang.reflect.InvocationTargetException > ------------------------------------------------------------------------------------------------------------------------------ > > Key: AXIS2-4242 > URL: https://issues.apache.org/jira/browse/AXIS2-4242 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: codegen > Environment: WindowsXP.Using eclipse sdk version 3.2.0 > Reporter: Shyamala > Attachments: identity.xsd, identityService.wsdl > > > Hello, > When trying to generate code for a wsdl I am getting the following exception: > 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.JAXBRIExtension.engage(JAXBRIExtension.java:112) > 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(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at > org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:101) > ... 3 more > Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Unable to > generate code using jaxbri > at > org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:304) > ... 8 more > Caused by: java.lang.RuntimeException: Unable to generate code using jaxbri > at > org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:196) > ... 8 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.