I am trying to import the xsd schema from local drive using schemalocation classpath in spring. I added the required file in the classpath and added the reference of this fi
I have resolved the issue, as i was using the wrong jar of spring-social-web but not spring-social-facebook that contain the xsd. I don't required to use the classpath any more. thanks M. Deinum.
You shouldn't be messing around with other locations and use the defaults. For Spring Social Facebook you should use http://www.springframework.org/schema/social/spring-social-facebook-1.1.xsd
or preferably the version less one http://www.springframework.org/schema/social/spring-social-facebook.xsd
.
Spring will always first load the xsd from the jars from the classpath. Spring ships with a custom EntityResolver
, the PluggableSchemaResolver which uses the different spring.schemas
files in the META-INF
directory of Spring jar files.
The only reasons to get an error like you get (and why you try to work around it) is
I would bet on option 2 not having all the 1.1.0 versions of spring-social-facebook but mixing versions of jars.