solr EmbeddedSolrServer 使用问题!~~~~~

warmpoty 2010-05-26
使用的solr1.4,因为是嵌入到本机,所以使用的EmbeddedSolrServer,用下面的方式初始化

#  System.setProperty("solr.solr.home", "solr_home"); 
#   CoreContainer.Initializer initializer = new CoreContainer.Initializer(); 
#   CoreContainer coreContainer = initializer.initialize(); 
#   EmbeddedSolrServer server = new EmbeddedSolrServer(coreContainer, "");   

但执行查询时报错
org.apache.solr.common.SolrException log
SEVERE: Exception during parsing file: solrconfig.xml:javax.xml.parsers.ParserConfigurationException: 未识别出特征“http://apache.org/xml/features/xinclude”。
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
at org.apache.solr.core.Config.<init>(Config.java:110)
at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:130)
at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:134)
没找到原因呢,不知道大家有没有遇到相同情况的,求教~~
warmpoty 2010-05-26
工程里有个xerces jar 包,移除后没事了,不过怕别的地方引用这个jar包,想找个最新的替换试试,我现在用这个是xerces 2.6.2,大家知道最新的是什么版本,在哪里下载么?
warmpoty 2010-05-26
换了个2.9.1,http://xml.apache.org/mirrors.cgi#source

解决了
Global site tag (gtag.js) - Google Analytics