solr啟動時。Conte nt is not allowed in prolog問題解決
阿新 • • 發佈:2019-02-15
啟動solrtomcat時一直報一下錯誤。實在鬱悶。仔細檢查自己配置、程式都沒有問題。就是一直報這個錯誤。
解決方法:後來發現自己用UltraEdit編輯器打開了配置檔案。必須關掉才可以正常啟動。
資訊: Loaded SolrConfig: solrconfig.xml
2013-1-21 10:36:25 org.apache.solr.schema.IndexSchema readSchema資訊: Reading Solr Schema
2013-1-21 10:36:25 org.apache.solr.common.SolrException log
嚴重: Exception during parsing file: schema:org.xml.sax.SAXParseException: Conte
nt is not allowed in prolog.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
r(ErrorHandlerWrapper.java:174)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
XMLErrorReporter.java:388)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(X
MLScanner.java:1414)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Prolog
Driver.next(XMLDocumentScannerImpl.java:1039)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X
MLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X