Thanks for the info.
salu2
--
Thorsten Scherler <thorsten.at.apache.org>
codeBusters S.L. - web based systems
<consulting, training and solutions>
http://www.codebusters.es/
I just cloned HEAD again and the dependencies are now resolved without
problems. However changing again to the web folder and running
mvn jetty:run -Dopenaccess-security -DskipTests=true -Dlog.home=
$HOME/logs -Denv.WEBPORT=8080 -Denv.GRWEBPORT=8081
I get an exception (see DETAILS-OF-BUG). However I found the root cause
in 2 different versions of spring in the lib folder of web-inf
Do
ls target/ROOT/org.eurekastreams.web.Application/WEB-INF/lib|grep
spring|grep 2.0.8
and you will get two offending libs. When I removed this libs it starts
well. I attached a patch to exclude the offending libs in the pom which
I found reviewing the dep tree.
Thanks again to everyone who gave me a helping hand.
BTW I found some other bugs starting up the app but I will come to them
in another thread.
****DETAILS-OF-BUG*****
It starts with an info and then starting jetty I get an exception:
...
[INFO] Unable to find resource
'org.jboss.javaee:jboss-jca-api:pom:1.5.0-SNAPSHOT' in repository
jboss-snapshots (http://snapshots.jboss.org/maven2)
[WARNING] POM for 'net.sf.gilead:gilead4gwt:pom:1.3.2:compile' is
invalid.
Its dependencies (if any) will NOT be available to the current build.
...
INFO: An exception was caught and reported. Message:
java.lang.NoSuchMethodError:
org.springframework.aop.config.AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(Lorg/springframework/beans/factory/xml/ParserContext;Lorg/w3c/dom/Element;)V
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:/org/eurekastreams/server/conf/applicationContext-model.xml]
Offending resource: URL
[file:/home/thorsten/src/apache/opensocialplattforms/eurekastreams/web/target/ROOT/org.eurekastreams.web.Application/WEB-INF/classes/conf/applicationContext-container.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [org/eurekastreams/server/conf/applicationContext-model.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.aop.config.AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(Lorg/springframework/beans/factory/xml/ParserContext;Lorg/w3c/dom/Element;)V
at
org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
at
org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
...
Caused by:
org.springframework.beans.factory.BeanDefinitionStoreException:
Unexpected exception parsing XML document from class path resource
[org/eurekastreams/server/conf/applicationContext-model.xml]; nested
exception is java.lang.NoSuchMethodError:
org.springframework.aop.config.AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(Lorg/springframework/beans/factory/xml/ParserContext;Lorg/w3c/dom/Element;)V
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:174)
... 65 more
Caused by: java.lang.NoSuchMethodError:
org.springframework.aop.config.AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(Lorg/springframework/beans/factory/xml/ParserContext;Lorg/w3c/dom/Element;)V
at
org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser$AopAutoProxyConfigurer.configureAutoProxyCreator(AnnotationDrivenBeanDefinitionParser.java:109)
at
...
2011-03-02 16:37:11.192:WARN::Failed startup of context
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@204144{/,file:/home/thorsten/src/apache/opensocialplattforms/eurekastreams/web/target/ROOT/org.eurekastreams.web.Application/;jar:file:/home/thorsten/.m2/repository/org/apache/shindig/shindig-server/2.0.1.2/shindig-server-2.0.1.2.war!/;}
com.google.inject.CreationException: Guice creation errors:||1) No
implementation for org.springframework.beans.factory.BeanFactory was
bound.| while locating org.springframework.beans.factory.BeanFactory|
for parameter 0 at com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at
com.google.inject.spring.SpringIntegration
$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at
org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:85)||2) No implementation for org.springframework.beans.factory.BeanFactory was bound.| while locating org.springframework.beans.factory.BeanFactory| for parameter 0 at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:89)||3) No implementation for org.springframework.beans.factory.BeanFactory was bound.| while locating org.springframework.beans.factory.BeanFactory| for parameter 0 at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:97)||4) No implementation for org.springframework.beans.factory.BeanFactory was bound.| while locating org.springframework.beans.factory.BeanFactory| for parameter 0 at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:75)||5) No implementation for org.springframework.beans.factory.BeanFactory was bound.| while locating org.springframework.beans.factory.BeanFactory| for parameter 0 at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:99)||6) No implementation for org.springframework.beans.factory.BeanFactory was bound.| while locating org.springframework.beans.factory.BeanFactory| for parameter 0 at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:77)||7) No implementation for org.springframework.beans.factory.BeanFactory was bound.| while locating org.springframework.beans.factory.BeanFactory| for parameter 0 at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:79)||8) No implementation for org.springframework.beans.factory.BeanFactory was bound.| while locating org.springframework.beans.factory.BeanFactory| for parameter 0 at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:87)||9) No implementation for org.springframework.beans.factory.BeanFactory was bound.| while locating org.springframework.beans.factory.BeanFactory| for parameter 0 at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:83)||10) No implementation for org.springframework.beans.factory.BeanFactory was bound.| while locating org.springframework.beans.factory.BeanFactory| for parameter 0 at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:95)||11) No implementation for org.springframework.beans.factory.BeanFactory was bound.| while locating org.springframework.beans.factory.BeanFactory| for parameter 0 at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:81)||12) No implementation for org.springframework.beans.factory.BeanFactory was bound.| while locating org.springframework.beans.factory.BeanFactory| for parameter 0 at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at com.google.inject.spring.SpringIntegration$InjectableSpringProvider.initialize(SpringIntegration.java:131)| at org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:93)||13) An exception was caught and reported. Message: Configuration problem: Failed to import bean definitions from URL location [classpath:/org/eurekastreams/server/conf/applicationContext-model.xml]|Offending resource: URL [file:/home/thorsten/src/apache/opensocialplattforms/eurekastreams/web/target/ROOT/org.eurekastreams.web.Application/WEB-INF/classes/conf/applicationContext-container.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [org/eurekastreams/server/conf/applicationContext-model.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.aop.config.AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(Lorg/springframework/beans/factory/xml/ParserContext;Lorg/w3c/dom/Element;)V| at com.google.inject.InjectorShell$Builder.build(InjectorShell.java:135)||14) No implementation for org.eurekastreams.commons.server.service.ActionController was bound.| while locating org.eurekastreams.commons.server.service.ActionController| for field at org.eurekastreams.server.service.opensocial.gadgets.oauth.OAuthStoreImpl.actionController(OAuthStoreImpl.java:108)| at org.eurekastreams.server.service.opensocial.config.OAuthModule.configure(OAuthModule.java:71)||14 errors
at
com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:354)
that one
> spring-beans-2.5.6.jar
> spring-context-2.5.6.jar
> spring-context-support-2.5.6.jar
> spring-core-2.5.6.jar
> spring-jms-2.5.6.jar
> spring-ldap-core-1.3.0.RELEASE.jar
> spring-security-core-2.0.4.jar
> spring-security-oauth-3.19-ES.jar
> spring-support-2.0.8.jar
that one too
I have not being very precise since there is no corresponding 2.5.6
version for those libs, but this two caused for me the reported error.
salu2
--