Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Classpath of a web application?  RSS feed

 
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!