[jira] [Commented] (SOLR-6158) Solr looks up configSets in the wrong directory

2014-06-11 Thread Simon Endele (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14027497#comment-14027497
 ] 

Simon Endele commented on SOLR-6158:


No problem. Thanks a lot for the quick response and the fix!

 Solr looks up configSets in the wrong directory
 ---

 Key: SOLR-6158
 URL: https://issues.apache.org/jira/browse/SOLR-6158
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.8, 4.8.1
Reporter: Simon Endele
Assignee: Alan Woodward
 Attachments: SOLR-6158.patch


 I tried the small tutorial on http://heliosearch.org/solr-4-8-features/ to 
 create Named Config Sets based on the Solr example shipped with Solr 4.8.1 
 (like it's done in the tutorial, same problem with 4.8.0).
 Creating a new core with a configSet seems to work (directory 'books' and 
 'books/core.properties' are created correctly).
 But loading the new core does not work:
 {code:none}67446 [qtp25155085-11] INFO  
 org.apache.solr.handler.admin.CoreAdminHandler  core create command 
 configSet=genericname=booksaction=CREATE
 67452 [qtp25155085-11] ERROR org.apache.solr.core.CoreContainer  Unable to 
 create core: books
 org.apache.solr.common.SolrException: Could not load configuration from 
 directory C:\dev\solr-4.8.1\example\configsets\generic
 at 
 org.apache.solr.core.ConfigSetService$Default.locateInstanceDir(ConfigSetService.java:145)
 at 
 org.apache.solr.core.ConfigSetService$Default.createCoreResourceLoader(ConfigSetService.java:130)
 at 
 org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:58)
 at org.apache.solr.core.CoreContainer.create(CoreContainer.java:554)
 ...
 {code}
 It seems like Solr looks up the config sets in the wrong directory:
 C:\dev\solr-4.8.1\example\configsets\generic (in the log above) instead of
 C:\dev\solr-4.8.1\example\solr\configsets\generic (like stated in the 
 tutorial and the documentation on 
 https://cwiki.apache.org/confluence/display/solr/Config+Sets)
 Moving the configsets directory one level up (into 'example') will work.
 But as of the documentation (and the tutorial) it should be located in the 
 solr home directory.
 In case I'm completely wrong and everythings works as expected, how can the 
 configsets directory be configured?
 The documentation on 
 https://cwiki.apache.org/confluence/display/solr/Config+Sets mentions a 
 configurable configset base directory, but I can't find any information on 
 the web.
 Another thing: If it would work as I expect, the references lib 
 dir=../../../contrib/extraction/lib regex=.*\.jar / etc. in 
 solr-4.8.1/example/solr/configsets/generic/conf/solrconfig.xml should get one 
 more ../ added, I guess (missing in the tutorial).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6158) Solr looks up configSets in the wrong directory

2014-06-11 Thread Simon Endele (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14027518#comment-14027518
 ] 

Simon Endele commented on SOLR-6158:


For all who may stumble upon this: Your solr.xml should look like this (for the 
example project):
{code:xml}
solr
  str name=configSetBaseDir${configSetBaseDir:solr/configsets}/str
  ...
/solr
{code}

 Solr looks up configSets in the wrong directory
 ---

 Key: SOLR-6158
 URL: https://issues.apache.org/jira/browse/SOLR-6158
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.8, 4.8.1
Reporter: Simon Endele
Assignee: Alan Woodward
 Attachments: SOLR-6158.patch


 I tried the small tutorial on http://heliosearch.org/solr-4-8-features/ to 
 create Named Config Sets based on the Solr example shipped with Solr 4.8.1 
 (like it's done in the tutorial, same problem with 4.8.0).
 Creating a new core with a configSet seems to work (directory 'books' and 
 'books/core.properties' are created correctly).
 But loading the new core does not work:
 {code:none}67446 [qtp25155085-11] INFO  
 org.apache.solr.handler.admin.CoreAdminHandler  core create command 
 configSet=genericname=booksaction=CREATE
 67452 [qtp25155085-11] ERROR org.apache.solr.core.CoreContainer  Unable to 
 create core: books
 org.apache.solr.common.SolrException: Could not load configuration from 
 directory C:\dev\solr-4.8.1\example\configsets\generic
 at 
 org.apache.solr.core.ConfigSetService$Default.locateInstanceDir(ConfigSetService.java:145)
 at 
 org.apache.solr.core.ConfigSetService$Default.createCoreResourceLoader(ConfigSetService.java:130)
 at 
 org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:58)
 at org.apache.solr.core.CoreContainer.create(CoreContainer.java:554)
 ...
 {code}
 It seems like Solr looks up the config sets in the wrong directory:
 C:\dev\solr-4.8.1\example\configsets\generic (in the log above) instead of
 C:\dev\solr-4.8.1\example\solr\configsets\generic (like stated in the 
 tutorial and the documentation on 
 https://cwiki.apache.org/confluence/display/solr/Config+Sets)
 Moving the configsets directory one level up (into 'example') will work.
 But as of the documentation (and the tutorial) it should be located in the 
 solr home directory.
 In case I'm completely wrong and everythings works as expected, how can the 
 configsets directory be configured?
 The documentation on 
 https://cwiki.apache.org/confluence/display/solr/Config+Sets mentions a 
 configurable configset base directory, but I can't find any information on 
 the web.
 Another thing: If it would work as I expect, the references lib 
 dir=../../../contrib/extraction/lib regex=.*\.jar / etc. in 
 solr-4.8.1/example/solr/configsets/generic/conf/solrconfig.xml should get one 
 more ../ added, I guess (missing in the tutorial).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6158) Solr looks up configSets in the wrong directory

