You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2013/04/17 23:35:03 UTC

[Bug 54859] New: undeployOldVersions files under work

https://issues.apache.org/bugzilla/show_bug.cgi?id=54859

            Bug ID: 54859
           Summary: undeployOldVersions files under work
           Product: Tomcat 7
           Version: 7.0.37
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: joe.knudsen@gmail.com
    Classification: Unclassified

I am using the undeployOldVersions option of parallel deployment.  After the
war file gets removed I still see the directory and files under the
work/Catalina/localhost remain.  I would think the undeployOldVersions option
should be removing these files also.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 54859] undeployOldVersions files under work

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54859

Joe Knudsen <jo...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|7.0.37                      |7.0.39

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 54859] undeployOldVersions files under work

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54859

Violeta Georgieva <vi...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Violeta Georgieva <vi...@apache.org> ---
Hi,

Can you give us more information about:
- configuration - is it standard or you customized it?
- what do you see in the logs?

For example I can see the following in the console:

"
Apr 18, 2013 10:34:45 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive
/apache-tomcat-7.0.37/webapps/examples##2.war
Apr 18, 2013 10:35:03 AM org.apache.catalina.startup.HostConfig checkUndeploy
INFO: Undeploying old version of context [/examples] which has no active
session
Apr 18, 2013 10:35:03 AM org.apache.catalina.startup.HostConfig
deleteRedeployResources
INFO: Undeploying context [/examples]
"

So the message below is the important one:
"Undeploying old version of context [/examples] which has no active session"

Do you have active sessions to the previous version of the application?

If there are active sessions the application will be available. When all active
sessions expired, the old version will be undeployed.

Regards
Violeta

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 54859] undeployOldVersions files under work

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54859

--- Comment #2 from Joe Knudsen <jo...@gmail.com> ---
I will gather additional information.  I am attempting to use the feature to do
continous integration and deployment on Grails builds.   At times builds fail
due to problems with the build or running out of Perm memory.  These could be
what is causing the undeploy to not work or partially work by just removing the
war file and leaving the work/Catalina remaining.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 54859] undeployOldVersions files under work

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54859

Violeta Georgieva <vi...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 54859] undeployOldVersions files under work

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54859

--- Comment #3 from Joe Knudsen <jo...@gmail.com> ---
Below is the logs of a simple Grails application failing to delete from
Catalina/localhost:

INFO: Deploying web application archive
E:\Apache\Tomcat-7.0.39_7600_x64\webapps\dfpeapi##2974.war
Apr 22, 2013 4:53:26 PM org.apache.catalina.startup.HostConfig checkUndeploy
INFO: Undeploying old version of context [/dfpeapi##2973] which has no active
session
Apr 22, 2013 4:53:26 PM org.apache.catalina.startup.HostConfig
deleteRedeployResources
INFO: Undeploying context [/dfpeapi##2973]
Apr 22, 2013 4:53:27 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/dfpeapi##2973] created a ThreadLocal with key of
type [org.codehaus.groovy.reflection.ClassInfo.ThreadLocalMapHandler] (value
[org.codehaus.groovy.reflection.ClassInfo$ThreadLocalMapHandler@1c551dc1]) and
a value of type [java.lang.ref.SoftReference] (value
[java.lang.ref.SoftReference@1814786f]) but failed to remove it when the web
application was stopped. Threads are going to be renewed over time to try and
avoid a probable memory leak.
Apr 22, 2013 4:53:27 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/dfpeapi##2973] created a ThreadLocal with key of
type [org.codehaus.groovy.reflection.ClassInfo.ThreadLocalMapHandler] (value
[org.codehaus.groovy.reflection.ClassInfo$ThreadLocalMapHandler@1c551dc1]) and
a value of type [java.lang.ref.SoftReference] (value
[java.lang.ref.SoftReference@6e8362dc]) but failed to remove it when the web
application was stopped. Threads are going to be renewed over time to try and
avoid a probable memory leak.
Apr 22, 2013 4:53:27 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/dfpeapi##2973] created a ThreadLocal with key of
type [org.codehaus.groovy.reflection.ClassInfo.ThreadLocalMapHandler] (value
[org.codehaus.groovy.reflection.ClassInfo$ThreadLocalMapHandler@1c551dc1]) and
a value of type [java.lang.ref.SoftReference] (value
[java.lang.ref.SoftReference@73cf9232]) but failed to remove it when the web
application was stopped. Threads are going to be renewed over time to try and
avoid a probable memory leak.
Apr 22, 2013 4:53:27 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/dfpeapi##2973] created a ThreadLocal with key of
type [org.codehaus.groovy.reflection.ClassInfo.ThreadLocalMapHandler] (value
[org.codehaus.groovy.reflection.ClassInfo$ThreadLocalMapHandler@1c551dc1]) and
a value of type [java.lang.ref.SoftReference] (value
[java.lang.ref.SoftReference@40874c04]) but failed to remove it when the web
application was stopped. Threads are going to be renewed over time to try and
avoid a probable memory leak.
Apr 22, 2013 4:53:28 PM org.apache.catalina.startup.ExpandWar deleteDir
SEVERE:
[E:\Apache\Tomcat-7.0.39_7600_x64\work\Catalina\localhost\dfpeapi##2973\WEB-INF\lib]
could not be completely deleted. The presence of the remaining files may cause
problems
Apr 22, 2013 4:53:28 PM org.apache.catalina.startup.ExpandWar deleteDir
SEVERE:
[E:\Apache\Tomcat-7.0.39_7600_x64\work\Catalina\localhost\dfpeapi##2973\WEB-INF]
could not be completely deleted. The presence of the remaining files may cause
problems
Apr 22, 2013 4:53:28 PM org.apache.catalina.startup.ExpandWar deleteDir
SEVERE:
[E:\Apache\Tomcat-7.0.39_7600_x64\work\Catalina\localhost\dfpeapi##2973] could
not be completely deleted. The presence of the remaining files may cause
problems
Apr 22, 2013 4:53:28 PM org.apache.catalina.startup.ExpandWar delete
SEVERE:
[E:\Apache\Tomcat-7.0.39_7600_x64\work\Catalina\localhost\dfpeapi##2973] could
not be completely deleted. The presence of the remaining files may cause
problems

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 54859] undeployOldVersions files under work

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54859

--- Comment #5 from Joe Knudsen <jo...@gmail.com> ---
Looking at the files remaining are just a couple of jars.  The jtds driver and
the hibernate-validator and the liqubase-core.  All involved with the DB
connections.  I tried using the setting the options for Windows below, both
individually and together with no changes in behavior.

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

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 54859] undeployOldVersions files under work

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54859

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Mark Thomas <ma...@apache.org> ---
That is an app / Grails problem, not a Tomcat one.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org