archiva-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eror <sad...@thetigerworks.com>
Subject ES Metadata Storage of Archiva
Date Mon, 18 May 2015 11:26:11 GMT
Hi,
I am trying to implement a metadata storage for archiva which stores and
read from elasticsearch. I have already write a module and test with the
testcases. Most of them passed. Now I am trying to include this with whole
archiva and run archiva with it.  But when ever I am trying to do that i am
getting errors. The stack part of stacktrace is given below. Some error with
plexus Initialization. Probably using same artifact with diffrent version.
Now I need Some help to solve this problem. Any help will be appricated.


StackTrace:
"16:09:16.355 [localhost-startStop-1] WARN 
org.springframework.web.context.support.XmlWebApplicationContext - Exception
encountered during context initialization - cancelling refresh attempt
 org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'repositorySearch#maven' defined in file
[/home/sadlil/TigerWorks/Sources/Dev/archiva/archiva-modules/archiva-base/archiva-indexer/target/classes/org/apache/archiva/indexer/search/MavenRepositorySearch.class]:
Unsatisfied dependency expressed through constructor argument with index 0
of type [org.apache.archiva.common.plexusbridge.PlexusSisuBridge]: : Error
creating bean with name 'plexusSisuBridge': Invocation of init method
failed; nested exception is java.lang.IncompatibleClassChangeError:
Implementing class; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'plexusSisuBridge': Invocation of init method failed; nested
exception is java.lang.IncompatibleClassChangeError: Implementing class
	at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1131)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1034)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
~[spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
[spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
[spring-web-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
[spring-web-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
[spring-web-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
[tomcat-embed-core-7.0.54.jar:7.0.54]
	at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
[tomcat-embed-core-7.0.54.jar:7.0.54]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[tomcat-embed-core-7.0.54.jar:7.0.54]
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
[tomcat-embed-core-7.0.54.jar:7.0.54]
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
[tomcat-embed-core-7.0.54.jar:7.0.54]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_80]
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[?:1.7.0_80]
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[?:1.7.0_80]
	at java.lang.Thread.run(Thread.java:745) [?:1.7.0_80]
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'plexusSisuBridge': Invocation of init method
failed; nested exception is java.lang.IncompatibleClassChangeError:
Implementing class
	at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1558)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1127)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1051)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:949)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	... 24 more
Caused by: java.lang.IncompatibleClassChangeError: Implementing class
	at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.7.0_80]
	at java.lang.ClassLoader.defineClass(ClassLoader.java:800) ~[?:1.7.0_80]
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
~[?:1.7.0_80]
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
~[?:1.7.0_80]
	at java.net.URLClassLoader.access$100(URLClassLoader.java:71) ~[?:1.7.0_80]
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361) ~[?:1.7.0_80]
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[?:1.7.0_80]
	at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_80]
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[?:1.7.0_80]
	at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1227)
~[tomcat-embed-core-7.0.54.jar:7.0.54]
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1690)
~[tomcat-embed-core-7.0.54.jar:7.0.54]
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
~[tomcat-embed-core-7.0.54.jar:7.0.54]
	at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.7.0_80]
	at java.lang.ClassLoader.defineClass(ClassLoader.java:800) ~[?:1.7.0_80]
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
~[?:1.7.0_80]
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
~[?:1.7.0_80]
	at java.net.URLClassLoader.access$100(URLClassLoader.java:71) ~[?:1.7.0_80]
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361) ~[?:1.7.0_80]
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[?:1.7.0_80]
	at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_80]
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[?:1.7.0_80]
	at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1227)
~[tomcat-embed-core-7.0.54.jar:7.0.54]
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1690)
~[tomcat-embed-core-7.0.54.jar:7.0.54]
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
~[tomcat-embed-core-7.0.54.jar:7.0.54]
	at
org.eclipse.sisu.plexus.binders.PlexusAnnotatedBeanModule$PlexusSpaceModule.visitor(PlexusAnnotatedBeanModule.java:101)
~[org.eclipse.sisu.plexus-0.0.0.M2a.jar:?]
	at org.eclipse.sisu.binders.SpaceModule.configure(SpaceModule.java:92)
~[org.eclipse.sisu.inject-0.0.0.M2a.jar:?]
	at
org.eclipse.sisu.plexus.binders.PlexusAnnotatedBeanModule.configure(PlexusAnnotatedBeanModule.java:81)
~[org.eclipse.sisu.plexus-0.0.0.M2a.jar:?]
	at
org.eclipse.sisu.plexus.binders.PlexusBindingModule.configure(PlexusBindingModule.java:65)
~[org.eclipse.sisu.plexus-0.0.0.M2a.jar:?]
	at
com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:259)
~[guice-4.0-beta4-no_aop.jar:?]
	at com.google.inject.spi.Elements.getElements(Elements.java:109)
~[guice-4.0-beta4-no_aop.jar:?]
	at com.google.inject.spi.Elements.getElements(Elements.java:86)
~[guice-4.0-beta4-no_aop.jar:?]
	at org.eclipse.sisu.binders.WireModule.configure(WireModule.java:60)
~[org.eclipse.sisu.inject-0.0.0.M2a.jar:?]
	at
com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:259)
~[guice-4.0-beta4-no_aop.jar:?]
	at com.google.inject.spi.Elements.getElements(Elements.java:109)
~[guice-4.0-beta4-no_aop.jar:?]
	at
com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:136)
~[guice-4.0-beta4-no_aop.jar:?]
	at
com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
~[guice-4.0-beta4-no_aop.jar:?]
	at com.google.inject.Guice.createInjector(Guice.java:96)
~[guice-4.0-beta4-no_aop.jar:?]
	at com.google.inject.Guice.createInjector(Guice.java:73)
~[guice-4.0-beta4-no_aop.jar:?]
	at com.google.inject.Guice.createInjector(Guice.java:62)
~[guice-4.0-beta4-no_aop.jar:?]
	at
org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:476)
~[org.eclipse.sisu.plexus-0.0.0.M2a.jar:?]
	at
org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:202)
~[org.eclipse.sisu.plexus-0.0.0.M2a.jar:?]
	at
org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:166)
~[org.eclipse.sisu.plexus-0.0.0.M2a.jar:?]
	at
org.apache.archiva.common.plexusbridge.PlexusSisuBridge.initialize(PlexusSisuBridge.java:103)
~[classes/:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.7.0_80]
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
~[?:1.7.0_80]
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.7.0_80]
	at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_80]
	at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1558)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1127)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1051)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:949)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
"



--
View this message in context: http://archiva.996284.n3.nabble.com/ES-Metadata-Storage-of-Archiva-tp16711.html
Sent from the Developer mailing list archive at Nabble.com.

Mime
View raw message