2014-06-10 Thread Alan Woodward (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14026776#comment-14026776
 ] 

Alan Woodward commented on SOLR-6158:
-

Ah, looks like if the configSetBaseDir isn't specified it defaults to 
```configsets``` underneath the CWD, rather than under solr home.  Should be an 
easy fix.

As a workaround, you can set ```configSetBaseDir``` in solr.xml, see 
https://cwiki.apache.org/confluence/display/solr/Format+of+solr.xml.

 Solr looks up configSets in the wrong directory
 ---

 Key: SOLR-6158
 URL: https://issues.apache.org/jira/browse/SOLR-6158
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.8, 4.8.1
Reporter: Simon Endele
Assignee: Alan Woodward

 I tried the small tutorial on http://heliosearch.org/solr-4-8-features/ to 
 create Named Config Sets based on the Solr example shipped with Solr 4.8.1 
 (like it's done in the tutorial, same problem with 4.8.0).
 Creating a new core with a configSet seems to work (directory 'books' and 
 'books/core.properties' are created correctly).
 But loading the new core does not work:
 {code:none}67446 [qtp25155085-11] INFO  
 org.apache.solr.handler.admin.CoreAdminHandler  core create command 
 configSet=genericname=booksaction=CREATE
 67452 [qtp25155085-11] ERROR org.apache.solr.core.CoreContainer  Unable to 
 create core: books
 org.apache.solr.common.SolrException: Could not load configuration from 
 directory C:\dev\solr-4.8.1\example\configsets\generic
 at 
 org.apache.solr.core.ConfigSetService$Default.locateInstanceDir(ConfigSetService.java:145)
 at 
 org.apache.solr.core.ConfigSetService$Default.createCoreResourceLoader(ConfigSetService.java:130)
 at 
 org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:58)
 at org.apache.solr.core.CoreContainer.create(CoreContainer.java:554)
 ...
 {code}
 It seems like Solr looks up the config sets in the wrong directory:
 C:\dev\solr-4.8.1\example\configsets\generic (in the log above) instead of
 C:\dev\solr-4.8.1\example\solr\configsets\generic (like stated in the 
 tutorial and the documentation on 
 https://cwiki.apache.org/confluence/display/solr/Config+Sets)
 Moving the configsets directory one level up (into 'example') will work.
 But as of the documentation (and the tutorial) it should be located in the 
 solr home directory.
 In case I'm completely wrong and everythings works as expected, how can the 
 configsets directory be configured?
 The documentation on 
 https://cwiki.apache.org/confluence/display/solr/Config+Sets mentions a 
 configurable configset base directory, but I can't find any information on 
 the web.
 Another thing: If it would work as I expect, the references lib 
 dir=../../../contrib/extraction/lib regex=.*\.jar / etc. in 
 solr-4.8.1/example/solr/configsets/generic/conf/solrconfig.xml should get one 
 more ../ added, I guess (missing in the tutorial).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6158) Solr looks up configSets in the wrong directory

2014-06-10 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14026898#comment-14026898
 ] 

ASF subversion and git services commented on SOLR-6158:
---

