axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepal Jayasinghe <dee...@opensource.lk>
Subject Re: [Axis2] 0.95 WS-Addressing web SERVICE-SIDE: module not found
Date Tue, 18 Apr 2006 13:09:33 GMT
Hi Finian

pls see my inline comments.

Finian O'Boyle wrote:

>Thank you Deepal for taking the time to look into this issue - I now have
>managed to get EchoNonBlockingDualClient working. 
>
:)

>I still can't get the
>original code to work, where ever I put addressing-0.95.mar, 
>
forget about that , I will look into this sample soon , since we are
planing to do Axis2 RC2 .

>but the
>ConfigurationContext works.
>
>The code I ended up with was:
>
>  ConfigurationContext sysContext = ConfigurationContextFactory
>           .createConfigurationContextFromFileSystem(
>            "C:\\axis2", null);
>  sender = new ServiceClient(sysContext, null);
>
>with no need, obviously, for the .engageModule method.
>
>I did discover though that the directory which the ConfigurationContext
>points to has to have two directories within it: "conf", which must contain
>the axis.xml configuration file, and the "modules" directory which contains
>addressing-0.95.mar. 
>  
>
yes , but unfortunately from Axis2 RC1 on word we dont need to have conf
directory in side the repo and deployment guy will not automatically
picked that.

>Interestingly, when EchoNonBlockingDualClient executes, it creates a third,
>empty directory, "services" within the directory that ConfigurationContext
>points to.
>  
>
I just fixed that.

>Thank you again for your help.
>
>
>Finian
>
>
>
>-----Original Message-----
>From: Deepal Jayasinghe [mailto:deepal@opensource.lk] 
>Sent: 17 April 2006 09:43
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2] 0.95 WS-Addressing web SERVICE-SIDE: module not found
>
>Hi Finian ;
>
>I am sorry that I did not look into EchoNonBlockingDualClient codes but
>the engaging client side module can be done as follows;
> 1. You can create a configurationContext using a given repository and
>that repo can have modules dir and which may have addressing module in it.
> 2.  In the client side you can drop  your addressing.mar in the same
>location where you have drop axis2.jar , and create serviceClient
>without given repo.
>
>
>Finian O'Boyle wrote:
>
>  
>
>>Thanks for that Deepal. I am using Tomcat and I have addressing-0.95.mar in
>>    
>>
>
>  
>
>>webapp/axis2/WEB-INF/modules. The problem occurs before anything gets to
>>Tomcat or the Axis2 server - it is in Eclipse within the
>>EchoNonBlockingDualClient, which raises the "module not found" error when
>>    
>>
>it
>  
>
>>executes the following statement:
>>
>>   sender.engageModule(new QName(Constants.MODULE_ADDRESSING));
>>
>>I've watched using tcpmon and there is no traffic through it before the
>>error occurs.
>>
>>It seems that the client can't find the module - I've tried putting it
>>everywhere that the client might find it from Eclipse, but so far
>>unsuccessfully.
>>
>>Thank you for your help in trying to sort this out.
>>
>>Finian
>>
>>
>>
>>-----Original Message-----
>>From: Deepal Jayasinghe [mailto:deepal@opensource.lk] 
>>Sent: 08 April 2006 15:56
>>To: axis-user@ws.apache.org
>>Subject: Re: [Axis2] 0.95 WS-Addressing web SERVICE-SIDE: module not found
>>
>>If your server is tomcat then put the addressing-0.95.mar into
>> webapp/axis2/WEB-INF/modules directory.
>>
>>else if you are using simpeleHTTP server then , put the
>>addressing-0.95.mar inside modules directory.
>>example
>> ConfigiurationCoentxt configct=
>>ConfigurationConetxtFactory.createConfigurationContextFromFileSystem("Repos
>>    
>>
>i
>  
>
>>torPath"
>>,null)
>>so if you put the addressing--.mar inside the modules directory there
>>in the repo it should work.
>>
>>
>>
>>Finian O'Boyle wrote:
>>
>> 
>>
>>    
>>
>>>I've tried putting addressing-0.95.mar all over my system, but with no
>>>   
>>>
>>>      
>>>
>>luck.
>> 
>>
>>    
>>
>>>I'm still getting the "module not found" error. I'm using the war
>>>distribution, but I've also got the other distributions unpacked on my
>>>system for reference.
>>>
>>>Finian
>>>
>>>-----Original Message-----
>>>From: Roman Weidlich [mailto:romanweidlich@gmx.at] 
>>>Sent: 07 April 2006 22:14
>>>To: axis-user@ws.apache.org
>>>Subject: Re: [Axis2] 0.95 WS-Addressing web SERVICE-SIDE: module not found
>>>
>>>copied addressing-0.95.mar to
>>>
>>>	tomcat\webapps\axis2\WEB-INF\lib
>>>
>>>but if the web service tries to invoke an NonBlockingDual to another ws 
>>>it prints
>>>
>>>	WS1: org.apache.axis2.AxisFault: Module not found
>>>
>>>to the tomcat output.
>>>
>>>at client-side the addressing-0.95.mar in the lib dir works, but in the 
>>>war distribution not...
>>>
>>>
>>>
>>>   
>>>
>>>      
>>>
>> 
>>
>>    
>>
>
>  
>

-- 
Thanks,
Deepal
................................................................
~Future is Open~ 



Mime
View raw message