You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Antonio Leonforte <an...@fhoster.com> on 2008/09/23 19:22:58 UTC

Problem undeploying a web app using CXF 2.1.2 from Tomcat 6

Hi all,
we have a strange problem when we try to undeploy a quite large web
application (30Mb WAR file) using CXF 2.1.2. Our servlet container is Apache
Tomcat 6 running on a Windows Vista machine. 

The undeploy operation completes with no warnings on the Tomcat manager
page. However, the following two CXF files are *not* removed from the
webapps folder, so that when we try to deploy the application again Tomcat
fails. The files are:

cxf-2.0.5-incubator
cxf-2.1.2

Maybe some thread keeps these files locked and prevents tomcat from deleting
them? We even tried to stop the application, wait a minute and then try to
undeploy, but the above mentioned files were still there. Deploying and
undeploying the web app programmatically produced the same results. 

Any hint would be much appreciated.
Thanks.
-- 
View this message in context: http://www.nabble.com/Problem-undeploying-a-web-app-using-CXF-2.1.2-from-Tomcat-6-tp19632733p19632733.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Problem undeploying a web app using CXF 2.1.2 from Tomcat 6

Posted by Daniel Kulp <dk...@apache.org>.
Honestly, I have no idea how to even start debugging this.  :-(

In all likelyhood, SOMETHING is holding onto something from the cxf jar.   
Possibly a InputStream from a schema in the jar or one of the xml files in 
the jar or similar.   However, I have NO clue how to debug that.  :-(

I don't know if one of the memory analyzers could get a list of InputStreams 
or other objects.    If you have one of those, debugging with that may be a 
good idea.

Alternatively, switch to a real OS that doesn't have the problem, like 
Linux.  :-)

Dan


On Wednesday 24 September 2008 7:30:33 am Antonio Leonforte wrote:
> Thank you for the suggestions. We were not cleaning up properly the
> temporary folder where we create our WAR file, so that old CXF file was
> there for this reason but was not the cause of the problem. In fact, the
> problem still exists with the other file (cxf-2.1.2.jar), which still
> prevents Tomcat from completely undeploying the web app.
>
> We have found on
> (http://wiki.metawerx.net/wiki/TroubleshootingApplicationDeploymentOnTomcat
>) a reference to an antiJARLocking="true" to be set in the Context (ie: in
> the context.xml file or server.xml file) during development. We'll try this
> out and then report. Any other hint would be much appreciated.
>
> dkulp wrote:
> > First question:
> >> cxf-2.0.5-incubator
> >> cxf-2.1.2
> >
> > Why is there two versions of cxf there?   That's definitely asking for
> > problems.
> >
> > Dan



-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Re: Problem undeploying a web app using CXF 2.1.2 from Tomcat 6

Posted by Antonio Leonforte <an...@fhoster.com>.
Thank you for the suggestions. We were not cleaning up properly the temporary
folder where we create our WAR file, so that old CXF file was there for this
reason but was not the cause of the problem. In fact, the problem still
exists with the other file (cxf-2.1.2.jar), which still prevents Tomcat from
completely undeploying the web app.

We have found on
(http://wiki.metawerx.net/wiki/TroubleshootingApplicationDeploymentOnTomcat)
a reference to an antiJARLocking="true" to be set in the Context (ie: in the
context.xml file or server.xml file) during development. We'll try this out
and then report. Any other hint would be much appreciated.


dkulp wrote:
> 
> 
> First question:
> 
>> cxf-2.0.5-incubator
>> cxf-2.1.2
> 
> Why is there two versions of cxf there?   That's definitely asking for 
> problems.
> 
> Dan
> 

-- 
View this message in context: http://www.nabble.com/Problem-undeploying-a-web-app-using-CXF-2.1.2-from-Tomcat-6-tp19632733p19646841.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Problem undeploying a web app using CXF 2.1.2 from Tomcat 6

Posted by Daniel Kulp <dk...@apache.org>.
First question:

> cxf-2.0.5-incubator
> cxf-2.1.2

Why is there two versions of cxf there?   That's definitely asking for 
problems.

Dan



On Tuesday 23 September 2008 1:22:58 pm Antonio Leonforte wrote:
> Hi all,
> we have a strange problem when we try to undeploy a quite large web
> application (30Mb WAR file) using CXF 2.1.2. Our servlet container is
> Apache Tomcat 6 running on a Windows Vista machine.
>
> The undeploy operation completes with no warnings on the Tomcat manager
> page. However, the following two CXF files are *not* removed from the
> webapps folder, so that when we try to deploy the application again Tomcat
> fails. The files are:
>
> cxf-2.0.5-incubator
> cxf-2.1.2
>
> Maybe some thread keeps these files locked and prevents tomcat from
> deleting them? We even tried to stop the application, wait a minute and
> then try to undeploy, but the above mentioned files were still there.
> Deploying and undeploying the web app programmatically produced the same
> results.
>
> Any hint would be much appreciated.
> Thanks.



-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog