I'm having a little trouble with a DB conn pool I'm setting up. The details of the database (name, location, user/pwd, etc) are all stored in a properties file, so that if anything changes, it's a simple change to the properties file rather than code.
Prolem is, I can't find a way of getting this Init class to see the properties file. I don't want a full local path (C:\...\...\...\) I would need it to be a relative path. I have asked about this before and was under the standing that the WEB-INF folder was the place to have properties files, but my class still can not see it
For this to work, the file needs to be in the classpath. Try moving the dbconn.properties file into the "classes" directory (and don't prefix it by "WEB-INF/classes").
Or work with the servlet context, as was suggested before.