Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 5477 invoked from network); 3 Mar 2011 09:52:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Mar 2011 09:52:38 -0000 Received: (qmail 29992 invoked by uid 500); 3 Mar 2011 09:52:35 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 29669 invoked by uid 500); 3 Mar 2011 09:52:35 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 29659 invoked by uid 99); 3 Mar 2011 09:52:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2011 09:52:35 +0000 X-ASF-Spam-Status: No, hits=4.0 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_FONT_FACE_BAD,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of andrewvn2010@gmail.com designates 209.85.214.173 as permitted sender) Received: from [209.85.214.173] (HELO mail-iw0-f173.google.com) (209.85.214.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2011 09:52:30 +0000 Received: by iwl42 with SMTP id 42so871736iwl.32 for ; Thu, 03 Mar 2011 01:52:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=drfYPUobywS+yivlIOURHTcQ73G8x4HFXCwrGMSP2L0=; b=BwDD1YR/kHoYLE8LJ5uXjzMfj2utl3vCzdp9LgIfz1WKZc0m75xyKujLmmhW+Gf12S M3UTikDq6S1uaeJWozesWbw/9WWjPm2h2DnuFtq5Cjz/WCFPUqQFv/5uw5xZIzE72xZ3 YljiaV4CVPWiPILe9I+jJBzXfU9xbNXWYNu/E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=vKwG1sMLOSv3lTOjf+E83lO3SrGPQX4nlv5u7XA+qaoDUnkHPEDxon0O7pSFSABusW uEjJMBZQeYlCZ9GnjR7KJmOLQ9jtkA3LMvWUiVmpw1zb15F0m4Y2QVCDR8nhUwxYBnL3 qB2crWlrKBOdVvNCYklr6d8q3VoFmMrxlkrQc= MIME-Version: 1.0 Received: by 10.43.51.1 with SMTP id vg1mr1524918icb.83.1299145929043; Thu, 03 Mar 2011 01:52:09 -0800 (PST) Received: by 10.231.30.137 with HTTP; Thu, 3 Mar 2011 01:52:08 -0800 (PST) In-Reply-To: References: Date: Thu, 3 Mar 2011 16:52:08 +0700 Message-ID: Subject: Re: how to call web service with rampart? From: andrew vn To: Sagara Gunathunga Cc: java-dev@axis.apache.org Content-Type: multipart/alternative; boundary=bcaec52e5ead9cb055049d90fb46 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec52e5ead9cb055049d90fb46 Content-Type: text/plain; charset=ISO-8859-1 Thanks, i've fixed the problems when i copied *mex-1.4-imp.jar* to my classpath. On 3 March 2011 14:33, Sagara Gunathunga wrote: > > > On Wed, Mar 2, 2011 at 10:53 PM, andrew vn wrote: > >> I checked again the Converter service without client code. Here is the way >> i checked: >> >> * >> http://localhost:8081/ConverterProj/services/Converter/celsiusToFarenheit?celsius=100 >> * >> >> It made the following errors: >> >> *HTTP Status 500 - >> >> type Exception report >> >> message >> >> description The server encountered an internal error () that prevented it >> from fulfilling this request. >> >> exception >> >> javax.servlet.ServletException: Servlet execution threw an exception >> >> root cause >> >> java.lang.NoClassDefFoundError: org/apache/axis2/mex/MexException >> >> org.apache.rampart.RampartEngine.process(RampartEngine.java:75) >> >> org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92) >> org.apache.axis2.engine.Phase.invoke(Phase.java:318) >> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254) >> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160) >> >> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:135) >> >> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130) >> >> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:817) >> >> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:267) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:617) >> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> >> root cause >> >> java.lang.ClassNotFoundException: org.apache.axis2.mex.MexException* > > > Are you sure you have mex-x-impl.jar on your service classpath ? > > > * >> >> >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) >> >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) >> org.apache.rampart.RampartEngine.process(RampartEngine.java:75) >> >> org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92) >> org.apache.axis2.engine.Phase.invoke(Phase.java:318) >> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254) >> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160) >> >> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:135) >> >> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130) >> >> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:817) >> >> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:267) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:617) >> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> >> note The full stack trace of the root cause is available in the Apache >> Tomcat/6.0.32 logs.* >> >> But when I removed ** from *services.xml*. It >> works fine! > > > Yes , when you engage rampart module it try to deploy and look for > dependencies. > > > Thanks ! > > >> >> >> >> On 27 February 2011 00:36, andrew vn wrote: >> >>> I use another method to call web service. I could make a SOAP request, >>> but i can't receive the response because the parameter that is transfer is >>> *String* type. >>> >>> *SOAP Request:* >>> >>> >> standalone="no"?> >>> >>> >>> >> soapenv:mustUnderstand="1"> >>> >> wsu:Id="UsernameToken-2"> >>> apache >>> password >>> >>> >>> http://localhost:1234/ConverterProj/services/Converter >>> urn:uuid:E21D3885A186948AC71298740519416 >>> urn:celsiusToFarenheit >>> >>> >>> >>> 100 >>> >>> >>> >>> >>> >>> *SOAP Response >>> * >>> >> standalone="no"?> >>> >>> >>> http://www.w3.org/2005/08/addressing/soap/fault >>> urn:uuid:E21D3885A186948AC71298740519416 >>> >>> >>> >>> *soapenv:Server >>> java.lang.NoClassDefFoundError: >>> org/jaxen/JaxenException* >>> >>> >>> >>> >>> >>> I want to ask how to set and send with *float* type. Here is my test >>> client code: >>> >>> package wtp; >>> import org.apache.axiom.om.OMNamespace; >>> import org.apache.axiom.om.OMElement; >>> import org.apache.axis2.client.Options; >>> import org.apache.axiom.om.OMFactory; >>> import org.apache.axis2.addressing.EndpointReference; >>> >>> import org.apache.axiom.om.OMAbstractFactory; >>> import org.apache.axis2.client.ServiceClient; >>> import org.apache.axis2.context.ConfigurationContext; >>> import org.apache.axis2.context.ConfigurationContextFactory; >>> >>> public class TestClient { >>> >>> private static EndpointReference targetEPR = new EndpointReference(" >>> http://localhost:1234/ConverterProj/services/Converter"); >>> >>> public static void main(String[] args) { >>> try { >>> String axis2repository = >>> "/home/php/Downloads/metadata/.metadata/TestClient/WebContent/WEB-INF"; >>> String axis2xml = >>> "/home/php/Downloads/metadata/.metadata/TestClient/WebContent/WEB-INF/conf/axis2.xml"; >>> >>> ConfigurationContext configContext = >>> ConfigurationContextFactory.createConfigurationContextFromFileSystem(axis2repository,axis2xml); >>> ServiceClient serviceClient = new >>> ServiceClient(configContext,null); >>> serviceClient.engageModule("rampart"); >>> Options options = new Options(); >>> options.setAction("urn:celsiusToFarenheit"); >>> options.setTo(targetEPR); >>> options.setUserName("apache"); >>> options.setPassword("password"); >>> serviceClient.setOptions(options); >>> >>> >>> OMFactory omFactory = OMAbstractFactory.getOMFactory(); >>> OMNamespace omNamespace = omFactory.createOMNamespace (" >>> http://wtp","ns1"); >>> >>> OMElement method1 = >>> omFactory.createOMElement("celsiusToFarenheit", omNamespace); >>> >>> OMElement valueCelsius = >>> omFactory.createOMElement("celsius", null); >>> >>> valueCelsius.addChild(omFactory.createOMText(valueCelsius, "100")); >>> >>> method1.addChild(valueCelsius); >>> >>> serviceClient.fireAndForget(method1); // Exception is >>> thrown in this line >>> Thread.sleep(1000000); >>> >>> OMElement result = serviceClient.sendReceive(method1); >>> System.out.println(result); >>> >>> } catch (Exception e) { >>> System.out.println(e.getMessage()); >>> } >>> } >>> } >>> >>> Thanks in advanced >>> >>> >>> On 26 February 2011 20:20, Thilina Mahesh Buddhika wrote: >>> >>>> You need to include the jaxen-* jar in your classpath along with other >>>> jars available in the lib directory of Axis2 distribution. >>>> >>>> Thanks, >>>> Thilina >>>> >>>> >>>> On Sat, Feb 26, 2011 at 9:47 AM, andrew vn wrote: >>>> >>>>> I've already add 2 modules:* rampart.mar, rahas.ma*r and all* jar*files in >>>>> * lib* directory of rampart to my projects. >>>>> >>>>> I think that i make a mistake in client codes. >>>>> >>>>> Please take a look at my client code, is there any problem or missing? >>>>> >>>>> Thanks >>>>> >>>>> On 26 February 2011 11:07, Amarnath Reddy wrote: >>>>> >>>>>> Dear Andrew, >>>>>> You can solve this problem by placing all the libraries of axis21.5.1 >>>>>> distribution jars of lib directory. >>>>>> And remove the eclipse added jars. >>>>>> >>>>>> >>>>>> On Sat, Feb 26, 2011 at 9:19 AM, Lasantha Bandara < >>>>>> lasanthasridinesh@gmail.com> wrote: >>>>>> >>>>>>> One simple solution is to add required java libraries into your >>>>>>> project. Those are in \axis2-1.5.1-bin\axis2-1.5.1\lib folder. It will solve >>>>>>> many problems. >>>>>>> >>>>>>> >>>>>>> On Fri, Feb 25, 2011 at 7:31 PM, andrew vn wrote: >>>>>>> >>>>>>>> Dear all, >>>>>>>> >>>>>>>> I'm new to axis2 and web service. I've already written a *Converter >>>>>>>> * service genertated with tools: >>>>>>>> >>>>>>>> - eclipse-helio >>>>>>>> - jdk1.6.0_23 >>>>>>>> - axis2-1.5 >>>>>>>> - rapart-1.5.1 >>>>>>>> >>>>>>>> Then, i'm writing a client to call this service, and now i want to >>>>>>>> use *rampart* module to encrypt and sign the message. >>>>>>>> >>>>>>>> *Here is my service Converter code:* >>>>>>>> >>>>>>>> *Converter.java* >>>>>>>> package wtp; >>>>>>>> public class Converter >>>>>>>> { >>>>>>>> public float celsiusToFarenheit ( float celsius ) >>>>>>>> { >>>>>>>> return (celsius * 9 / 5) + 32; >>>>>>>> } >>>>>>>> >>>>>>>> public float farenheitToCelsius ( float farenheit ) >>>>>>>> { >>>>>>>> return (farenheit - 32) * 5 / 9; >>>>>>>> } >>>>>>>> } >>>>>>>> *PWCBHandler.java* >>>>>>>> package wtp; >>>>>>>> >>>>>>>> import org.apache.ws.security.WSPasswordCallback; >>>>>>>> import javax.security.auth.callback.Callback; >>>>>>>> import javax.security.auth.callback.CallbackHandler; >>>>>>>> import javax.security.auth.callback.UnsupportedCallbackException; >>>>>>>> import java.io.IOException; >>>>>>>> >>>>>>>> public class PWCBHandler implements CallbackHandler { >>>>>>>> >>>>>>>> @SuppressWarnings("deprecation") >>>>>>>> public void handle(Callback[] callbacks) throws IOException, >>>>>>>> UnsupportedCallbackException { >>>>>>>> >>>>>>>> for (int i = 0; i < callbacks.length; i++) { >>>>>>>> >>>>>>>> //When the server side need to authenticate the user >>>>>>>> WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i]; >>>>>>>> if (pwcb.getUsage() == >>>>>>>> WSPasswordCallback.USERNAME_TOKEN_UNKNOWN) { >>>>>>>> if(pwcb.getIdentifer().equals("apache") && >>>>>>>> pwcb.getPassword().equals("password")) { >>>>>>>> //If authentication successful, simply return >>>>>>>> return; >>>>>>>> } else { >>>>>>>> throw new UnsupportedCallbackException(callbacks[i], >>>>>>>> "check failed"); >>>>>>>> } >>>>>>>> } >>>>>>>> //When the client requests for the password to be added in to >>>>>>>> the >>>>>>>> //UT element >>>>>>>> pwcb.setPassword("password"); >>>>>>>> } >>>>>>>> } >>>>>>>> } >>>>>>>> *services.xml* >>>>>>>> >>>>>>>> >>>>>>>> Test WS-Security >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> UsernameToken >>>>>>>> apache >>>>>>>> >>>>>>>> wtp.PWCBHandler >>>>>>>> PasswordText >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" /> >>>>>>>> >>>>>>> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> >>>>>>>> >>>>>>>> >>>>>>> locked="false">wtp.Converter >>>>>>>> >>>>>>>> >>>>>>>> *Here is my client code:* >>>>>>>> * >>>>>>>> ConverterClient.java* >>>>>>>> >>>>>>>> package wtp; >>>>>>>> >>>>>>>> import java.rmi.RemoteException; >>>>>>>> >>>>>>>> import org.apache.axis2.AxisFault; >>>>>>>> import org.apache.axis2.Constants; >>>>>>>> import org.apache.axis2.context.ConfigurationContext; >>>>>>>> import org.apache.axis2.context.ConfigurationContextFactory; >>>>>>>> >>>>>>>> import wtp.ConverterStub.CelsiusToFarenheit; >>>>>>>> import wtp.ConverterStub.CelsiusToFarenheitResponse; >>>>>>>> >>>>>>>> public class ConverterClient { >>>>>>>> >>>>>>>> public static void main(String[] args) { >>>>>>>> try { >>>>>>>> float celsiusValue = 100; >>>>>>>> //ConverterStub stub = new ConverterStub(" >>>>>>>> http://localhost:1234/ConverterProj/services/Converter"); >>>>>>>> String axis2repository = >>>>>>>> "/home/hp/Downloads/metadata/.metadata/ConverterClient/WebContent/WEB-INF"; >>>>>>>> //String axis2xml = >>>>>>>> "/home/hp/Downloads/metadata/.metadata/ConverterClient/WebContent/WEB-INF/conf/axis2.xml"; >>>>>>>> >>>>>>>> ConfigurationContext configContext = >>>>>>>> ConfigurationContextFactory.createConfigurationContextFromFileSystem(axis2repository,null); >>>>>>>> ConverterStub stub = new >>>>>>>> ConverterStub(configContext, " >>>>>>>> http://localhost:8081/ConverterProj/services/Converter"); >>>>>>>> //String targetEpr = " >>>>>>>> http://localhost:8081/ConverterProj/services/Converter"; >>>>>>>> >>>>>>>> stub._getServiceClient().engageModule("rampart"); >>>>>>>> >>>>>>>> >>>>>>>> stub._getServiceClient().getOptions().setUserName("apache"); >>>>>>>> >>>>>>>> stub._getServiceClient().getOptions().setPassword("password"); >>>>>>>> >>>>>>>> stub._getServiceClient().getOptions().setTransportInProtocol(Constants.TRANSPORT_HTTP); >>>>>>>> CelsiusToFarenheit c2f = new >>>>>>>> CelsiusToFarenheit(); >>>>>>>> c2f.setCelsius(celsiusValue); >>>>>>>> CelsiusToFarenheitResponse res = >>>>>>>> stub.celsiusToFarenheit(c2f); >>>>>>>> System.out.println("Celsius : >>>>>>>> "+celsiusValue+" = "+"Farenheit : "+res.get_return()); >>>>>>>> } catch (AxisFault e) { >>>>>>>> e.printStackTrace(); >>>>>>>> } catch (RemoteException e) { >>>>>>>> e.printStackTrace(); >>>>>>>> } >>>>>>>> >>>>>>>> } >>>>>>>> } >>>>>>>> >>>>>>>> >>>>>>>> When i run client, it has the following errors: >>>>>>>> >>>>>>>> [ERROR] org/jaxen/JaxenException >>>>>>>> java.lang.NoClassDefFoundError: org/jaxen/JaxenException >>>>>>>> at >>>>>>>> org.apache.rampart.RampartEngine.process(RampartEngine.java:75) >>>>>>>> at >>>>>>>> org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92) >>>>>>>> at org.apache.axis2.engine.Phase.invoke(Phase.java:318) >>>>>>>> at >>>>>>>> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254) >>>>>>>> at >>>>>>>> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160) >>>>>>>> at >>>>>>>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:173) >>>>>>>> at >>>>>>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144) >>>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) >>>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>>>>>> at >>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >>>>>>>> at >>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>>>>>>> at >>>>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >>>>>>>> at >>>>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >>>>>>>> at >>>>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >>>>>>>> at >>>>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >>>>>>>> at >>>>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >>>>>>>> at >>>>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) >>>>>>>> at >>>>>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) >>>>>>>> at >>>>>>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) >>>>>>>> at >>>>>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >>>>>>>> at java.lang.Thread.run(Thread.java:662) >>>>>>>> Caused by: java.lang.ClassNotFoundException: >>>>>>>> org.jaxen.JaxenException >>>>>>>> at >>>>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) >>>>>>>> at >>>>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) >>>>>>>> ... 21 more >>>>>>>> >>>>>>>> Please show me the way to resove this problems. >>>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> * >>>>>>> Lasantha Bandara, >>>>>>> Computer Science and Engineering, >>>>>>> University of Moratuwa, >>>>>>> Sri Lanka. >>>>>>> * >>>>>>> blog: http://lasanthasri.blogspot.com/ >>>>>>> gtalk: lasanthasridinesh >>>>>>> skype: lasanthasridinesh >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Regards, >>>>>> Amarnath Redddy.G >>>>>> 91-9985923453. >>>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Thilina Mahesh Buddhika >>>> http://blog.thilinamb.com >>>> >>> >>> >> > > > -- > Sagara Gunathunga > > Blog - http://ssagara.blogspot.com > Web - http://people.apache.org/~sagara/ > --bcaec52e5ead9cb055049d90fb46 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks, i've fixed the problems when i copied mex-1.4-imp.jar to= my classpath.

On 3 March 2011 14:33, Sag= ara Gunathunga <sagara.gunathunga@gmail.com> wrote:


On Wed, Mar 2, 2011 at 10:53 PM, andrew vn <andrewvn2010@gmail.com> wrote:
I checked again the Converter service without client code. Here is the way = i checked:

http://l= ocalhost:8081/ConverterProj/services/Converter/celsiusToFarenheit?celsius= =3D100

It made the following errors:

HTTP Status 500 -

type E= xception report

message

description The server encountered an= internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet execution threw an= exception

root cause

java.lang.NoClassDefFoundError: org/apa= che/axis2/mex/MexException

=A0=A0=A0 org.apache.rampart.RampartEngi= ne.process(RampartEngine.java:75)
=A0=A0=A0 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver= .java:92)
=A0=A0=A0 org.apache.axis2.engine.Phase.invoke(Phas= e.java:318)
=A0=A0=A0 org.apache.axis2.engine.AxisEngine.invo= ke(AxisEngine.java:254)
=A0=A0=A0 org.apache.axis2.engine.AxisEngine.receive(AxisEngine.= java:160)
=A0=A0=A0 org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RE= STUtil.java:135)
=A0=A0=A0 org.apache.axis2.transport.http.util.RESTUtil= .processURLRequest(RESTUtil.java:130)
=A0=A0=A0 org.apache.axis2.transpo= rt.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java= :817)
=A0=A0=A0 org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.jav= a:267)
=A0=A0=A0 javax.servlet.http.HttpServlet.service(HttpServlet.java= :617)

