axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabien Couble" <fabien.couble.exte...@capgemini.com>
Subject Re: [AXIS2] Problem to engage a module at the client side
Date Mon, 10 Jul 2006 12:08:19 GMT

Okay Ajith,
But my modules are engaged in the client side. I'm sure of that because I have checked.
The only thing is that the module is not executed. 
Have we to declare something different that we do for thr server?
Actually, I was wondering how the client know that it has to execute the handlers. 
In fact, in the server, handlers are assigned to service so I understant how it works.
But in the client side, there is nothing which specify which handlers has to be executed!!
If you have some explanations!!
Any suggestion about my problems?

Fabien
  ----- Original Message ----- 
  From: Ajith Ranabahu 
  To: axis-user@ws.apache.org 
  Sent: Monday, July 10, 2006 11:27 AM
  Subject: Re: [AXIS2] Problem to engage a module at the client side


  Hi,
  That is the problem :) The SOAP monitor is actually set to work in the serverside AFAIK
and from your stacktrace, that seems to be the culprit. Please comment out the module element
and see.

  Ajith


  On 7/10/06, Fabien Couble <fabien.couble.externe@capgemini.com> wrote:
    Yes, the soapMonitor is engaged in the client side 
    I have the following line in my axis2.xml file

    <module ref="soapmonitor"/>

    But is it really necessary? 

    Regards
    Fabien
      ----- Original Message ----- 
      From: Ajith Ranabahu 
      To: axis-user@ws.apache.org 
      Sent: Monday, July 10, 2006 10:59 AM
      Subject: Re: [AXIS2] Problem to engage a module at the client side


      Hi,
      Did you enable the SOAPmonitor ? please check your Axis2.xml to see whether there are
any SOAPMonitor handlers engaged in the client side

      Ajith



      On 7/10/06, Fabien Couble <fabien.couble.externe@capgemini.com> wrote: 
        Hello,
        I still have a problem to engage a module at the client side.
        To engage the module, I just put the following command in my client code:

        ConfigurationContext configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem("D:/eclipse_workspace/axis2",
"D:/eclipse_workspace/axis2/conf/axis2.xml"); 
        sender = new ServiceClient(configContext, null);
        sender.engageModule(new QName(Constants.MODULE_ADDRESSING));
        sender.engageModule(new QName("logging"));
        sender.setOptions(options);
        sender.sendReceiveNonBlocking(payload, callback);

        But an exception is raised at the client side. The exception is the following:

        Exception in thread "Axis2 Task" java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

        at java.lang.ClassLoader.defineClass1(Native Method)

        at java.lang.ClassLoader.defineClass(Unknown Source)

        at java.security.SecureClassLoader.defineClass(Unknown Source)

        at java.net.URLClassLoader.defineClass(Unknown Source)

        at java.net.URLClassLoader.access$100(Unknown Source)

        at java.net.URLClassLoader$1.run(Unknown Source)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

        at org.apache.axis2.handlers.soapmonitor.SOAPMonitorHandler.invoke(SOAPMonitorHandler.java:107)

        at org.apache.axis2.engine.Phase.invoke(Phase.java:381)

        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)

        at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:610)

        at org.apache.axis2.transport.http.HTTPWorker.processRequest(HTTPWorker.java:292)

        at org.apache.axis2.transport.http.server.SimpleConnectionThread.run(SimpleConnectionThread.java:92)

        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

        at java.lang.Thread.run(Unknown Source)



        Please, help me because I'm very confused. 

        Fabien



              This message contains information that may be privileged or confidential and
is the property of the Capgemini Group. It is intended only for the person to whom it is addressed.
If you are not the intended recipient, you are not authorized to read, print, retain, copy,
disseminate, distribute, or use this message or any part thereof. If you receive this message
in error, please notify the sender immediately and delete all copies of this message. 

             




      -- 
      Ajith Ranabahu 
          This message contains information that may be privileged or confidential and is
the property of the Capgemini Group. It is intended only for the person to whom it is addressed.
If you are not the intended recipient, you are not authorized to read, print, retain, copy,
disseminate, distribute, or use this message or any part thereof. If you receive this message
in error, please notify the sender immediately and delete all copies of this message. 

         




  -- 
  Ajith Ranabahu 

This message contains information that may be privileged or confidential and is the property
of the Capgemini Group. It is intended only for the person to whom it is addressed. If you
are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,
 distribute, or use this message or any part thereof. If you receive this  message in error,
please notify the sender immediately and delete all  copies of this message.

Mime
View raw message