Hi,
I was trying to config my facebook app following this example:
http://static.springsource.org/sprin...onnecting.html
This is how I am putting it in my context:
But I find out that the Class ConnectionFactoryRegistry has the connectionFactories property as a map:HTML Code:<bean id="connectionFactoryLocator" class="org.springframework.social.connect.support.ConnectionFactoryRegistry"> <property name="connectionFactories"> <bean class="org.springframework.social.facebook.connect.FacebookConnectionFactory"> <constructor-arg value="xxxx" /> <constructor-arg value="xxxx" /> </bean> </property> </bean>
I am including the versions artifacts in this way:Code:private final Map<String, ConnectionFactory<?>> connectionFactories = new HashMap<String, ConnectionFactory<?>>();
HTML Code:<org.springframework.social-version>1.0.0.RELEASE</org.springframework.social-version> <org.springframework-version>3.0.0.RELEASE</org.springframework-version> [...] <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>${org.springframework-version}</version> </dependency> <dependency> <groupId>org.springframework.social</groupId> <artifactId>spring-social-core</artifactId> <version>${org.springframework.social-version}</version> </dependency> <dependency> <groupId>org.springframework.social</groupId> <artifactId>spring-social-facebook</artifactId> <version>${org.springframework.social-version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${org.springframework-version}</version> </dependency>
This is throwing the following error at runtime:
I am not sure if I should configure the connectionFactories as a map or if I am doing something else wrong.Code:Error creating bean with name 'connectionFactoryLocator' defined in class path resource [applicationContext-security-facebook.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'connectionFactories' threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.core.GenericTypeResolver.resolveTypeArgument(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/Class;
Can somebody help me?
Thanks in advance, Regards.


Reply With Quote