=A0=A0=A0 javax.servlet.http.HttpServlet.service(HttpServlet.= java:717)

root cause

java.lang.ClassNotFoundException: org.apache.axis2.mex.MexException
=

=A0Are you sure you have mex-x-impl.jar o= n your service classpath=A0 ?



=A0=A0=A0 org.apache.catalina.loader.WebappClassLoader.loadClas= s(WebappClassLoader.java:1680)
=A0=A0=A0 org.apache.catalina.= loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
=A0=A0=A0 org.apache.rampart.RampartEngine.process(RampartEngine.java:75)
=A0=A0=A0 org.apache.rampart.handler.RampartReceiver.invoke(Ra= mpartReceiver.java:92)
=A0=A0=A0 org.apache.axis2.engine.Phas= e.invoke(Phase.java:318)
=A0=A0=A0 org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.j= ava:254)
=A0=A0=A0 org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)
=A0=A0=A0 org.apache.axis2.transport.http.util.RESTUtil.invokeAxisE= ngine(RESTUtil.java:135)
=A0=A0=A0 org.apache.axis2.transport.http.util.= RESTUtil.processURLRequest(RESTUtil.java:130)
=A0=A0=A0 org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.= processURLRequest(AxisServlet.java:817)
=A0=A0=A0 org.apache.axis2.trans= port.http.AxisServlet.doGet(AxisServlet.java:267)
=A0=A0=A0 javax.servle= t.http.HttpServlet.service(HttpServlet.java:617)

