SOLR-736 -- make sure CoreContainer is used to initialize core (even in deprecated case)

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@702994 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2008-10-08 21:28:53 +00:00
parent 130a2022b1
commit 01c466c0fa
1 changed files with 3 additions and 2 deletions

View File

@ -374,8 +374,9 @@ public final class SolrCore implements SolrInfoMBean {
synchronized( SolrCore.class ) {
if( instance == null ) {
try {
// sets 'instance' to the latest solr core
instance = new SolrCore( null, null, new SolrConfig(), null, null);
// sets 'instance' to the latest solr core
CoreContainer.Initializer init = new CoreContainer.Initializer();
instance = init.initialize().getCore("");
} catch(Exception xany) {
throw new SolrException( SolrException.ErrorCode.SERVER_ERROR,
"error creating core", xany );