I have just fixed this in CVS. Thanks for the report.

Mark 

> -----Original Message-----
> From: Daniel Rall [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 02, 2004 12:26 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PATCH][Tomcat 4.1 docs] Class loader HOWTO
> 
> The published Tomcat 4.1's class loader documentation 
> <http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-
> howto.html> says 
> that the directory used by the shared class loader is 
> relative to CATALINA_HOME. 
>   According to the source code in 
> catalina/src/share/org/apache/catalina/startup/Bootstrap.java'
> s main() method 
> and BootstrapService.java's init() method, the documentation 
> is incorrect (it 
> should be CATALINA_BASE).  Here's the corresponding code snippet:
> 
>              unpacked[0] = new File(getCatalinaBase(),
>                                     "shared" + File.separator 
> + "classes");
>              packed[0] = new File(getCatalinaBase(),
>                                   "shared" + File.separator + "lib");
>              sharedLoader =
>                  
> ClassLoaderFactory.createClassLoader(unpacked, packed,
>                                                       commonLoader);
> 
> In CVS rev 1.13, half of this problem was corrected.  This 
> fix has not be 
> published to the web site.
> 
> ----------------------------
> revision 1.13
> date: 2004/02/02 21:40:31;  author: markt;  state: Exp;  lines: +5 -5
> - Fix 13805. Update docs to show that the shared directory is 
> relative to 
> CATALINA_BASE not CATALINA_HOME.
> - Reported by Michael Eriksson.
> ----------------------------
> 
> Here's the other half of the fix:
> 
> * webapps/tomcat-docs/class-loader-howto.xml
>    Quick Start: In a follow up to CVS rev 1.13, correct the 
> path to the
>    lib directory used by Catalina's shared class loader (CATALINA_BASE
>    rather than CATALINA_HOME).
> 
> 
> Index: class-loader-howto.xml
> ===================================================================
> RCS file: 
> /home/cvspublic/jakarta-tomcat-4.0/webapps/tomcat-docs/class-l
> oader-howto.xml,v
> retrieving revision 1.13
> diff -u -u -r1.13 class-loader-howto.xml
> --- class-loader-howto.xml      2 Feb 2004 21:40:31 -0000       1.13
> +++ class-loader-howto.xml      1 Apr 2004 23:14:02 -0000
> @@ -27,7 +27,7 @@
>       application archive.</li>
>   <li>For classes and resources that must be shared across 
> all web applications,
>       place unpacked classes and resources under
> -    <code>$CATALINA_HOME/shared/classes</code>, or place JAR files
> +    <code>$CATALINA_BASE/shared/classes</code>, and JAR files
>       containing those classes and resources under
>       <code>$CATALINA_BASE/shared/lib</code>.</li>
>   </ul>
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to