=A0=A0=A0 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
<= br>
note The full stack trace of the root cause is available in the Ap= ache Tomcat/6.0.32 logs.


But when I removed <module ref= =3D"rampart" /> from services.xml. It wo= rks fine!

=A0Yes , when you=A0 engage rampart module=A0 it try to depl= oy and look for dependencies.


Thanks ! =A0
=A0



On 27 February 2011 00:36, andrew vn <andrewvn2010@gmail.com> wrote:
I use another method to call web service. I could make a SOAP request, but = i can't receive the response because the parameter that is transfer is = String=A0 type.

SOAP Request:

<?xml version=3D&q= uot;1.0" encoding=3D"http://schemas.xmlsoap.org/soap/envelope/&q= uot; standalone=3D"no"?>
<soapenv:Envelope xmln= s:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header xmlns:= wsa=3D"http://www.w3.org/2005/08/addressing">
<wsse:Security xmlns:w= sse=3D"http://docs.oasis-open.org= /wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:m= ustUnderstand=3D"1">
<wsse:UsernameToken xm= lns:wsu=3D"http://docs.oasis-ope= n.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu= :Id=3D"UsernameToken-2">
<wsse:Username>apac= he</wsse:Username>
<wsse:Password Typ= e=3D"http://docs.oa= sis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#Passwo= rdText">password</wsse:Password>
</wsse:UsernameToken&g= t;
</wsse:Security>
<wsa:To>h= ttp://localhost:1234/ConverterProj/services/Converter</wsa:To>
<wsa:MessageID>urn:= uuid:E21D3885A186948AC71298740519416</wsa:MessageID>
<wsa:Action>urn:celsiusToFarenheit</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<ns1:celsiusToFarenhei= t xmlns:ns1=3D"http://wtp= ">
<celsius>100</celsius><= /span>
</ns1:celsiusToFarenhe= it>
</soapenv:Body>
</soapenv:Envelope>=


