ClassPathResource factory and JarResource Factory

Please use logging framework instead of printStackTrace().