• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Classpath of a web application?

 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic