Hi,

It seems like you have a version mismatch problem with Axiom, it may
refer to a incompatible Axiom.jar file from somewhere, pleases use the
Jar files available on you axis2 1.4.1 lib directory to compile your
services and   also to run your web service client. Since you haven't
mention when you get this exception   and how you deploy the service,
can't predict anything specifically, Also try to use axis2server
shipped with axis2 1.4.1 distro to deploy your services.

Further check you CLASSPATH and AXIS2_HOME environments variables also .


Thanks ,

On Fri, Feb 20, 2009 at 3:52 AM, hping <[email protected]> wrote:
>
> Hello all,
>
> I am new to axis2 land, and currently I am using axis2 1.4.1, and created my
> own server and client.
> When the client call the axis2 service, I got this exception.
>
> Here the utils.UtilsServiceMessageReceiverInOut class is inside the
> Services.aar file. Inside that file, I already imported the import
> org.apache.axiom.om.*.
>
> Any suggestions?
>
> ===============
> org.apache.axiom.om.OMFactory.createOMElement(Lorg/apache/axiom/om/OMDataSource;Ljava/lang/String;Lorg/apache/axiom/om/OMNamespace;)Lorg/apache/axiom/om/OMElement;
>        java.lang.NoSuchMethodError:
> org.apache.axiom.om.OMFactory.createOMElement(Lorg/apache/axiom/om/OMDataSource;Ljava/lang/String;Lorg/apache/axiom/om/OMNamespace;)Lorg/apache/axiom/om/OMElement;
>        at
> utils.UtilsServiceMessageReceiverInOut.toOM(UtilsServiceMessageReceiverInOut.java:146)
>        at
> utils.UtilsServiceMessageReceiverInOut.toEnvelope(UtilsServiceMessageReceiverInOut.java:157)
>        at
> utils.UtilsServiceMessageReceiverInOut.invokeBusinessLogic(UtilsServiceMessageReceiverInOut.java:87)
>        at
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)
>        at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
>        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>        at
> com.acme.axis2.Axis2TestImpl.callAxisService(Axis2TestImpl.java:317)
>        at
> com.acme.axis2.Axis2TestImpl.callAxisService(Axis2TestImpl.java:245)
>        at
> com.acme.axis2.Axis2TestImpl.handleRequest(Axis2TestImpl.java:144)
>
> --
> View this message in context: 
> http://www.nabble.com/java.lang.NoSuchMethodError%3A-org.apache.axiom.om.OMFactory.createOMElement%28-tp22110938p22110938.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>



--
Sagara Gunathunga

Blog - ssagara.blogspot.com
Web - http://sagaras.awardspace.com/

Reply via email to