Well, basically Im trying to load property file from my Java class, its not a Servlet but bundled within a WAR file. So I cannt use ServletContext.getResourceAsStream() and GetClass().getResourceAsStream either.
Whenever im trying File file = new File("db.properties"); Properties prop = new Properties(); prop.load(file); Its saying FileNotFoundException, coz obviously its trying to loading from wrong path while this path is bundled with WAR. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865232#3865232 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865232 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user