Library lock prevent deploy

View: New views
3 Messages — Rating Filter:   Alert me  

Library lock prevent deploy

by Cecchi Sandrone :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,
I have an annoying problem using Cargo Maven Plugin with Tomcat. Essentially, if the application is already deployed I can't redeploy, because the WEB-INF (with some libs into) directory of the webapp still remains after undeploy. It seems that those libraries are still in use. There is a way to force undeploy or however understand the reason of this lock?

Re: Library lock prevent deploy

by Matt Wringe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Tue, 2009-01-27 at 07:21 -0800, Cecchi Sandrone wrote:
> Hi all,
> I have an annoying problem using Cargo Maven Plugin with Tomcat.
> Essentially, if the application is already deployed I can't redeploy,
> because the WEB-INF (with some libs into) directory of the webapp still
> remains after undeploy. It seems that those libraries are still in use.
> There is a way to force undeploy or however understand the reason of this
> lock?

I don't believe the lock has anything to do with cargo, can you deploy
and undeploy the app manually? or does the same issue with libraries
still exist?

Also, what type of container are you using (standalone, installed,
remote....), is your war archived or exploded, what version of cargo and
what version of tomcat


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Library lock prevent deploy

by Cecchi Sandrone :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, it's not a cargo problem but a Tomcat issue. I solved it editing %CATALINA_HOME%\conf\context.xml, replacing the root <Context> with <Context antiJARLocking="true" antiResourceLocking="true">

Matt Wringe wrote:
On Tue, 2009-01-27 at 07:21 -0800, Cecchi Sandrone wrote:
> Hi all,
> I have an annoying problem using Cargo Maven Plugin with Tomcat.
> Essentially, if the application is already deployed I can't redeploy,
> because the WEB-INF (with some libs into) directory of the webapp still
> remains after undeploy. It seems that those libraries are still in use.
> There is a way to force undeploy or however understand the reason of this
> lock?

I don't believe the lock has anything to do with cargo, can you deploy
and undeploy the app manually? or does the same issue with libraries
still exist?

Also, what type of container are you using (standalone, installed,
remote....), is your war archived or exploded, what version of cargo and
what version of tomcat


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email