This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes LDAP - classes folder - property file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "LDAP - classes folder - property file" Watch "LDAP - classes folder - property file" New topic

LDAP - classes folder - property file

Rohit Rai
Ranch Hand

Joined: Aug 04, 2008
Posts: 53
Hi !
I have gone through some material regarding authentication using LDAP. During this process I came to know and found out that the LDAP properties file e.g. file should be in WEB-INF/classes folder if i am using tomcat.

I also know that it does not work if we put this file in some other directory and it throws a MissingResource exception. Can anyone tell me exactly why we need to put the properties file in the classes folder?

Is it like the properties file is read from the classpath or something like that.

Thanks a lot,

It is sorta covered in the JavaRanch Style Guide.
subject: LDAP - classes folder - property file
Similar Threads
.properties file
Reading a properties file
loading properties file for a component.
ejb and properties
Testing to connect to DB and MissingResourceException