Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Tomcat locks jars after undeploying web application

Tomcat locks jars after undeploying web application

2007-02-21       - By Juan Espinosa

 Back

Hi to all im having problems with tomcat and windows. The struts2-core jar
get locked when i do an undeploy of my web application. I found that in
tomcat you can put a property to avoid lock of jars?also i found a lot of
posts that say that this property is not working?

Anyone has "fight" with issue ??? Any advice is welcome?.



I copy this from tomcat web site

want to redeploy web applications, how do I prevent resources from getting
locked?

Most locking issues will occur with JARs from /WEB-INF/lib, and are useally
caused by access through URLs. Tomcat has mechanisms to allow avoiding
locking. In Tomcat 5.0, a mechanism exists to prevent locking when accessing
resources using the getResource method of the URL classloader (many
applications, such as Xerces, do not set the use of caching to false before
opening the URL connection, causing locking). If such a call occurs,
resources inside the JARs will be extracted to the work directory of the web
application. In Tomcat 5.5, this mechanism is disabled by default (as it has
a non negligible influence on startup times, and is often useless), and can
be enabled using the antiJARLocking attribute of the Context element. There
is another lock prevention mechanism in Tomcat 5.5 (antiResourceLocking
attribute), which will cause the web application files to be copied to the
temp folder and run from this location. This has a larger impact on web
application startup times, but obviously prevents locking on all resources
of the web application. This also allows more flexible management operations
as none of the web application resources will be locked, even while the web
application is running (as a special note, when making changes JSPs without
reloading the application, the changes has to be duplicated to the path
where the web application resources have been copied in the temp folder).


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 20/02/2007
13:44


©2008 junlu.com - Jax Systems, LLC, U.S.A.