You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jim Freeby <jf...@globexplorer.com> on 2006/04/03 18:55:36 UTC
RE: jsf-impl.jar does not get deleted on app undeploy
Not sure if you found the answer, but this sounds like the same problem as a previous post (see subject "Ant Deploy Task Problem")
My solution is ....
I updated my META-INF/context.xml as follows:
<Context reloadable="true" antiResourceLocking="true">
....
</Context>
and now undeploy can properly remove the webapp directory.
Apparently there is a problem with windows locking resources, so that undeploy cannot delete the directory.
-----Original Message-----
From: Nikita Tovstoles [mailto:nikita@eviltwinstudios.net]
Sent: Thursday, March 30, 2006 12:22 PM
To: users@tomcat.apache.org
Subject: jsf-impl.jar does not get deleted on app undeploy
Hi,
I have a WAR which, among others, contains Hibernate and JSF libraries.
When I undeploy this application (using Tomcat manager), the app's
directory remains in webapps because app/WEB-INF/lib/jsf-impl.jar cannot
be deleted - i.e. it appears Tomcat continues to access that JAR.
Since complete undeployment fails, I cannot re-deploy my app without
stopping Tomcat and manually deleting app-dir from /webapps. What can
possibly be preventing this JAR from being deleted and what can I do
about that?
thanks
-nikita
Vanilla Tomcat version: 5.5.12 (windows)
Contents of my app's web-inf/lib:
3/30/2006 12:17 PM 444,689 antlr-2.7.6rc1.jar
3/30/2006 12:17 PM 16,777 asm-attrs.jar
3/30/2006 12:17 PM 26,360 asm.jar
3/30/2006 12:17 PM 282,338 cglib-2.1.3.jar
3/30/2006 12:17 PM 188,671 commons-beanutils.jar
3/30/2006 12:17 PM 175,426 commons-collections-2.1.1.jar
3/30/2006 12:17 PM 168,446 commons-digester.jar
3/30/2006 12:17 PM 38,015 commons-logging-1.0.4.jar
3/30/2006 12:17 PM 313,898 dom4j-1.6.1.jar
3/30/2006 12:17 PM 1,971,632 hibernate3.jar
3/30/2006 12:17 PM 364,470 jsf-api.jar
3/30/2006 12:17 PM 698,542 jsf-impl.jar
3/30/2006 12:17 PM 20,682 jstl.jar
3/30/2006 12:17 PM 8,812 jta.jar
3/30/2006 12:17 PM 393,259 standard.jar
3/30/2006 12:17 PM 498,051 struts.jar
pertinent section in web.xml (please note that i've tried commenting
in/out listeners below):
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>EvilsiteServlet</servlet-name>
<servlet-class>net.eviltwinstudios.website.EvilsiteServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>EvilsiteServlet</servlet-name>
<url-pattern>/evilsiteservlet</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
</welcome-file-list>
<!--
<listener>
<listener-class>net.eviltwinstudios.util.HibernateListener</listener-class>
</listener>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
-->
<resource-ref>
<description>Hibernate DB Pool Connection</description>
<res-ref-name>jdbc/EvilsiteDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
!DSPAM:442c3e6a38284359117518!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org