You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2014/09/08 15:12:08 UTC

svn commit: r1623385 - in /tomcat/tc7.0.x/trunk: ./ webapps/docs/changelog.xml webapps/docs/class-loader-howto.xml

Author: markt
Date: Mon Sep  8 13:12:07 2014
New Revision: 1623385

URL: http://svn.apache.org/r1623385
Log:
Update class loader how-to to reflect new position of system class loader in loading order.
Add a note the the original fix about the change in order.

Modified:
    tomcat/tc7.0.x/trunk/   (props changed)
    tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml
    tomcat/tc7.0.x/trunk/webapps/docs/class-loader-howto.xml

Propchange: tomcat/tc7.0.x/trunk/
------------------------------------------------------------------------------
  Merged /tomcat/trunk:r1623384

Modified: tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml?rev=1623385&r1=1623384&r2=1623385&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml Mon Sep  8 13:12:07 2014
@@ -1066,7 +1066,9 @@
         that prevents web applications from trying to override J2SE
         implementation classes. As part of this fix, refactor the way a null
         parent class loader is handled which enables a number of null checks and
-        object creation calls to be removed. (markt)
+        object creation calls to be removed. Note that this change means that,
+        by default, the web application class loader is now a higher priority
+        for loading classes than the system class loader.  (markt)
       </fix>
       <fix>
         <bug>55958</bug>: Differentiate between <code>foo.war</code> the WAR

Modified: tomcat/tc7.0.x/trunk/webapps/docs/class-loader-howto.xml
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/class-loader-howto.xml?rev=1623385&r1=1623384&r2=1623385&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/webapps/docs/class-loader-howto.xml (original)
+++ tomcat/tc7.0.x/trunk/webapps/docs/class-loader-howto.xml Mon Sep  8 13:12:07 2014
@@ -184,10 +184,20 @@ All other class loaders in Tomcat follow
 loading looks in the following repositories, in this order:</p>
 <ul>
 <li>Bootstrap classes of your JVM</li>
-<li>System class loader classes (described above)</li>
 <li><em>/WEB-INF/classes</em> of your web application</li>
 <li><em>/WEB-INF/lib/*.jar</em> of your web application</li>
+<li>System class loader classes (described above)</li>
+<li>Common class loader classes (described above)</li>
+</ul>
+
+<p>If the web application class loader is configuered with
+<code>delegate=&quot;true&quot;</code> then the order becomes:</p>
+<ul>
+<li>Bootstrap classes of your JVM</li>
+<li>System class loader classes (described above)</li>
 <li>Common class loader classes (described above)</li>
+<li><em>/WEB-INF/classes</em> of your web application</li>
+<li><em>/WEB-INF/lib/*.jar</em> of your web application</li>
 </ul>
 
 </section>



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