You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Michele Mazzucco <Mi...@ncl.ac.uk> on 2006/05/05 09:52:02 UTC

[Axis2] hot service undeployment

Hi all,

I know it's possible to deploy services while the server is running
(Tomcat + Axis2), but is it possible to "undeploy" services while the
server is on?


Thanks,
Michele

Re: [Axis2] hot service undeployment

Posted by Richard Gregory <ri...@gsf.de>.
Hi Deepal,

The solution I posted for Michele last Friday worked for her (see 
below). Although it's really a Tomcat issue, and is mentioned briefly 
but not that clearly in their FAQ 
(http://tomcat.apache.org/faq/windows.html#lock), I'll add this solution 
to the Axis1.x wiki later today, as I guess it's something which affects 
Axis users quite a lot. Axis 2 doesn't have a wiki yet, but maybe 
someone who looks after the web pages could add it to the Axis2 FAQ?

Cheers,

Richard.

Michele Mazzucco wrote:

Hi Richard,

thanks very much for your suggest. It seems it works.


Michele

Richard Gregory wrote:

>Hi Michele,
>
>If this is under windows I had the same problem with Axis 1.x war files.
>To solve it, I edited the %CATALINA_HOME%/conf/context.xml file and
>added the following attributes to the root <Context> element.
>
><Context antiJARLocking="true" antiResourceLocking="true">
>
>I don't use Axis2, so I can't confirm it'll work, but may be worth a try.
>
>Richard.
>


Deepal Jayasinghe wrote:

>Hi Michele;
>
>I think you are using windows , because I too have this problem :) . Any
>way the problem is due to class loading issues . As you know in Axis2
>each services get its own class loader, so how we create the class
>loader is using the service archive file as a url. Once we create the
>class loader we can not just delete the file since is it is locked by
>the file system . But you dont have this problem in Linux  :( ,
>
>Did you ever try to delete a lib file in tomcat lib directory  while it
>is running , if you try you will get the same error , it does not allow
>you to delete the file. So Axis2 has the same problem , and we do not
>try to solve this. But you can have hot update services , I mean rather
>than deleting the file you can just drop the updated service into
>services directory , then right thing will happen (old one will be
>replaced by new one).
>
>
>
>Michele Mazzucco wrote:
>
>  
>
>>Hi Deepal,
>>
>>my axis2.xml has the following line
>>
>><parameter name="hotupdate" locked="false">true</parameter>
>>
>>but I can't delete any service while the server is running.
>>
>>
>>Michele
>>
>>Deepal Jayasinghe wrote:
>> 
>>
>>    
>>
>>>You have that capability , but you have to edit axis2.xml file in order
>>>to have this feature.
>>>You have to change to
>>><parameter name="hotupdate" locked="false">false</parameter>
>>>following
>>><parameter name="hotupdate" locked="false">false</parameter>
>>>
>>>Michele Mazzucco wrote:
>>>
>>>   
>>>
>>>      
>>>
>>>>Hi all,
>>>>
>>>>I know it's possible to deploy services while the server is running
>>>>(Tomcat + Axis2), but is it possible to "undeploy" services while the
>>>>server is on?
>>>>
>>>>
>>>>Thanks,
>>>>Michele
>>>>
>>>>
>>>>
>>>>
>>>>     
>>>>
>>>>        
>>>>
>> 
>>
>>    
>>
>
>  
>


Re: [Axis2] hot service undeployment

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Michele;

I think you are using windows , because I too have this problem :) . Any
way the problem is due to class loading issues . As you know in Axis2
each services get its own class loader, so how we create the class
loader is using the service archive file as a url. Once we create the
class loader we can not just delete the file since is it is locked by
the file system . But you dont have this problem in Linux  :( ,

Did you ever try to delete a lib file in tomcat lib directory  while it
is running , if you try you will get the same error , it does not allow
you to delete the file. So Axis2 has the same problem , and we do not
try to solve this. But you can have hot update services , I mean rather
than deleting the file you can just drop the updated service into
services directory , then right thing will happen (old one will be
replaced by new one).



Michele Mazzucco wrote:

>Hi Deepal,
>
>my axis2.xml has the following line
>
><parameter name="hotupdate" locked="false">true</parameter>
>
>but I can't delete any service while the server is running.
>
>
>Michele
>
>Deepal Jayasinghe wrote:
>  
>
>>You have that capability , but you have to edit axis2.xml file in order
>>to have this feature.
>>You have to change to
>><parameter name="hotupdate" locked="false">false</parameter>
>>following
>><parameter name="hotupdate" locked="false">false</parameter>
>>
>>Michele Mazzucco wrote:
>>
>>    
>>
>>>Hi all,
>>>
>>>I know it's possible to deploy services while the server is running
>>>(Tomcat + Axis2), but is it possible to "undeploy" services while the
>>>server is on?
>>>
>>>
>>>Thanks,
>>>Michele
>>>
>>>
>>> 
>>>
>>>      
>>>
>
>
>  
>

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




Re: [Axis2] hot service undeployment

Posted by Richard Gregory <ri...@gsf.de>.
Hi Michele,

If this is under windows I had the same problem with Axis 1.x war files. 
To solve it, I edited the %CATALINA_HOME%/conf/context.xml file and
added the following attributes to the root <Context> element.

<Context antiJARLocking="true" antiResourceLocking="true">

I don't use Axis2, so I can't confirm it'll work, but may be worth a try.

Richard.

Michele Mazzucco wrote:

>Hi Deepal,
>
>my axis2.xml has the following line
>
><parameter name="hotupdate" locked="false">true</parameter>
>
>but I can't delete any service while the server is running.
>
>
>Michele
>
>Deepal Jayasinghe wrote:
>  
>
>>You have that capability , but you have to edit axis2.xml file in order
>>to have this feature.
>>You have to change to
>><parameter name="hotupdate" locked="false">false</parameter>
>>following
>><parameter name="hotupdate" locked="false">false</parameter>
>>
>>Michele Mazzucco wrote:
>>
>>    
>>
>>>Hi all,
>>>
>>>I know it's possible to deploy services while the server is running
>>>(Tomcat + Axis2), but is it possible to "undeploy" services while the
>>>server is on?
>>>
>>>
>>>Thanks,
>>>Michele
>>>
>>>
>>> 
>>>
>>>      
>>>
>
>  
>


Re: [Axis2] hot service undeployment

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Hi Deepal,

my axis2.xml has the following line

<parameter name="hotupdate" locked="false">true</parameter>

but I can't delete any service while the server is running.


Michele

Deepal Jayasinghe wrote:
> You have that capability , but you have to edit axis2.xml file in order
> to have this feature.
> You have to change to
> <parameter name="hotupdate" locked="false">false</parameter>
> following
> <parameter name="hotupdate" locked="false">false</parameter>
> 
> Michele Mazzucco wrote:
> 
>> Hi all,
>>
>> I know it's possible to deploy services while the server is running
>> (Tomcat + Axis2), but is it possible to "undeploy" services while the
>> server is on?
>>
>>
>> Thanks,
>> Michele
>>
>>
>>  
>>
> 

Re: [Axis2] hot service undeployment

Posted by Deepal Jayasinghe <de...@opensource.lk>.
You have that capability , but you have to edit axis2.xml file in order
to have this feature.
You have to change to
<parameter name="hotupdate" locked="false">false</parameter>
following
<parameter name="hotupdate" locked="false">false</parameter>

Michele Mazzucco wrote:

>Hi all,
>
>I know it's possible to deploy services while the server is running
>(Tomcat + Axis2), but is it possible to "undeploy" services while the
>server is on?
>
>
>Thanks,
>Michele
>
>
>  
>

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