On Mon, Nov 23, 2009 at 10:47 PM, Marc Sturlese <marc.sturl...@gmail.com>wrote:
> > Hey there, > I am using Solr 1.4 out of the box and am trying to create a core at > runtime > using the CREATE action. > I am getting this error when executing: > > http://localhost:8983/solr/admin/cores?action=CREATE&name=xxxxx&instanceDir=xxxxx&persist=true&config=solrconfig.xml&schema=schema.xml&dataDir=data > > Nov 23, 2009 6:18:44 PM org.apache.solr.core.SolrResourceLoader <init> > INFO: Solr home set to 'solr/xxxxx/' > Nov 23, 2009 6:18:44 PM org.apache.solr.common.SolrException log > SEVERE: org.apache.solr.common.SolrException: Error executing default > implementation of CREATE > at > > org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:250) > at > <snip> > > org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) > Caused by: java.lang.RuntimeException: Can't find resource 'solrconfig.xml' > in classpath or 'solr/xxxxx/conf/', > cwd=/home/smack/Desktop/apache-solr-1.4.0/example > at > > org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:260) > at > > org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:228) > at org.apache.solr.core.Config.<init>(Config.java:101) > at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:130) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:405) > at > > org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:245) > ... 21 more > > I don't know if I am missing something. Should I create manually de folders > and schema and solconfig files? > > The instance directory and the configuration files should exist before you can create a core. The core CREATE command just creates a Solr core instance in memory after reading the configuration from disk. -- Regards, Shalin Shekhar Mangar.