Re: org.apache.axis2.AxisFault: Module not found(Help Please)

2006-11-07 Thread Ruchith Fernando

Hi,

Please try using "C:\axis2-1.1-SNAPSHOT\repository\" as the repo
location. Also I noticed that you have changed the generated stub.
There should be another generated constructor where you can provide
the config context. Please use that without changing the stub.

Thanks,
Ruchith

On 11/8/06, sridhar vudutha <[EMAIL PROTECTED]> wrote:

Hello,
I have seen some posts on this Exception. Tried doing the same but still
getting the exception. Any help would be greatly appreciated.

This is what I have.

Exception:


org.apache.axis2.AxisFault: Module not found

at
org.apache.axis2.description.AxisService.engageModule(AxisService.java:478)

at
org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:294)

at
com.cp.labs.EChainTestStatusServiceStub.(EChainTestStatusServiceStub.java:118)

at
com.cp.labs.EChainTestStatusServiceStub.(EChainTestStatusServiceStub.java:104)

at MedToxLocalClientTest.main(MedToxLocalClientTest.java:24)

Added rampart snapshot in the classpath .(modified the extension of the
rampart module to "zip" in order to add it
to the classpath in Eclipse)
C:\axis2-1.1-SNAPSHOT\lib\rampart-1.1-SNAPSHOT.zip

I have the mar file in the modules directory.
C:\axis2-1.1-SNAPSHOT\modules\rampart-1.1-SNAPSHOT.mar

Also I have it here.
C:\axis2-1.1-SNAPSHOT\repository\modules\rampart-1.1-SNAPSHOT.mar


code from the generated Generated Stub


publicEChainTestStatusServiceStub(java.lang.String targetEndpoint) throws
org.apache.axis2.AxisFault {

//this(null,targetEndpoint);

this(org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem("
C:\\axis2-1.1-SNAPSHOT","C:\\axis2-1.1-SNAPSHOT\\conf\\axis2.xml"),
targetEndpoint);



_serviceClient.getOptions().setSoapVersionURI(
SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI );

_serviceClient.engageModule( new QName( "rampart" ) );

}

Also tried engaging the module in "axis2.xml" under
C:\\axis2-1.1-SNAPSHOT\\conf\\axis2.xml



Also tried putting the module "rampart-1.1-SNAPSHOT.mar" under the modules
directory in my project.

C:\eclipse\workspace\myproject\modules\rampart-1.1-SNAPSHOT.mar



Thanks,

Sridhar.



--
www.ruchith.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: org.apache.axis2.AxisFault: Module not found

2006-06-03 Thread Martin Gainty



If you are using Axis2 you can update axis2.xml property
 
class="org.apache.axis2.transport.http.    
CommonsHTTPTransportSender">   HTTP/1.1     
locked="false">chunked
   
5000 This is one way to accomplish the 
objective-Martin --
 
This email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this email 
message isaddressed.  If you have received this email message in error, 
please notifythe sender immediately by telephone or email and destroy the 
originalmessage without making a copy.  Thank you.

  - Original Message - 
  From: 
  nancy 
  To: axis-user@ws.apache.org 
  Sent: Saturday, June 03, 2006 3:52 
  AM
  Subject: org.apache.axis2.AxisFault: 
  Module not found 
  
  
  Hi,
   
  I have found 
  following to set read time out:
   
  options.setProperty(HTTPConstants.SO_TIMEOUT,timeOut);
  options.setProperty(HTTPConstants.CONNECTION_TIMEOUT,timeOut);
   
  But As I have studied 
  the there is one nonBlockingDualClient option in axis2, but I am facing one 
  problem is that I need to engage the module as follows: 
  
   
  serviceClient = new 
  ServiceClient();
      
  serviceClient.setOptions(options);
      
  serviceClient.engageModule(new 
  QName(Constants.MODULE_ADDRESSING));
   
  error occurring 
  is:
   
  org.apache.axis2.AxisFault: 
  Module not found 
    
  at 
  org.apache.axis2.description.AxisService.engageModule(AxisService.java:277)
    
  at org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:284)
   
  I am not 
  using axis2 to implement my web services. I can’t understand which module I 
  need to engage.
  Please help 
  me to remove all these complications and 
problems.
   
   
   
  
  
  
  
  From: nancy 
  [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 1:28 
  PMTo: 
  axis-user@ws.apache.orgSubject: Read time 
  out?
   
  Hi,
   
  I am using axis 2 for 
  implementing my web service client.whenever I invoke the webservice,I get 
  error:
   
  Read 
  Time Out
   
  I have 
  set options.setTimeOutInMilliSeconds(1000*60*60*60); in client but then also 
  error is occurring.
   
  Caused 
  by: java.net.SocketTimeoutException: 
  Read timed out
    
  at java.net.SocketInputStream.socketRead0(Native 
  Method)
    
  at java.net.SocketInputStream.read(SocketInputStream.java:129)
    
  at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
    
  at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
    
  at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
    
  at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
    
  at 
  org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
    
  at 
  org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
    
  at 
  org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
    
  at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
    
  at 
  org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
    
  at 
  org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
    
  at 
  org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
    
  at 
  org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
    
  at 
  org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:100)
    
  at 
  org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:293)
    
  ... 6 more
   
  I am not 
  using Tomcat but using simple web server and my webservice is implemented 
  using Jsoap-spheon
  I have also 
  set server’s timeout as infinite.But nothing 
  helps.
   
  Please 
  advice.
   
   
  With 
  Warm Regards, 
  Nancy 
  Aggarwal