Consuming web services with Axis2 using Eclipse wizard
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2010 04:18 AM
If your Alfresco-based application needs to access an external web service, chances are you will use Eclipse's Axis2 client wizard.
For this wizard to work, it is recommended to use Axis2 version 1.4.1, which relies on Axiom 1.2.7
BUT Alfresco ships with Axiom 1.2.5
And that generates classpath problems: NoClassDefFoundError, NoSuchMethod.
Here is how I solved the problem, please let me know if you know a better solution:
1) Remove axiom-impl-1.2.5.jar and axiom-api-1.2.5.jar from the Alfresco webapp.
2) Copy all JARs from client-eclipse-project/WebContent/WEB-INF/lib to Alfresco/tomcat/webapps/alfresco/WEB-INF/lib
Cheers!
Nicolas Raoul
Keywords:
NoSuchMethodError: org.apache.axiom.soap.SOAPEnvelope.hasFault()Z
NullPointerException in induced by a previous NoClassDefFoundError and execution jumps to the finally clause: _messageContext.getTransportOut().getSender().cleanup(_messageContext)
For this wizard to work, it is recommended to use Axis2 version 1.4.1, which relies on Axiom 1.2.7
BUT Alfresco ships with Axiom 1.2.5
And that generates classpath problems: NoClassDefFoundError, NoSuchMethod.
Here is how I solved the problem, please let me know if you know a better solution:
1) Remove axiom-impl-1.2.5.jar and axiom-api-1.2.5.jar from the Alfresco webapp.
2) Copy all JARs from client-eclipse-project/WebContent/WEB-INF/lib to Alfresco/tomcat/webapps/alfresco/WEB-INF/lib
Cheers!
Nicolas Raoul
Keywords:
NoSuchMethodError: org.apache.axiom.soap.SOAPEnvelope.hasFault()Z
NullPointerException in induced by a previous NoClassDefFoundError and execution jumps to the finally clause: _messageContext.getTransportOut().getSender().cleanup(_messageContext)
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2010 10:24 AM
Hi Nicolas,
thank you for your contribution :wink:
thank you for your contribution :wink:
