You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Antonio Leonforte (JIRA)" <ji...@apache.org> on 2008/09/23 19:57:44 UTC

[jira] Created: (CXF-1816) Undeploying a CXF web app from tomcat on windows does not delete some CXF files

Undeploying a CXF web app from tomcat on windows does not delete some CXF files
-------------------------------------------------------------------------------

                 Key: CXF-1816
                 URL: https://issues.apache.org/jira/browse/CXF-1816
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.1.2
         Environment: Windows Vista, Tomcat 6
            Reporter: Antonio Leonforte


When we try to undeploy a quite large web application (30Mb WAR file) using CXF, the 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" and "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.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1816) Undeploying a CXF web app from tomcat on windows does not delete some CXF files

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12793916#action_12793916 ] 

Daniel Kulp commented on CXF-1816:
----------------------------------


I've gone through the heap in JProfiler to try and figure out what is happening.   It turns out there are a couple things going on:

1) There WERE two places in CXF that was holding onto the classes and classloaders using a strong reference.   I've committed fixes to that.

2) There are apparently a couple bugs in the JRE that we're hitting.   The Tomcat folks are working on ways to work around it.  You can see some of what they are doing at:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java?revision=830908&view=markup&pathrev=830908

Basically, we're hitting both bugs mentioned in there.   The sun.awt.AppContext class is definitely holding onto the WebabbClassloader strongly which is preventing it from being undeployed.   The second bug you can see right in the comment is known to be caused by JAXB.

I've also discovered that Spring is holding onto some classes (and thus their classloader) strongly in one of their bean caches.  It MAY be OK depending on the above bugs.   Not really sure.   The only workaround I could figure out is to put the spring jars in the equivalent of the shared/lib dir and not directly in the jar.   That keeps Spring from caching them.

> Undeploying a CXF web app from tomcat on windows does not delete some CXF files
> -------------------------------------------------------------------------------
>
>                 Key: CXF-1816
>                 URL: https://issues.apache.org/jira/browse/CXF-1816
>             Project: CXF
>          Issue Type: Bug
>          Components: Integration
>    Affects Versions: 2.1.2
>         Environment: Windows Vista, Tomcat 6
>            Reporter: Antonio Leonforte
>
> When we try to undeploy a quite large web application (30Mb WAR file) using CXF, the 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" and "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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (CXF-1816) Undeploying a CXF web app from tomcat on windows does not delete some CXF files

Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633921#action_12633921 ] 

gmazza edited comment on CXF-1816 at 9/23/08 2:49 PM:
----------------------------------------------------------

As Dan mentioned earlier on the CXF-User's list, why do you have both "cxf-2.0.5-incubator" and "cxf-2.1.2"--also, does CXF actually have such files?  Also, given that "the operation completes with no warnings on the Tomcat manager page" and yet files still remain, are you sure this is a CXF and not actually a Tomcat one?

Also, you may wish to check your setup vs. mine to see why you apparently are running 2 CXF versions:
http://www.jroller.com/gmazza/date/20080417

      was (Author: gmazza):
    As Dan mentioned earlier on the CXF-User's list, why do you have both "cxf-2.0.5-incubator" and "cxf-2.1.2"--also, does CXF actually have such files?  Also, given that "the operation completes with no warnings on the Tomcat manager page" and yet files still remain, are you sure this is a CXF and not actually a Tomcat one?

Also, you may wish to check your setup vs. mine to see why you apparently are running 2 CXF versions:





  
> Undeploying a CXF web app from tomcat on windows does not delete some CXF files
> -------------------------------------------------------------------------------
>
>                 Key: CXF-1816
>                 URL: https://issues.apache.org/jira/browse/CXF-1816
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>         Environment: Windows Vista, Tomcat 6
>            Reporter: Antonio Leonforte
>
> When we try to undeploy a quite large web application (30Mb WAR file) using CXF, the 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" and "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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1816) Undeploying a CXF web app from tomcat on windows does not delete some CXF files

Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633921#action_12633921 ] 

Glen Mazza commented on CXF-1816:
---------------------------------

As Dan mentioned earlier on the CXF-User's list, why do you have both "cxf-2.0.5-incubator" and "cxf-2.1.2"--also, does CXF actually have such files?  Also, given that "the operation completes with no warnings on the Tomcat manager page" and yet files still remain, are you sure this is a CXF and not actually a Tomcat one?

Also, you may wish to check your setup vs. mine to see why you apparently are running 2 CXF versions:






> Undeploying a CXF web app from tomcat on windows does not delete some CXF files
> -------------------------------------------------------------------------------
>
>                 Key: CXF-1816
>                 URL: https://issues.apache.org/jira/browse/CXF-1816
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>         Environment: Windows Vista, Tomcat 6
>            Reporter: Antonio Leonforte
>
> When we try to undeploy a quite large web application (30Mb WAR file) using CXF, the 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" and "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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1816) Undeploying a CXF web app from tomcat on windows does not delete some CXF files

Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633910#action_12633910 ] 

