java.lang.ClassNotFoundException: org/apache/xerces/jaxp/DocumentBuilderFactoryImpl

后端 未结 1 1754
独厮守ぢ
独厮守ぢ 2021-01-24 12:07

I am starting a java and tomcat based application. I am getting the following error.

Dec 08, 2015 12:04:00 PM org.apache.catalina.startup.SetAllPropertiesRule be         


        
相关标签:
1条回答
  • 2021-01-24 12:50

    Got this, appears it was caused by the use of a "java agent" in the command that runs catalina -javaagent=... weird. Gave us

    Caused by: java.lang.ClassNotFoundException: org/apache/xerces/jaxp/DocumentBuilderFactoryImpl
    

    Also sometimes gave us this:

    Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.ClassNotFoundException: org.apache.logging.log4j.jcl.LogFactoryImpl (Caused by java.lang.ClassNotFoundException: org.apache.logging.log4j.jcl.LogFactoryImpl)
        at org.apache.commons.logging.LogFactory.createFactory(LogFactory.java:1276)
        at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:1065)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:1062)
        at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:497)
        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
        at org.apache.struts.validator.DynaValidatorForm.<clinit>(DynaValidatorForm.java:97)
        ... 31 more
    Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.jcl.LogFactoryImpl
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)
        at org.apache.commons.logging.LogFactory.createFactory(LogFactory.java:1131)
        ... 37 more
    

    Fix: temporarily remove java agent parameter, then started up well. Possible fix: make it so it can log to its log file (permissions)?

    0 讨论(0)
提交回复
热议问题