This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes war classpath question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "war classpath question" Watch "war classpath question" New topic
Author

war classpath question

Jayson Wade
Greenhorn

Joined: Jun 26, 2003
Posts: 3
For a webapp, will the classloader look in the classes directory or the lib directory first? Does this vary for different App Servers?
Thanks,
Jayson
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
Originally posted by Jayson Wade:
For a webapp, will the classloader look in the classes directory or the lib directory first? Does this vary for different App Servers?
Thanks,
Jayson

servlet specification (2.3) mandates that classes present in the classes folder needs to be loaded before the ones in the jar files in the lib folder. So as long as the app servers are servlet spec 2.3 compliant, the behaviour has to be uniform.
 
Consider Paul's rocket mass heater.
 
subject: war classpath question
 
It's not a secret anymore!