ClassPathResource factory and JarResource Factory

Should check that lastIndexOf doesn't return -1