File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Classpath of a web application? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Classpath of a web application?" Watch "Classpath of a web application?" New topic
Author

Classpath of a web application?

Sandeep Vaid
Ranch Hand

Joined: Feb 27, 2006
Posts: 390
Servlet Container adds WEB-INF/classes and META-INF directories to the classpath of the web application. How can i see this classpath say in tomcat ?
Daniel Dalton
Ranch Hand

Joined: Mar 20, 2005
Posts: 146
I'm not sure the container adds META-INF to the classpath. What you need to know to make your app work is that un-jarred classes should be placed under WEB-INF/classes in directories mirroring the package structure as usual and jarred classes in WEB-INF/lib.

The container will then make the classes available on the class path.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Classpath of a web application?
 
Similar Threads
Jboss - Axis2 - Log4j : log4j.properties file placement
JSP calling ShadowedTextApplet.class
Spring Property file configuration Problem
Reading environment entry from a custom tag ..
WEB-INF - Jar of Jars