Commit 1601758 from [~romseygeek] in branch 'dev/trunk'
[ https://svn.apache.org/r1601758 ]

SOLR-6158: Fix configSetBaseDir path resolution

 Solr looks up configSets in the wrong directory
 ---

 Key: SOLR-6158
 URL: https://issues.apache.org/jira/browse/SOLR-6158
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.8, 4.8.1
Reporter: Simon Endele
Assignee: Alan Woodward
 Attachments: SOLR-6158.patch


 I tried the small tutorial on http://heliosearch.org/solr-4-8-features/ to 
 create Named Config Sets based on the Solr example shipped with Solr 4.8.1 
 (like it's done in the tutorial, same problem with 4.8.0).
 Creating a new core with a configSet seems to work (directory 'books' and 
 'books/core.properties' are created correctly).
 But loading the new core does not work:
 {code:none}67446 [qtp25155085-11] INFO  
 org.apache.solr.handler.admin.CoreAdminHandler  core create command 
 configSet=genericname=booksaction=CREATE
 67452 [qtp25155085-11] ERROR org.apache.solr.core.CoreContainer  Unable to 
 create core: books
 org.apache.solr.common.SolrException: Could not load configuration from 
 directory C:\dev\solr-4.8.1\example\configsets\generic
 at 
 org.apache.solr.core.ConfigSetService$Default.locateInstanceDir(ConfigSetService.java:145)
 at 
 org.apache.solr.core.ConfigSetService$Default.createCoreResourceLoader(ConfigSetService.java:130)
 at 
 org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:58)
 at org.apache.solr.core.CoreContainer.create(CoreContainer.java:554)
 ...
 {code}
 It seems like Solr looks up the config sets in the wrong directory:
 C:\dev\solr-4.8.1\example\configsets\generic (in the log above) instead of
 C:\dev\solr-4.8.1\example\solr\configsets\generic (like stated in the 
 tutorial and the documentation on 
 https://cwiki.apache.org/confluence/display/solr/Config+Sets)
 Moving the configsets directory one level up (into 'example') will work.
 But as of the documentation (and the tutorial) it should be located in the 
 solr home directory.
 In case I'm completely wrong and everythings works as expected, how can the 
 configsets directory be configured?
 The documentation on 
 https://cwiki.apache.org/confluence/display/solr/Config+Sets mentions a 
 configurable configset base directory, but I can't find any information on 
 the web.
 Another thing: If it would work as I expect, the references lib 
 dir=../../../contrib/extraction/lib regex=.*\.jar / etc. in 
 solr-4.8.1/example/solr/configsets/generic/conf/solrconfig.xml should get one 
 more ../ added, I guess (missing in the tutorial).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6158) Solr looks up configSets in the wrong directory

2014-06-10 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14026899#comment-14026899
 ] 

ASF subversion and git services commented on SOLR-6158:
---

Commit 1601759 from [~romseygeek] in branch 'dev/branches/branch_4x'
[ https://svn.apache.org/r1601759 ]

SOLR-6158: Fix configSetBaseDir path resolution

 Solr looks up configSets in the wrong directory
 ---

 Key: SOLR-6158
 URL: https://issues.apache.org/jira/browse/SOLR-6158
 Project: Solr
  Issue Type: Bug
Affects Versions: 4.8, 4.8.1
Reporter: Simon Endele
Assignee: Alan Woodward
 Attachments: SOLR-6158.patch


 I tried the small tutorial on http://heliosearch.org/solr-4-8-features/ to 
 create Named Config Sets based on the Solr example shipped with Solr 4.8.1 
 (like it's done in the tutorial, same problem with 4.8.0).
 Creating a new core with a configSet seems to work (directory 'books' and 
 'books/core.properties' are created correctly).
 But loading the new core does not work:
 {code:none}67446 [qtp25155085-11] INFO  
 org.apache.solr.handler.admin.CoreAdminHandler  core create command 
 configSet=genericname=booksaction=CREATE
 67452 [qtp25155085-11] ERROR org.apache.solr.core.CoreContainer  Unable to 
 create core: books
 org.apache.solr.common.SolrException: Could not load configuration from 
 directory C:\dev\solr-4.8.1\example\configsets\generic
 at 
 org.apache.solr.core.ConfigSetService$Default.locateInstanceDir(ConfigSetService.java:145)
 at 
 org.apache.solr.core.ConfigSetService$Default.createCoreResourceLoader(ConfigSetService.java:130)
 at 
 org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:58)
 at org.apache.solr.core.CoreContainer.create(CoreContainer.java:554)
 ...
 {code}
 It seems like Solr looks up the config sets in the wrong directory:
 C:\dev\solr-4.8.1\example\configsets\generic (in the log above) instead of
 C:\dev\solr-4.8.1\example\solr\configsets\generic (like stated in the 
 tutorial and the documentation on 
 https://cwiki.apache.org/confluence/display/solr/Config+Sets)
 Moving the configsets directory one level up (into 'example') will work.
 But as of the documentation (and the tutorial) it should be located in the 
 solr home directory.
 In case I'm completely wrong and everythings works as expected, how can the 
 configsets directory be configured?
 The documentation on 
 https://cwiki.apache.org/confluence/display/solr/Config+Sets mentions a 
 configurable configset base directory, but I can't find any information on 
 the web.
 Another thing: If it would work as I expect, the references lib 
 dir=../../../contrib/extraction/lib regex=.*\.jar / etc. in 
 solr-4.8.1/example/solr/configsets/generic/conf/solrconfig.xml should get one 
 more ../ added, I guess (missing in the tutorial).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org