2013-01-01 66 views
2

我正在爲solr應用程序運行Tomcat服務器。我重新啓動了服務器,並在我的catalina.out中觀察到以下錯誤。以下Tomcat錯誤的原因是什麼:

Exception configuring digester to permit java encoding names in XML files. Only IANA encoding names will be supported. 

這個錯誤是什麼意思,怎麼解決?我根本不知道Java,所以任何幫助,將不勝感激。這是CentOs上的Tomcat6。

編輯日誌文件:

Jan 1, 2013 10:14:44 a.m. org.apache.catalina.users.MemoryUserDatabase open 
WARNING: Exception configuring digester to permit java encoding names in XML files. Only IANA encoding names will be supported. 
org.xml.sax.SAXNotSupportedException: http://apache.org/xml/features/allow-java-encodings 
    at gnu.xml.stream.SAXParserFactory.setFeature(libgcj.so.10) 
at org.apache.tomcat.util.digester.Digester.setFeature(Digester.java:556) 
    at org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:391) 
    ............ 

    Jan 1, 2013 10:14:44 a.m. org.apache.catalina.core.StandardService start 
    INFO: Starting service Catalina 
    Jan 1, 2013 10:14:44 a.m. org.apache.catalina.core.StandardEngine start 
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.24 
    Jan 1, 2013 10:14:44 a.m. org.apache.catalina.startup.HostConfig deployDescriptor 
    INFO: Deploying configuration descriptor manager.xml 
    Jan 1, 2013 10:14:45 a.m. org.apache.catalina.startup.TldConfig lifecycleEvent 
    SEVERE: Error processing TLD files for context path /manager 
    java.lang.IllegalArgumentException: URI "file:./" is not hierarchical 
    at java.io.File.<init>(libgcj.so.10) 
    at org.apache.catalina.startup.TldConfig.getJarPaths(TldConfig.java:687) 
    at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:281) 

    ........... 

    Jan 1, 2013 10:14:45 a.m. org.apache.catalina.startup.HostConfig deployDescriptor 
    INFO: Deploying configuration descriptor solr.xml 
    Jan 1, 2013 10:14:45 a.m. org.apache.catalina.startup.TldConfig lifecycleEvent 
    SEVERE: Error processing TLD files for context path /solr 
    java.lang.IllegalArgumentException: URI "file:./" is not hierarchical 
    at java.io.File.<init>(libgcj.so.10) 
    at org.apache.catalina.startup.TldConfig.getJarPaths(TldConfig.java:687) 
    at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:281) 
    at org.apache.catalina.startup.TldConfig.lifecycleEvent(TldConfig.java:739) 
    at 
    ......... 
    Jan 1, 2013 10:14:45 a.m. org.apache.solr.core.SolrResourceLoader locateSolrHome 
    INFO: Using JNDI solr.home: /var/lib/tomcat6/my/solr/ 
    Jan 1, 2013 10:14:45 a.m. org.apache.solr.core.SolrResourceLoader <init> 
    INFO: new SolrResourceLoader for deduced Solr Home: '/var/lib/tomcat6/my/solr/' 
    Jan 1, 2013 10:14:45 a.m. org.apache.solr.servlet.SolrDispatchFilter init 
    INFO: SolrDispatchFilter.init() 
    Jan 1, 2013 10:14:45 a.m. org.apache.solr.core.SolrResourceLoader locateSolrHome 
    INFO: Using JNDI solr.home: /var/lib/tomcat6/my/solr/ 
    Jan 1, 2013 10:14:45 a.m. org.apache.solr.core.CoreContainer$Initializer initialize 
    INFO: looking for solr.xml: /var/lib/tomcat6/my/solr/solr.xml 
    Jan 1, 2013 10:14:45 a.m. org.apache.solr.core.CoreContainer load 
    INFO: Loading CoreContainer using Solr Home: '/var/lib/tomcat6/my/solr/' 
    Jan 1, 2013 10:14:45 a.m. org.apache.solr.core.SolrResourceLoader <init> 
    INFO: new SolrResourceLoader for directory: '/var/lib/tomcat6/my/solr/' 
    Jan 1, 2013 10:14:45 a.m. org.apache.solr.core.CoreContainer create 
    INFO: Creating SolrCore '' using instanceDir: /var/lib/tomcat6/my/solr/. 
    Jan 1, 2013 10:14:45 a.m. org.apache.solr.core.SolrResourceLoader <init> 
    INFO: new SolrResourceLoader for directory: '/var/lib/tomcat6/my/solr/./' 
    Jan 1, 2013 10:14:45 a.m. org.apache.solr.core.SolrConfig initLibs 
    INFO: Adding specified lib dirs to ClassLoader 
    Jan 1, 2013 10:14:45 a.m. org.apache.solr.common.SolrException log 
    SEVERE: Error in xpath:javax.xml.xpath.XPathExpressionException: multiple nodes in node-set 

我用這對Solr的

回答

0

試看看這裏:

http://www.coderanch.com/t/614743/Tomcat/Tomcat-CentOS-VM

我的問題是,Java安裝的catalina.sh腳本發現並不好。不知道爲什麼,因爲我沒有調查。

這是一個centos 6 tomcat6 RPM安裝。修復的方法是安裝Oracle JDK,並更改/etc/tomcat6/tomcat6.conf以使用新安裝的Oracle JDK。