Resource loader was not working correctly for files from the classpath.