SOAP Response


<?xml version=3D"1.0" encod= ing=3D"http://schemas.xmlsoap.org/soap/envelope/" standalone=3D&= quot;no"?>
<soapenv:Envelope xmln= s:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header xmlns:= wsa=3D"http://www.w3.org/2005/08/addressing">
<wsa:Action>http= ://www.w3.org/2005/08/addressing/soap/fault</wsa:Action> <wsa:RelatesTo>urn:= uuid:E21D3885A186948AC71298740519416</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soape= nv:Server</faultcode>
<faultstring>= ;java.lang.NoClassDefFoundError: org/jaxen/JaxenException</faultstring&g= t;

<detail/></soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

I want to= ask how to set and send with float type. Here is my test client cod= e:

package wtp;import org.apache.axiom.om.OMNamespace;=A0
import org.apache.axiom.o= m.OMElement;=A0
import org.apache.axis2.clien= t.Options;=A0

import org.apache.axiom.o= m.OMFactory;=A0
import org.apache.axis2.addre= ssing.EndpointReference;=A0


import org.apache.axiom.om.OMAbstractFactory;=A0
import org.apache.axis2.client.ServiceClient;=A0=
import org.apache.axis2.c= ontext.ConfigurationContext;
import org.apache= .axis2.context.ConfigurationContextFactory;

