Originally posted by Manuel Moons:
Are you trying to load a resource in a jar file? If not you can try to put the file in a jar file. If will be put into the classpath and then it will become available using the classloader (getResource).
Yes if I do that, it is able to locate the file. But it is giving the file path as /WEB-INF/lib/files.jar!/config.xml and the FileReader is throwing an exception. files.jar is where I put the file "config.xml".
But if i put the file under WEB-INF/classes it is working fine.