Glen Mazza commented on CXF-1816:
---------------------------------

Does CXF actually have those two files "cxf-2.0.5-incubator" and "cxf-2.1.2", with no extensions as you say?  Also, are you sure this isn't a Vista or Tomcat bug?

> Undeploying a CXF web app from tomcat on windows does not delete some CXF files
> -------------------------------------------------------------------------------
>
>                 Key: CXF-1816
>                 URL: https://issues.apache.org/jira/browse/CXF-1816
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>         Environment: Windows Vista, Tomcat 6
>            Reporter: Antonio Leonforte
>
> When we try to undeploy a quite large web application (30Mb WAR file) using CXF, the 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" and "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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-1816) Undeploying a CXF web app from tomcat on windows does not delete some CXF files

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp updated CXF-1816:
-----------------------------

    Fix Version/s: 2.2.6
         Assignee: Daniel Kulp

> Undeploying a CXF web app from tomcat on windows does not delete some CXF files
> -------------------------------------------------------------------------------
>
>                 Key: CXF-1816
>                 URL: https://issues.apache.org/jira/browse/CXF-1816
>             Project: CXF
>          Issue Type: Bug
>          Components: Integration
>    Affects Versions: 2.1.2
>         Environment: Windows Vista, Tomcat 6
>            Reporter: Antonio Leonforte
>            Assignee: Daniel Kulp
>             Fix For: 2.2.6
>
>
> When we try to undeploy a quite large web application (30Mb WAR file) using CXF, the 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" and "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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1816) Undeploying a CXF web app from tomcat on windows does not delete some CXF files

Posted by "Dennis Kieselhorst (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12719483#action_12719483 ] 

Dennis Kieselhorst commented on CXF-1816:
-----------------------------------------

Similar problem: http://www.nabble.com/JAR-locking-cxf-rt-transports-http-on-Windows-td22370086.html

antiJarLocking doesn't fix it.

> Undeploying a CXF web app from tomcat on windows does not delete some CXF files
> -------------------------------------------------------------------------------
>
>                 Key: CXF-1816
>                 URL: https://issues.apache.org/jira/browse/CXF-1816
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>         Environment: Windows Vista, Tomcat 6
>            Reporter: Antonio Leonforte
>
> When we try to undeploy a quite large web application (30Mb WAR file) using CXF, the 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" and "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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-1816) Undeploying a CXF web app from tomcat on windows does not delete some CXF files

Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Glen Mazza updated CXF-1816:
----------------------------

    Comment: was deleted

> Undeploying a CXF web app from tomcat on windows does not delete some CXF files
> -------------------------------------------------------------------------------
>
>                 Key: CXF-1816
>                 URL: https://issues.apache.org/jira/browse/CXF-1816
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>         Environment: Windows Vista, Tomcat 6
>            Reporter: Antonio Leonforte
>
> When we try to undeploy a quite large web application (30Mb WAR file) using CXF, the 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" and "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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-1816) Undeploying a CXF web app from tomcat on windows does not delete some CXF files

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-1816.
------------------------------

    Resolution: Fixed


I've done about the best we can with this from CXF's perspective.   It's really issues in the JDK and the servlet containers that are holding onto things.    The Tomcat team is trying to find hacks/workarounds for various JDK bugs.   I  don't know if Jetty is doing the same.





> Undeploying a CXF web app from tomcat on windows does not delete some CXF files
> -------------------------------------------------------------------------------
>
>                 Key: CXF-1816
>                 URL: https://issues.apache.org/jira/browse/CXF-1816
>             Project: CXF
>          Issue Type: Bug
>          Components: Integration
>    Affects Versions: 2.1.2
>         Environment: Windows Vista, Tomcat 6
>            Reporter: Antonio Leonforte
>            Assignee: Daniel Kulp
>             Fix For: 2.2.6
>
>
> When we try to undeploy a quite large web application (30Mb WAR file) using CXF, the 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" and "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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1816) Undeploying a CXF web app from tomcat on windows does not delete some CXF files

Posted by "Antonio Leonforte (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12634109#action_12634109 ] 

Antonio Leonforte commented on CXF-1816:
----------------------------------------

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 existis 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.



> Undeploying a CXF web app from tomcat on windows does not delete some CXF files
> -------------------------------------------------------------------------------
>
>                 Key: CXF-1816
>                 URL: https://issues.apache.org/jira/browse/CXF-1816
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>         Environment: Windows Vista, Tomcat 6
>            Reporter: Antonio Leonforte
>
> When we try to undeploy a quite large web application (30Mb WAR file) using CXF, the 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" and "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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.