On Tue, 22 May 2001, Bob Tanner wrote:
> Can someone enlighten me on the directory layout of the 'dist' directory in
> Tomcat 4.0?
>
> For instance, why is xerces.jar put into ./jasper/xerces.jar and
> ./server/lib/xerces.jar?
>
> What is the common directory used for?
>
> I understand tomcat is modular and you can define which XML parser you use for
> which components, but it getting a little hairy when it comes time to upgrade
> xerces. I don't really want to have to replace it in 2 places.
>
The "dist" target creates the same structure as a binary distribution or
release, with the following major subdirectories:
bin/ Binary startup/shutdown scripts, bootstrap program
classes/ Unpacked files visible to all webapps (not created
by default)
common/ Files visible to Catalina *and* webapps
classes/ (unpacked classes - not created by default)
lib/ (JAR files)
conf/ Configuration files
jasper/ JAR files visible only to Jasper's special
class loader
lib/ JAR files visible to all webapps
logs/ Output log files go here by default
server/ Files visible to Catalina only
classes/ (unpacked classes - not created by default)
lib/ (JAR files)
webapps/ Default base directory for web applications
work/ Default base directory for temporary work dirs
As you can see, a large number of the variations are to make classes
visible to whatever classloader needs them. For a discussion of the
classloader architecture in Catalina, see the file
"catalina/docs/dev/classloaders.html" in the source code.
You should also read the comments about Tomcat and XML parsers at the
bottom of the Release Notes file for your release
(i.e. RELEASE-NOTES-4.0-B5.txt for beta 5).
>
>
> --
> Bob Tanner <[EMAIL PROTECTED]> | Phone : (952)943-8700
> http://www.mn-linux.org | Fax : (952)943-8500
> Key fingerprint = 6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9
>
>
Craig