hello: in my servlet,i have following clause: properties.load(this.getClass().getResourceAsStream("/test.properties"));
i put the "test.properties" file under the "classes" directory,it works well,but when i put it in the "lib" directory,the servlet throw null point exception,and can't find the properties file,why?i think that both the "classes" and "lib" directories are within the classpath. otherwise,i find that all the files in the lib directory are jar file,so that i guess if i package the properties file within the jar file then put it in the lib directory,maybe it should work.who knows? other strange thing is: i use jboss as the app server,if i put the properties file in the "%jboss_home%/bin" directory,my code could find it,but when i check the jboss_classpath cofiguration within the "run.bat" file,it don't include the bin directory,i wonder how the jboss put the bin directory in its classpath? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835127#3835127 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835127 ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user