public class TestClient {

=A0=A0=A0 private static = EndpointReference targetEPR =3D new EndpointReference("http:= //localhost:1234/ConverterProj/services/Converter");=A0
=A0=A0=A0
=A0=A0=A0 public static void main(String[] args) {=A0
=A0=A0=A0=A0=A0=A0=A0 try= {=A0
=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0 S= tring axis2repository =3D "/home/php/Downloads/metadata/.metadata/Test= Client/WebContent/WEB-INF";
=A0=A0=A0 =A0=A0=A0 =A0= =A0=A0 String axis2xml =3D "/home/php/Downloads/metadata/.metadata/Tes= tClient/WebContent/WEB-INF/conf/axis2.xml";

=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 ConfigurationContext c= onfigContext =3D ConfigurationContextFactory.createConfigurationContextFrom= FileSystem(axis2repository,axis2xml);
=A0=A0=A0 =A0=A0=A0 =A0= =A0=A0 ServiceClient serviceClient =3D new ServiceClient(configContext,null= );=A0
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0= =A0 serviceClient.engageModule("rampart");
=A0=A0=A0 =A0=A0=A0 =A0= =A0=A0 Options options =3D new Options();=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0
<= span style=3D"font-family:courier new,monospace">=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 options.setAction("urn:celsiusToFarenheit");
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 options.setTo(targetEPR);
= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 options.setUserName("apache= ");
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 options.setPassword("password");
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 serviceClient.setOptions(options); <= br style=3D"font-family:courier new,monospace"> =A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0
=A0=A0=A0=A0=A0=A0 =A0= =A0=A0

=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 OMFactory omFactory =3D OMAbstractFactory.getOMFactory();=A0 =
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 OMNamespace omNamespa= ce =3D omFactory.createOMNamespace ("http://wtp","ns1");=A0
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0
=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 OMElement method1 =3D omFactory.createOMElement(&q= uot;celsiusToFarenheit", omNamespace);=A0

=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0
=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 OMElement valueCelsius =3D omFactory.createOMEl= ement("celsius", null);
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 valueCelsius.addChild(omFactory.createOMText(valueCel= sius, "100"));
=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 method1.addChild(valueCelsius);=A0
=A0= =A0=A0
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 serviceClient.fireAndForget(method1); // Exception is= thrown in this line=A0
=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Thread.sleep(1000000);=A0 =A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 OMElement result =3D serviceClie= nt.sendReceive(method1);=A0
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 System.out.println(result);
=A0=A0=A0= =A0=A0=A0=A0=A0
=A0=A0=A0=A0=A0=A0=A0 } c= atch (Exception e) {=A0=A0
=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 System.out.println(e.getMessage());=A0=A0
=A0=A0=A0=A0=A0=A0 }=A0 <= /span>
=A0=A0=A0 }=A0=A0
}

Thanks in= advanced


On 26 Febr= uary 2011 20:20, Thilina Mahesh Buddhika <thilinamb@gmail.com> wrote:
You need to include the= jaxen-* jar in your classpath along with other jars available in the lib d= irectory of Axis2 distribution.

Thanks,
Thilina=A0


On Sat, Feb 26, 2011 at 9:47 AM, andrew vn <a= ndrewvn2010@gmail.com> wrote:
I've already add 2 = modules: rampart.mar, r= ahas.mar and all jar files in lib directory of ra= mpart to my projects.

I think that i make a mistake in client codes.

Please take a look at my client code, is there any problem or missing?<= br>
Thanks

On 26 Febr= uary 2011 11:07, Amarnath Reddy <amarnathreddy504@gmail.com&g= t; wrote:
Dear Andrew,
You ca= n solve this problem by placing all the libraries of axis21.5.1 distributio= n jars of lib directory.
And remove the eclipse added jars.


On Sat, Feb 26, 2011 at 9:19 AM, Lasantha Bandara <lasanthasridinesh@gmail.com> wrote:
One simple solution is = to add required java libraries into your project. Those are in=A0\axis2-1.5= .1-bin\axis2-1.5.1\lib folder. It will solve many problems.


On Fri, Feb 25, 2011 at = 7:31 PM, andrew vn <andrewvn2010@gmail.com> wrote:
Dear all,

I'= m new to axis2 and web service. I've already written a Converter= service genertated with tools:
  • eclipse-helio
  • jdk1.6.0_23
  • axis2-1.5
  • rapart-= 1.5.1
Then, i'm writing a client to call this service, and now i want to use = rampart module to encrypt and sign the message.

Here is my ser= vice Converter code:

Converter.java=
package wtp;

{
=A0 public float celsiusToFarenheit ( float celsius )
=A0 {
=A0=A0=A0 return (celsius * 9 / 5) + 32;
=A0 }

=A0 public float = farenheitToCelsius ( float farenheit )
=A0 {
=A0=A0=A0 return (farenheit - 32) * 5 / 9;
=A0 }
}
= PWCBHandler.java
package wtp;

import org= .apache.ws.security.WSPasswordCallback;
import javax.security.aut= h.callback.Callback;
= import javax.security.aut= h.callback.CallbackHandler;
import javax.security.aut= h.callback.UnsupportedCallbackException;
impor= t java.io.IOException;
public class PWCBHandler implements CallbackHandler = {

=A0=A0=A0 =A0@SuppressWar= nings("deprecation")
=A0=A0=A0 publi= c void handle(Callback[] callbacks) throws IOException,
=A0=A0=A0=A0 UnsupportedC= allbackException {
=A0for (int i =3D 0; i < callbacks.length; i++) {

=A0=A0=A0=A0 //When the server side need to authenti= cate the user
=A0=A0=A0=A0 WSPasswordCallback = pwcb =3D (WSPasswordCallback)callbacks[i];
=A0=A0=A0=A0 if (pwcb.get= Usage() =3D=3D WSPasswordCallback.USERNAME_TOKEN_UNKNOWN) {
=A0=A0=A0=A0=A0=A0=A0=A0 if(pwcb.getIdentifer().equals("= apache") && pwcb.getPassword().equals("password")) {=
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 //If authentication successful, simply return
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 return;
=A0=A0=A0=A0=A0=A0=A0=A0 = } else {
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= throw new UnsupportedCallbackException(callbacks[i], "check failed&qu= ot;);
=A0=A0=A0=A0=A0=A0=A0=A0 = }
=A0=A0=A0=A0 }
=A0=A0=A0=A0 //When the c= lient requests for the password to be added in to the
=A0=A0=A0=A0 //UT element
=A0=A0=A0=A0 pwcb.setPass= word("password");
=A0}
}
}
serv= ices.xml
<service name=3D"= Converter" >
= =A0=A0=A0 <Description= >
=A0=A0=A0 =A0=A0=A0 Test = WS-Security
=A0=A0=A0 </Description>
=A0=A0=A0 <module ref= =3D"rampart"/>
=A0=A0=A0 <para= meter name=3D"InflowSecurity">
=A0=A0=A0=A0=A0 <actio= n>
=A0=A0=A0=A0=A0=A0=A0 <items>Usern= ameToken</items>
=A0=A0=A0=A0=A0=A0=A0 <= ;user>apache</user>

=A0=A0=A0=A0=A0= =A0=A0 <passwordCallbackClass>wtp.PWCBHandler</passwordCallbackCla= ss>
=A0=A0=A0=A0=A0=A0=A0 <= ;passwordType>PasswordText</passwordType>
=A0=A0=A0=A0=A0 </action>
=A0=A0=A0 </parameter&= gt;
=A0=A0=A0 <messageReceivers><= br style=3D"font-family:courier new,monospace"> =A0=A0=A0 =A0=A0=A0 <m= essageReceiver mep=3D"http://www.w3.org/2004/08/wsdl/in-only" class= =3D"org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />= ;
=A0=A0=A0 =A0=A0=A0 <m= essageReceiver=A0 mep=3D"http://www.w3.org/2004/08/wsdl/in-out"=A0 c= lass=3D"org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
=A0=A0=A0 </messageRec= eivers>
=A0=A0=A0 <parameter name=3D&quo= t;ServiceClass" locked=3D"false">wtp.Converter</parame= ter>
</service>
ConverterClient.java


package wtp;

import java.rmi.RemoteException;

import org.apache.axis2.AxisFault;
import org.apache.axis2.Constants;
import org.apache.axis2.c= ontext.ConfigurationContext;
import org.apache= .axis2.context.ConfigurationContextFactory;

import wtp.ConverterStub.CelsiusToFarenheit;<= br style=3D"font-family:courier new,monospace">import wtp.ConverterStub.CelsiusToFarenheitResponse;<= /span>

public class ConverterClient {

=A0=A0=A0=A0=A0=A0=A0 pub= lic static void main(String[] args) {
=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 try {
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 float celsiusValue =3D 100;
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 //ConverterStub stub =3D new ConverterStub("http://localhost:1234/ConverterProj/services/Converter");
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 String axis2repository =3D &q= uot;/home/hp/Downloads/metadata/.metadata/ConverterClient/WebContent/WEB-IN= F";
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 //String axis2xml =3D "/home/h= p/Downloads/metadata/.metadata/ConverterClient/WebContent/WEB-INF/conf/axis= 2.xml";
=A0=A0=A0=A0=A0=A0=A0
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0 =A0= =A0=A0 =A0=A0=A0 ConfigurationContext configContext =3D ConfigurationContex= tFactory.createConfigurationContextFromFileSystem(axis2repository,null);
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 ConverterStub stub =3D new Converte= rStub(configContext, "http://localhost:8081/ConverterProj/se= rvices/Converter");
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 //String targetEpr =3D "http://localhost:8081/ConverterProj/services/Converter";
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 stub._getServiceClient().enga= geModule("rampart");
=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 stub._getServiceClient().getO= ptions().setUserName("apache");
=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 stub._ge= tServiceClient().getOptions().setPassword("password");
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 stub._getServiceClient().getO= ptions().setTransportInProtocol(Constants.TRANSPORT_HTTP);
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 CelsiusToFarenheit c2f =3D new CelsiusToFarenheit();
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 c2f.setCelsius(celsiusValue);=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 CelsiusToFarenheitResponse res =3D stub.celsiusToF= arenheit(c2f);
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 System.out.println("Cels= ius : "+celsiusValue+" =3D "+"Farenheit : "+res.ge= t_return());
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 } catch (AxisFault e) {
= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 e.pri= ntStackTrace();
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 } catch (RemoteException e) {
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= e.printStackTrace();
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 }

=A0=A0=A0=A0=A0=A0=A0 }
}


When = i run client, it has the following errors:

[ERROR] org/jaxen/JaxenException
java.lang.NoClassDefFound= Error: org/jaxen/JaxenException
=A0=A0=A0 at o= rg.apache.rampart.RampartEngine.process(RampartEngine.java:75)
=A0=A0=A0 at org.apache.r= ampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
=A0=A0=A0 at org.apache.axis2.engine.Phase.invoke(Phase.ja= va:318)
=A0=A0=A0 at org.apache.a= xis2.engine.AxisEngine.invoke(AxisEngine.java:254)
=A0=A0=A0 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.jav= a:160)
=A0=A0=A0 at org.apache.a= xis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransport= Utils.java:173)
=A0=A0=A0 at org.apache.axis2.= transport.http.AxisServlet.doPost(AxisServlet.java:144)

