[ https://issues.apache.org/jira/browse/AXIS2-5475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16874897#comment-16874897 ]
Michael commented on AXIS2-5475: -------------------------------- Still occurs is -ns2p setting is set: {code:java} <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" failonerror="true"> <classpath refid="axis2_jaxbri.runtime.path" /> <arg value="-o" /> <arg value="src/generated" /> <arg value="-S" /> <arg value="java" /> <arg value="-d" /> <arg value="jaxbri" /> <arg value="-uri" /> <arg file="Test.wsdl"/> <arg value="-p" /> <arg value="com.test.service" /> <arg value="-s" /> <arg value="-u" /> <arg value="-ns2p" /> <arg value="http://apache.org/axis2/Axis2UserGuide=com.test" /> <arg value="--noBuildXML" /> </java> {code} Exception {noformat} [java] [main] WARN org.apache.axis2.jaxbri.CodeGenerationUtility - s4s-elt-schema-ns: The namespace of element 'annotation' must be from the schema namespace, 'http://www.w3.org/2001/XMLSchema'. [java] [main] WARN org.apache.axis2.jaxbri.CodeGenerationUtility - s4s-elt-schema-ns: The namespace of element 'appinfo' must be from the schema namespace, 'http://www.w3.org/2001/XMLSchema'. [java] [main] ERROR org.apache.axis2.jaxbri.CodeGenerationUtility - Unexpected <annotation> appears at line 1 column 194 [java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:294) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:50) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) [java] Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [java] at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:112) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:247) [java] ... 2 more [java] Caused by: java.lang.reflect.InvocationTargetException [java] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [java] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.base/java.lang.reflect.Method.invoke(Method.java:567) [java] at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:101) [java] ... 3 more [java] Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Unable to generate code using jaxbri [java] at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:355) [java] ... 8 more [java] Caused by: java.lang.RuntimeException: Unable to generate code using jaxbri [java] at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:247) [java] ... 8 more{noformat} > Unable to generate code using jaxbri > ------------------------------------ > > Key: AXIS2-5475 > URL: https://issues.apache.org/jira/browse/AXIS2-5475 > Project: Axis2 > Issue Type: Bug > Components: databinding, Tools, wsdl > Affects Versions: 1.6.2 > Environment: any. > Reporter: VictorQian > Priority: Major > Attachments: Test.wsdl, cim.wsdl > > > if using adb, wsdl2java could generate codes, but it fails if using jaxbri: > 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: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: > 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:246) > ... 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:601) > 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:355) > ... 8 more > Caused by: java.lang.RuntimeException: Unable to generate code using jaxbri > at > org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:247) > ... 8 more -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org For additional commands, e-mail: java-dev-h...@axis.apache.org