spring - SpringSocial XML Configuration Schema Error -
i tried spring social showcase using xml appears have error in xml.
the xml file not working. have read x marks on line 23 27.
<facebook:config app-id="${facebook.clientid}" app-secret="${facebook.clientsecret}" app-namespace="socialshowcase" /> <twitter:config app-id="${twitter.consumerkey}" app-secret="${twitter.consumersecret}"/> <linkedin:config app-id="${linkedin.consumerkey}" app-secret="${linkedin.consumersecret}"/> <social:jdbc-connection-repository/>
i tried check schema ( http://www.springframework.org/schema/social/ )and pasted in url says it not found. tried check root springframework.org/schema/ , not able find child relating spring social.
is there new link xmnls or schema location spring social?
here xml file:
<?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:facebook="http://www.springframework.org/schema/social/facebook" xmlns:twitter="http://www.springframework.org/schema/social/twitter" xmlns:social="http://www.springframework.org/schema/social" xmlns:linkedin="http://www.springframework.org/schema/social/linkedin" xmlns:c="http://www.springframework.org/schema/c" xmlns:context="http://www.springframework.org/schema/context" xsi:schemalocation="http://www.springframework.org/schema/social/facebook http://www.springframework.org/schema/social/spring-social-facebook.xsd http://www.springframework.org/schema/social/linkedin http://www.springframework.org/schema/social/spring-social-linkedin.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/social/twitter http://www.springframework.org/schema/social/spring-social-twitter.xsd http://www.springframework.org/schema/social http://www.springframework.org/schema/social/spring-social.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd"> <context:property-placeholder location="classpath:/org/springframework/social/showcase/config/application.properties" /> <facebook:config app-id="${facebook.clientid}" app-secret="${facebook.clientsecret}" app-namespace="socialshowcase" /> <twitter:config app-id="${twitter.consumerkey}" app-secret="${twitter.consumersecret}"/> <linkedin:config app-id="${linkedin.consumerkey}" app-secret="${linkedin.consumersecret}"/> <social:jdbc-connection-repository/> <bean id="useridsource" class="org.springframework.social.security.authenticationnameuseridsource" /> <bean id="connectcontroller" class="org.springframework.social.connect.web.connectcontroller" autowire="constructor"> <property name="connectinterceptors"> <list> <bean class="org.springframework.social.showcase.facebook.posttowallafterconnectinterceptor" /> <bean class="org.springframework.social.showcase.twitter.tweetafterconnectinterceptor" /> </list> </property> </bean> <bean id="psc" class="org.springframework.social.connect.web.providersignincontroller" autowire="constructor" /> <bean id="signinadapter" class="org.springframework.social.showcase.signin.simplesigninadapter" autowire="constructor" /> <bean id="disconnectcontroller" class="org.springframework.social.facebook.web.disconnectcontroller" c:_0-ref="usersconnectionrepository" c:_1="${facebook.clientsecret}" /> </beans>
it's been time since question asked, came across same problem now.
i fixed adding spring-social-security jar buildpath. maven:
<dependency> <groupid>org.springframework.social</groupid> <artifactid>spring-social-security</artifactid> <version>${org.springframework.social-version}</version> </dependency>
Comments
Post a Comment