Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6A81410D04 for ; Fri, 20 Sep 2013 16:38:25 +0000 (UTC) Received: (qmail 65557 invoked by uid 500); 20 Sep 2013 16:38:21 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 65454 invoked by uid 500); 20 Sep 2013 16:38:21 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 65446 invoked by uid 99); 20 Sep 2013 16:38:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Sep 2013 16:38:21 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of apprentice321@googlemail.com designates 209.85.223.193 as permitted sender) Received: from [209.85.223.193] (HELO mail-ie0-f193.google.com) (209.85.223.193) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Sep 2013 16:38:15 +0000 Received: by mail-ie0-f193.google.com with SMTP id e14so250630iej.8 for ; Fri, 20 Sep 2013 09:37:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=bPQCGNWIbtNYkH7Rr82RomqEnzumVAX/xvlvGpuuf9w=; b=gdZGGGaS9TJ/Xik9/r42qR1Rid0b1VYqCiaTl0zEsgHHM//gbFsZj5zYwDzbLjIZi7 dD0AbFUSf77m5Nuwjhh8BQ8JuDq1raKnPhyIzhuy36BBhjKMIGdfMa9SAwT7K6g1+GzG ISmKD0Gs0kC/fXgAmS+/iDX5VMsDB7k7wYBAQ6nkZf/O0dRU7fnTjZ2gsJCoyq5DD3vb M5TcxQCKNITobDeVCt8x29X2YSHdpj8/nX3SyDKQ3y2EeCw6AAygDOxucfcJbL8s5PGx FhFTEZ8Nf7vq8GeRNvKnK68CSOEmomWwqgA4WND65Vzi4ojEnagoszxFZhhrgOxt1BYM BiXw== MIME-Version: 1.0 X-Received: by 10.50.55.65 with SMTP id q1mr3266924igp.4.1379695074077; Fri, 20 Sep 2013 09:37:54 -0700 (PDT) Received: by 10.43.90.8 with HTTP; Fri, 20 Sep 2013 09:37:54 -0700 (PDT) Date: Fri, 20 Sep 2013 17:37:54 +0100 Message-ID: Subject: Problem running EmbeddedSolr (spring data) From: JMill To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=047d7b10c807c9f3db04e6d34a9f X-Virus-Checked: Checked by ClamAV on apache.org --047d7b10c807c9f3db04e6d34a9f Content-Type: text/plain; charset=ISO-8859-1 What is the cause of this Stactrace? Working with the following solr maven dependancies 4.4.0 1.0.0.RC1 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.(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.(Ljava/lang/String;Ljava/io/File;)V at org.springframework.data.solr.server.support.EmbeddedSolrServerFactory.createPathConfiguredSolrServer(EmbeddedSolrServerFactory.java:96) at org.springframework.data.solr.server.support.EmbeddedSolrServerFactory.initSolrServer(EmbeddedSolrServerFactory.java:72) at org.springframework.data.solr.server.support.EmbeddedSolrServerFactoryBean.afterPropertiesSet(EmbeddedSolrServerFactoryBean.java:41) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1541) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479) ... 22 more //Config Class @Configuration @EnableSolrRepositories("core.solr.repository") @Profile("dev") @PropertySource("classpath:solr.properties") public class EmbeddedSolrContext { @Resource private Environment environment; @Bean public EmbeddedSolrServerFactoryBean solrServerFactoryBean() { EmbeddedSolrServerFactoryBean factory = new EmbeddedSolrServerFactoryBean(); factory.setSolrHome(environment.getRequiredProperty("solr.solr.home")); return factory; } @Bean public SolrTemplate solrTemplate() throws Exception { return new SolrTemplate(solrServerFactoryBean().getObject()); } } Solr.properties solr.server.url=http://localhost:8983/solr/ solr.solr.home=classpath*:com/project/core/solr <-- NOTE: points to an empty package inside the project --047d7b10c807c9f3db04e6d34a9f--