File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat application deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat application deployment" Watch "Tomcat application deployment" New topic

Tomcat application deployment

Amruta Agarwal

Joined: Apr 11, 2007
Posts: 11
I was reading Tomcat application developer's guide:

Under the topic "Standard Directory Layout" it is said that:

When you install an application into Tomcat (or any other 2.2/2.3-compatible server), the classes in the WEB-INF/classes/ directory, as well as all classes in JAR files found in the WEB-INF/lib/ directory, are made visible to other classes within your particular web application. Thus, if you include all of the required library classes in one of these places (be sure to check licenses for redistribution rights for any third party libraries you utilize), you will simplify the installation of your web application -- no adjustment to the system class path (or installation of global library files in your server) will be necessary.

"are made visible to other classes within your particular web application".
What other classe are these, and where are they?
Dont the class files and the jar files make the application classes?
Nick Tountas

Joined: Jul 22, 2006
Posts: 5
Yes, what it means is that you need to put them there, otherwise they are not visible.

Also don't forget that if you are using some framework there may be further directories etc.
I agree. Here's the link:
subject: Tomcat application deployment
It's not a secret anymore!