> How to use the ClasspathResource here. Looking at a test might help : http://svn.shibboleth.net/view/java-opensaml/tags/3.2.0/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/ResourceBackedMetadataResolverTest.java?view=markup You'll probably want to replace the FileSystemResource with Spring's ClassPathResource.