[jira] Commented: (AXIS2-3274) Axis2 kernel logging on WAS 6.1
[ https://issues.apache.org/jira/browse/AXIS2-3274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542130 ] Pierre Casenove commented on AXIS2-3274: Hi, This issue only appears (for me) when deploying on a distant server (under Gentoo), not on my local machine using Websphere Development studio v7. This exception is received at deployment of the application, even with classloader set to parent_last. Pierre Axis2 kernel logging on WAS 6.1 --- Key: AXIS2-3274 URL: https://issues.apache.org/jira/browse/AXIS2-3274 Project: Axis 2.0 (Axis2) Issue Type: Bug Components: kernel Affects Versions: 1.3 Environment: Axis2 1.3 under Websphere 6.1 Reporter: Pierre Casenove Assignee: Charitha Kankanamge Priority: Minor When deploying Axis2 based application, websphere tries to instantiates AxisServlet and throws following exception: Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.ClassNotFoundException: org.apache.commons.logging.impl.Log4jFactory at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:609) at java.security.AccessController.doPrivileged(AccessController.java:193) at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:561) at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:352) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395) at org.apache.axis2.transport.http.AxisServlet.clinit(AxisServlet.java:79) The root cause is explained here : http://wiki.apache.org/jakarta-commons/Logging/FrequentlyAskedQuestions?highlight=%28websphere%29 In order to get everything works, I had to modify axis2-kernel.jar to add a commons-logging.properties containing: priority=1 org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger I tried to first put this file in my web app classpath but it didn't work. The only solution was to put it in Axis2 Kernel jar. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Created: (AXIS2-3274) Axis2 kernel logging on WAS 6.1
Axis2 kernel logging on WAS 6.1 --- Key: AXIS2-3274 URL: https://issues.apache.org/jira/browse/AXIS2-3274 Project: Axis 2.0 (Axis2) Issue Type: Bug Components: kernel Affects Versions: 1.3 Environment: Axis2 1.3 under Websphere 6.1 Reporter: Pierre Casenove Priority: Minor When deploying Axis2 based application, websphere tries to instantiates AxisServlet and throws following exception: Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.ClassNotFoundException: org.apache.commons.logging.impl.Log4jFactory at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:609) at java.security.AccessController.doPrivileged(AccessController.java:193) at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:561) at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:352) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395) at org.apache.axis2.transport.http.AxisServlet.clinit(AxisServlet.java:79) The root cause is explained here : http://wiki.apache.org/jakarta-commons/Logging/FrequentlyAskedQuestions?highlight=%28websphere%29 In order to get everything works, I had to modify axis2-kernel.jar to add a commons-logging.properties containing: priority=1 org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger I tried to first put this file in my web app classpath but it didn't work. The only solution was to put it in Axis2 Kernel jar. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (AXIS2-3043) wsdl2java using jaxbri data binding fails
[ https://issues.apache.org/jira/browse/AXIS2-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517473 ] Pierre Casenove commented on AXIS2-3043: Thanks for the patch. Will it be included in the 1.3 branch nightly? I prefer getting the nightly builds rather than compiling them myself. wsdl2java using jaxbri data binding fails - Key: AXIS2-3043 URL: https://issues.apache.org/jira/browse/AXIS2-3043 Project: Axis 2.0 (Axis2) Issue Type: Bug Components: databinding Affects Versions: nightly Environment: Axis2 1.3 Nightly; websphere6; eclipse 3.3 Reporter: Pierre Casenove Assignee: Amila Chinthaka Suriarachchi Attachments: AXIS2-3043.patch, faultywsdl.zip When trying to generate the java code from the attached wsdl using jaxbri databinding, an Exception is returned: [java] Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException:No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1363 ) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:247) [java] ... 2 more [java] Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd [java] at org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(TypeMappingAdapter.java:82 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:2823 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2623 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2191 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2117 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeleton(AxisServiceBasedMultiLanguageEmitter.java:2033 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1964 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1320 ) [java] ... 3 more Using the xjc.bat script provided in the offcial JAXB2.0.5 release, the classes are generated correctly. Java code is also generated correctly with xmlbeans and adb databinding. Ant task: target name=wsdl2java depends=clean,prepare delete dir=output / java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpath refid=axis.classpath / arg value=-d / arg value=jaxbri / arg value=-u / arg value=-uri / arg file=${dir.wsdl}/${uri.wsdl} / arg value=-ss / arg value=-wv / arg value=1.1 / arg value=-g / arg value=-sd / arg value=-o / arg file=output / arg value=-p / arg value=${package.prefix} / /java mkdir dir=output/resources/META-INF / move todir=output/resources/META-INF fileset dir=output/resources !-- axis2 web services definitions file -- include name=services.xml / include name=*.wsdl / include name=*.xsd / /fileset /move /target -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Closed: (AXIS2-3043) wsdl2java using jaxbri data binding fails
[ https://issues.apache.org/jira/browse/AXIS2-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pierre Casenove closed AXIS2-3043. -- Test OK using Axis2-1.3 RC3. Code is correctly generated. wsdl2java using jaxbri data binding fails - Key: AXIS2-3043 URL: https://issues.apache.org/jira/browse/AXIS2-3043 Project: Axis 2.0 (Axis2) Issue Type: Bug Components: databinding Affects Versions: nightly Environment: Axis2 1.3 Nightly; websphere6; eclipse 3.3 Reporter: Pierre Casenove Assignee: Amila Chinthaka Suriarachchi Attachments: AXIS2-3043.patch, faultywsdl.zip When trying to generate the java code from the attached wsdl using jaxbri databinding, an Exception is returned: [java] Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException:No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1363 ) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:247) [java] ... 2 more [java] Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd [java] at org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(TypeMappingAdapter.java:82 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:2823 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2623 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2191 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2117 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeleton(AxisServiceBasedMultiLanguageEmitter.java:2033 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1964 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1320 ) [java] ... 3 more Using the xjc.bat script provided in the offcial JAXB2.0.5 release, the classes are generated correctly. Java code is also generated correctly with xmlbeans and adb databinding. Ant task: target name=wsdl2java depends=clean,prepare delete dir=output / java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpath refid=axis.classpath / arg value=-d / arg value=jaxbri / arg value=-u / arg value=-uri / arg file=${dir.wsdl}/${uri.wsdl} / arg value=-ss / arg value=-wv / arg value=1.1 / arg value=-g / arg value=-sd / arg value=-o / arg file=output / arg value=-p / arg value=${package.prefix} / /java mkdir dir=output/resources/META-INF / move todir=output/resources/META-INF fileset dir=output/resources !-- axis2 web services definitions file -- include name=services.xml / include name=*.wsdl / include name=*.xsd / /fileset /move /target -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For
[jira] Commented: (AXIS2-3064) InvocationTargetException during code generation using JAXBRI
[ https://issues.apache.org/jira/browse/AXIS2-3064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517549 ] Pierre Casenove commented on AXIS2-3064: Looking at the code, the issue happens during the bind operation: // Bind the XML S2JJAXBModel jaxbModel = sc.bind(); if(jaxbModel == null){ throw new RuntimeException(Unable to generate code using jaxbri); } InvocationTargetException during code generation using JAXBRI - Key: AXIS2-3064 URL: https://issues.apache.org/jira/browse/AXIS2-3064 Project: Axis 2.0 (Axis2) Issue Type: Bug Components: databinding Affects Versions: 1.3 Environment: Axis2 1.3 RC3 Reporter: Pierre Casenove Attachments: faultywsdl.zip WSDL2Java operation fails with the following exception: [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:265) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) [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:218) [java] ... 2 more [java] Caused by: java.lang.reflect.InvocationTargetException [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.lang.reflect.Method.invoke(Method.java:615) [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:177) [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:152) [java] ... 8 more [java] Java Result: 1 Ant task used: target name=wsdl2java depends=clean,prepare delete dir=output / java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpath refid=axis.classpath / arg value=-d / arg value=jaxbri / arg value=-uri / arg file=${dir.wsdl}/${uri.wsdl} / arg value=-ss / arg value=-g / arg value=-sd / arg value=-ssi / arg value=-o / arg file=output / /java !-- Move the schema folder to classpath-- mkdir dir=output/resources/META-INF / move todir=output/resources/META-INF fileset dir=output/resources !-- axis2 web services definitions file -- include name=services.xml / include name=*.wsdl / include name=*.xsd / /fileset /move /target The WSDL is correctly parsed and the code generated when using official jaxb 2.0.5 distribution and the included xjc.bat script file. Attached files: faulty wsdl with the imported xsd in the wsdl. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Updated: (AXIS2-3064) InvocationTargetException during code generation using JAXBRI
[ https://issues.apache.org/jira/browse/AXIS2-3064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pierre Casenove updated AXIS2-3064: --- Attachment: faultywsdl.zip Attaching the wsdl causing the exception. InvocationTargetException during code generation using JAXBRI - Key: AXIS2-3064 URL: https://issues.apache.org/jira/browse/AXIS2-3064 Project: Axis 2.0 (Axis2) Issue Type: Bug Components: databinding Affects Versions: 1.3 Environment: Axis2 1.3 RC3 Reporter: Pierre Casenove Attachments: faultywsdl.zip WSDL2Java operation fails with the following exception: [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:265) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) [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:218) [java] ... 2 more [java] Caused by: java.lang.reflect.InvocationTargetException [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.lang.reflect.Method.invoke(Method.java:615) [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:177) [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:152) [java] ... 8 more [java] Java Result: 1 Ant task used: target name=wsdl2java depends=clean,prepare delete dir=output / java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpath refid=axis.classpath / arg value=-d / arg value=jaxbri / arg value=-uri / arg file=${dir.wsdl}/${uri.wsdl} / arg value=-ss / arg value=-g / arg value=-sd / arg value=-ssi / arg value=-o / arg file=output / /java !-- Move the schema folder to classpath-- mkdir dir=output/resources/META-INF / move todir=output/resources/META-INF fileset dir=output/resources !-- axis2 web services definitions file -- include name=services.xml / include name=*.wsdl / include name=*.xsd / /fileset /move /target The WSDL is correctly parsed and the code generated when using official jaxb 2.0.5 distribution and the included xjc.bat script file. Attached files: faulty wsdl with the imported xsd in the wsdl. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Created: (AXIS2-3064) InvocationTargetException during code generation using JAXBRI
InvocationTargetException during code generation using JAXBRI - Key: AXIS2-3064 URL: https://issues.apache.org/jira/browse/AXIS2-3064 Project: Axis 2.0 (Axis2) Issue Type: Bug Components: databinding Affects Versions: 1.3 Environment: Axis2 1.3 RC3 Reporter: Pierre Casenove Attachments: faultywsdl.zip WSDL2Java operation fails with the following exception: [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:265) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) [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:218) [java] ... 2 more [java] Caused by: java.lang.reflect.InvocationTargetException [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.lang.reflect.Method.invoke(Method.java:615) [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:177) [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:152) [java] ... 8 more [java] Java Result: 1 Ant task used: target name=wsdl2java depends=clean,prepare delete dir=output / java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpath refid=axis.classpath / arg value=-d / arg value=jaxbri / arg value=-uri / arg file=${dir.wsdl}/${uri.wsdl} / arg value=-ss / arg value=-g / arg value=-sd / arg value=-ssi / arg value=-o / arg file=output / /java !-- Move the schema folder to classpath-- mkdir dir=output/resources/META-INF / move todir=output/resources/META-INF fileset dir=output/resources !-- axis2 web services definitions file -- include name=services.xml / include name=*.wsdl / include name=*.xsd / /fileset /move /target The WSDL is correctly parsed and the code generated when using official jaxb 2.0.5 distribution and the included xjc.bat script file. Attached files: faulty wsdl with the imported xsd in the wsdl. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Created: (AXIS2-3043) wsdl2java using jaxbri data binding fails
wsdl2java using jaxbri data binding fails - Key: AXIS2-3043 URL: https://issues.apache.org/jira/browse/AXIS2-3043 Project: Axis 2.0 (Axis2) Issue Type: Bug Components: databinding Affects Versions: nightly Environment: Axis2 1.3 Nightly; websphere6; eclipse 3.3 Reporter: Pierre Casenove When trying to generate the java code from the attached wsdl using jaxbri databinding, an Exception is returned: [java] Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException:No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1363 ) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:247) [java] ... 2 more [java] Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd [java] at org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(TypeMappingAdapter.java:82 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:2823 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2623 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2191 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2117 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeleton(AxisServiceBasedMultiLanguageEmitter.java:2033 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1964 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1320 ) [java] ... 3 more Using the xjc.bat script provided in the offcial JAXB2.0.5 release, the classes are generated correctly. Java code is also generated correctly with xmlbeans and adb databinding. Ant task: target name=wsdl2java depends=clean,prepare delete dir=output / java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpath refid=axis.classpath / arg value=-d / arg value=jaxbri / arg value=-u / arg value=-uri / arg file=${dir.wsdl}/${uri.wsdl} / arg value=-ss / arg value=-wv / arg value=1.1 / arg value=-g / arg value=-sd / arg value=-o / arg file=output / arg value=-p / arg value=${package.prefix} / /java mkdir dir=output/resources/META-INF / move todir=output/resources/META-INF fileset dir=output/resources !-- axis2 web services definitions file -- include name=services.xml / include name=*.wsdl / include name=*.xsd / /fileset /move /target -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Updated: (AXIS2-3043) wsdl2java using jaxbri data binding fails
[ https://issues.apache.org/jira/browse/AXIS2-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pierre Casenove updated AXIS2-3043: --- Attachment: faultywsdl.zip Attaching the faulty wsdl. The issue seems to be linked with the xsd import as the code is correctly generated if I don't do any imports. wsdl2java using jaxbri data binding fails - Key: AXIS2-3043 URL: https://issues.apache.org/jira/browse/AXIS2-3043 Project: Axis 2.0 (Axis2) Issue Type: Bug Components: databinding Affects Versions: nightly Environment: Axis2 1.3 Nightly; websphere6; eclipse 3.3 Reporter: Pierre Casenove Attachments: faultywsdl.zip When trying to generate the java code from the attached wsdl using jaxbri databinding, an Exception is returned: [java] Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException:No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1363 ) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:247) [java] ... 2 more [java] Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd [java] at org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(TypeMappingAdapter.java:82 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:2823 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2623 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2191 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2117 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeleton(AxisServiceBasedMultiLanguageEmitter.java:2033 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1964 ) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1320 ) [java] ... 3 more Using the xjc.bat script provided in the offcial JAXB2.0.5 release, the classes are generated correctly. Java code is also generated correctly with xmlbeans and adb databinding. Ant task: target name=wsdl2java depends=clean,prepare delete dir=output / java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpath refid=axis.classpath / arg value=-d / arg value=jaxbri / arg value=-u / arg value=-uri / arg file=${dir.wsdl}/${uri.wsdl} / arg value=-ss / arg value=-wv / arg value=1.1 / arg value=-g / arg value=-sd / arg value=-o / arg file=output / arg value=-p / arg value=${package.prefix} / /java mkdir dir=output/resources/META-INF / move todir=output/resources/META-INF fileset dir=output/resources !-- axis2 web services definitions file -- include name=services.xml / include name=*.wsdl / include name=*.xsd / /fileset /move /target -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To
[jira] Created: (AXIS2-2969) AXIS2 generates only one EPR for a web service on server side
AXIS2 generates only one EPR for a web service on server side - Key: AXIS2-2969 URL: https://issues.apache.org/jira/browse/AXIS2-2969 Project: Axis 2.0 (Axis2) Issue Type: Bug Affects Versions: 1.2 Environment: AXIS2 1.2 with Tomcat or IBM Websphere6. Reporter: Pierre Casenove Though multiple EPR are defined in the wsdl , at the server side Axis2 will ignore all those and generate its own epr based on - Available transports - IP and Port - Service name Extract of the wsdl: wsdl:service name=ServiceTest wsdl:port name=ServiceTest_services binding=tns:WebServiceTestSoapBinding wsdlsoap:address location=http://192.168.31.156:9080/Dev/services/ServiceTest/ /wsdl:port wsdl:port name=ServiceTest_server binding=tns:WebServiceTestSoapBinding wsdlsoap:address location=http://192.168.31.156:9080/Dev/serverAuthent/ServiceTest/ /wsdl:port wsdl:port name=ServiceTest_client binding=tns:WebServiceTestSoapBinding wsdlsoap:address location=http://192.168.31.156:9080/Dev/clientAuthent/ServiceTest/ /wsdl:port /wsdl:service Generated EPR (returned by function AxisServlet.getEPRsForService(String ServiceName,String IP)): http://localhost:9080/fsaDev/services/ServiceTest AXIS1 allowed to access one webservice through multiple addresses only using web.xml file. Axis-user mailing list thread: http://marc.info/?l=axis-userm=118457435121917w=2 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Updated: (AXIS2-2969) AXIS2 generates only one EPR for a web service in admin console
[ https://issues.apache.org/jira/browse/AXIS2-2969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pierre Casenove updated AXIS2-2969: --- Component/s: admin console Description: Though multiple EPR are defined in the wsdl , at the server side Axis2 will ignore all those and generate its own epr based on - Available transports - IP and Port - Service name Extract of the wsdl: wsdl:service name=ServiceTest wsdl:port name=ServiceTest_services binding=tns:WebServiceTestSoapBinding wsdlsoap:address location=http://192.168.31.156:9080/Dev/services/ServiceTest/ /wsdl:port wsdl:port name=ServiceTest_server binding=tns:WebServiceTestSoapBinding wsdlsoap:address location=http://192.168.31.156:9080/Dev/serverAuthent/ServiceTest/ /wsdl:port wsdl:port name=ServiceTest_client binding=tns:WebServiceTestSoapBinding wsdlsoap:address location=http://192.168.31.156:9080/Dev/clientAuthent/ServiceTest/ /wsdl:port /wsdl:service Generated EPR (returned by function AxisServlet.getEPRsForService(String ServiceName,String IP)): http://localhost:9080/fsaDev/services/ServiceTest Axis-user mailing list thread: http://marc.info/?l=axis-userm=118457435121917w=2 was: Though multiple EPR are defined in the wsdl , at the server side Axis2 will ignore all those and generate its own epr based on - Available transports - IP and Port - Service name Extract of the wsdl: wsdl:service name=ServiceTest wsdl:port name=ServiceTest_services binding=tns:WebServiceTestSoapBinding wsdlsoap:address location=http://192.168.31.156:9080/Dev/services/ServiceTest/ /wsdl:port wsdl:port name=ServiceTest_server binding=tns:WebServiceTestSoapBinding wsdlsoap:address location=http://192.168.31.156:9080/Dev/serverAuthent/ServiceTest/ /wsdl:port wsdl:port name=ServiceTest_client binding=tns:WebServiceTestSoapBinding wsdlsoap:address location=http://192.168.31.156:9080/Dev/clientAuthent/ServiceTest/ /wsdl:port /wsdl:service Generated EPR (returned by function AxisServlet.getEPRsForService(String ServiceName,String IP)): http://localhost:9080/fsaDev/services/ServiceTest AXIS1 allowed to access one webservice through multiple addresses only using web.xml file. Axis-user mailing list thread: http://marc.info/?l=axis-userm=118457435121917w=2 Summary: AXIS2 generates only one EPR for a web service in admin console (was: AXIS2 generates only one EPR for a web service on server side) AXIS2 generates only one EPR for a web service in admin console --- Key: AXIS2-2969 URL: https://issues.apache.org/jira/browse/AXIS2-2969 Project: Axis 2.0 (Axis2) Issue Type: Bug Components: admin console Affects Versions: 1.2 Environment: AXIS2 1.2 with Tomcat or IBM Websphere6. Reporter: Pierre Casenove Though multiple EPR are defined in the wsdl , at the server side Axis2 will ignore all those and generate its own epr based on - Available transports - IP and Port - Service name Extract of the wsdl: wsdl:service name=ServiceTest wsdl:port name=ServiceTest_services binding=tns:WebServiceTestSoapBinding wsdlsoap:address location=http://192.168.31.156:9080/Dev/services/ServiceTest/ /wsdl:port wsdl:port name=ServiceTest_server binding=tns:WebServiceTestSoapBinding wsdlsoap:address location=http://192.168.31.156:9080/Dev/serverAuthent/ServiceTest/ /wsdl:port wsdl:port name=ServiceTest_client binding=tns:WebServiceTestSoapBinding wsdlsoap:address location=http://192.168.31.156:9080/Dev/clientAuthent/ServiceTest/ /wsdl:port /wsdl:service Generated EPR (returned by function AxisServlet.getEPRsForService(String ServiceName,String IP)): http://localhost:9080/fsaDev/services/ServiceTest Axis-user mailing list thread: http://marc.info/?l=axis-userm=118457435121917w=2 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]