=A0=A0=A0 at javax.servle= t.http.HttpServlet.service(HttpServlet.java:637)
=A0=A0=A0 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717= )
=A0=A0=A0 at org.apache.c= atalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain= .java:290)
=A0=A0=A0 at org.apache.catalina.co= re.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<= br style=3D"font-family:courier new,monospace"> =A0=A0=A0 at org.apache.c= atalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
=A0=A0=A0 at org.apache.catalina.core.StandardCon= textValve.invoke(StandardContextValve.java:191)
=A0=A0=A0 at org.apache.c= atalina.core.StandardHostValve.invoke(StandardHostValve.java:127)=A0=A0=A0 at org.apache.catalina.valves.ErrorReportValv= e.invoke(ErrorReportValve.java:102)
=A0=A0=A0 at org.apache.c= atalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
=A0=A0=A0 at org.apache.catalina.connector.CoyoteAd= apter.service(CoyoteAdapter.java:298)
=A0=A0=A0 at org.apache.c= oyote.http11.Http11Processor.process(Http11Processor.java:859)
=A0=A0=A0 at org.apache.coyote.http11.Http11Protocol$Http1= 1ConnectionHandler.process(Http11Protocol.java:588)
=A0=A0=A0 at org.apache.t= omcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
=A0=A0=A0 at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.Clas= sNotFoundException: org.jaxen.JaxenException
= =A0=A0=A0 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC= lassLoader.java:1680)
=A0=A0=A0 at org.apache.c= atalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
=A0=A0=A0 ... 21 more

Please show me the way to resove this problems.

Thanks



--
Lasantha Bandara,
Computer Sc= ience and Engineering,
University of Mora= tuwa,
= Sri Lanka.

blog:=A0http://lasanthasri.blogspot.com/
gtalk: lasanthasridinesh
skype: lasanthasridinesh




--
Regards,Amarnath Redddy.G
91-9985923453.




-- Thilina Mahesh Buddhika
http://blog.thilinamb.com





--
Sagara Gunathunga

Blog - http://ssagara.blogspot.comWeb - ht= tp://people.apache.org/~sagara/

--bcaec52e5ead9cb055049d90fb46--