axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lahiru Sandakith" <sandak...@gmail.com>
Subject Re: Fw: Axis2: remote deploy
Date Fri, 11 May 2007 03:19:33 GMT
Hi Shantanu,

Seems this might be related to the resource locking problems that we have on
servlet container in windows.
It was explained in here.

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html the attributes
of allowLinking and antiResourceLocking.

Thanks

Lahiru.



On 5/11/07, Shantanu Sen <ssen@pacbell.net> wrote:
>
> Hi Sanjiva,
>
> Thanks for the pointers.
>
> Looking at ServiceAdmin I found the following issue when undeploying a
> service - basically this code throws an exception when the aar file cannot
> be deleted, which is what happens on windows.
>
> ===
> if ((fileName != null) && (fileName.trim().length() != 0)) {
>                     File file = new File(fileName);
>                     if (file.exists()) {
>                         if (!file.delete()) {
>                             throw new org.apache.axis2.AxisFault("Service
> archive deletion failed. " +
>                                                 "Due to a JVM issue on
> MS-Windows, " +
>                                                 "AAR files cannot be
> deleted!");
>                         }
>                     }
>                 }
> ====
>
> Does this mean undeploy is broken on windows for WSAS?
>
> Thanks,
> Shantanu
>
> ----- Original Message ----
> From: Sanjiva Weerawarana <sanjiva@opensource.lk>
> To: axis-dev@ws.apache.org
> Sent: Wednesday, April 11, 2007 10:55:19 AM
> Subject: Re: Fw: Axis2: remote deploy
>
> Hi Shantanu,
>
> This is certainly possible with the Axis2 architecture but AFAICR not
> implemented in the core. However, we have implemented that in the admin
> functionality of WSO2 WSAS, which is Axis2+Sandesha+Rampart and a bunch of
> other stuff. You can either use WSAS directly (see [1]) or take the code
> from ServiceAdmin.java (see [2]) and run it on top of Axis2. All the code
> is Apache licensed so you're free to do what you want with it.
>
> Sanjiva.
> [1] http://wso2.org/projects/wsas/java
> [2]
>
> http://wso2.org/repos/wso2/trunk/wsas/java/modules/admin/src/org/wso2/wsas/admin/service/ServiceAdmin.java
>
> Shantanu Sen wrote:
> > Posting on this group in the hope that someone would reply.....
> >
> > Thanks,
> > Shantanu Sen
> >
> > ----- Forwarded Message ----
> > From: Shantanu Sen <ssen@pacbell.net>
> > To: axis-user@ws.apache.org
> > Sent: Friday, March 30, 2007 1:40:04 PM
> > Subject: Axis2: remote deploy
> >
> > I was looking at ways to programmatically deploy a service and ended up
> > writing a 'DynamicDeploy' service that takes in the aar file as an
> > attachment and adds it to the repository. For my use case Axis2 is
> > running embedded in an EAR on an appserver - JBoss in this case.
> >
> > I have two questions:
> >
> > 1.The 'DynamicDeploy' service that I wrote is just copying the aar file
> > that it received in the attachment to the repository that leads to the
> > deployment. How can I undeploy the service using this approach?
> >
> > 2. There were some threads a while back regarding adding remote
> > deployment to Axis2 as discussed in
> > https://issues.apache.org/jira/browse/AXIS2-2212 and it seems that it
> > was added and is now in the current trunk. Is there some docs/samples on
> > how to use this? Does this have an undeploy capability?
> >
> > Thanks for any help.
> > Shantanu Sen
> >
>
> --
> Sanjiva Weerawarana, Ph.D.
> Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
> Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
> Director; Open Source Initiative; http://www.opensource.org/
> Member; Apache Software Foundation; http://www.apache.org/
> Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


-- 
Regards
Lahiru Sandakith

Mime
View raw message