Run maven dependency tree command and you can easily understand the cause of dependency conflict if not you can send your command line output and we can help you.
21 Eylül 2013 Cumartesi tarihinde Erick Erickson <erickerick...@gmail.com> adlı kullanıcı şöyle yazdı: > bq: Caused by: java.lang.NoSuchMethodError: > > This usually means that you have a mixture of old and new jars around > and have compiled against one and are finding the other one in your > classpath. > > Best, > Erick > > On Fri, Sep 20, 2013 at 9:37 AM, JMill <apprentice...@googlemail.com> wrote: >> What is the cause of this Stactrace? >> >> Working with the following solr maven dependancies >> >> <solr-core-version>4.4.0</ >> solr-core-version> >> <spring-data-solr-version>1.0.0.RC1</spring-data-solr-version> >> >> Stacktrace >> >> SEVERE: Exception sending context initialized event to listener instance of >> class org.springframework.web.context.ContextLoaderListener >> org.springframework.beans.factory.BeanCreationException: Error creating >> bean with name 'solrServerFactoryBean' defined in class path resource >> [com/project/core/config/EmbeddedSolrContext.class]: Invocation of init >> method failed; nested exception is java.lang.NoSuchMethodError: >> org.apache.solr.core.CoreContainer.<init>(Ljava/lang/String;Ljava/io/File;)V >> at >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482) >> at >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) >> at >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) >> 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:194) >> at >> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608) >> at >> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932) >> at >> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) >> at >> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389) >> at >> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294) >> at >> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) >> at >> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887) >> at >> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381) >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) >> at >> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) >> at >> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) >> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) >> at java.util.concurrent.FutureTask.run(FutureTask.java:166) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> at java.lang.Thread.run(Thread.java:722) >> Caused by: java.lang.NoSuchMethodError: >> org.apache.solr.core.CoreContainer.<init>(Ljava/lang/String;Ljava/io/File;)V >> at >> org.springframework.data.solr.server.support.EmbeddedSolrServerFactory.createPathConfiguredSolrServer(EmbeddedSolrServerFactory.java:9