OAuth-Apis / apis

OAuth Authorization as a Service
Apache License 2.0
594 stars 301 forks source link

Unable to compile #37

Closed bcornelis closed 10 years ago

bcornelis commented 10 years ago

When I try to compile using mvn clean install I get the following exception:

java.lang.NoSuchMethodError: org.springframework.beans.factory.annotation.InjectionMetadata.needsRefresh(Lorg/springframework/beans/factory/annotation/InjectionMetadata;Ljava/lang/Class;)Z at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:368) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(PersistenceAnnotationBeanPostProcessor.java:323) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:844) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:498) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198) at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:741) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:106) at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:57) at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:100)

And the report of the maven execution: [INFO] API Secure ........................................ SUCCESS [0.971s] [INFO] API Secure - resource server library .............. SUCCESS [9.049s] [INFO] API Secure - authorization server ................. SUCCESS [14.483s] [INFO] API Secure - conext authentication plugin ......... SUCCESS [4.320s] [INFO] API Secure - example resource server .............. SUCCESS [18.038s] [INFO] API Secure - mock openconext group api ............ SUCCESS [2.018s] [INFO] API Secure - authorization server webapp .......... FAILURE [7.814s] [INFO] API Secure - example resource server war .......... SKIPPED [INFO] API Secure - example client app war ............... SKIPPED [INFO] API Secure - authorization server webapp dist ..... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 57.281s [INFO] Finished at: Fri Feb 07 09:30:21 CET 2014 [INFO] Final Memory: 77M/163M

So it seems to me that multiple spring libraries are included. This happens both with the 1.3.3 and 1.3.4 versions. What can I do to make it work?

Thanks!

jmsnoeij commented 10 years ago

have you seen issue #35 and issue #36 ? With these commits the error you describe should be resolved.