hns wrote:
        InputStream is = getClass().getResourceAsStream("/db.properties");


Don't include a leading slash unless you really mean the root directory (which you shouldn't do in a webapp).

Instead, this line:

InputStream is = getClass().getResourceAsStream("db.properties");

will look for the file in the base of the classpath. (eg WEB-INF/classes/db.properties or in a jar)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to