File inside jar is not visible for spring
If your spring-context.xml and my.config files are in different jars then you will need to use classpath*:my.config? More info here Also, make sure you are using resource.getInputStream() not resource.getFile() when loading from inside a jar file.