Could not initialize class org.apache.xpath...

■ Phenomenon
Eclipse/IDEA Tomcat cannot be started

[2018/04/26 14:42:24.893][RMI TCP Connection(3)-127.0.0.1] WARN  o.s.b.f.s.DefaultListableBeanFactory - Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'QSW0102Mapper' defined in file [D:\HR\TTAP\Quotation\svnHR\trunk\Quotation_src\01 develop\quotation-web\target\quotation\WEB-INF\classes\com\quotation\web\workflow\mapper\QSW0102Mapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': Error creating bean with name 'sqlSessionFactory' defined in URL [file:/D:/HR/TTAP/Quotation/svnHR/trunk/Quotation_src/01%20develop/quotation-web/target/quotation/WEB-INF/classes/spring/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.StackOverflowError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in URL [file:/D:/HR/TTAP/Quotation/svnHR/trunk/Quotation_src/01%20develop/quotation-web/target/quotation/WEB-INF/classes/spring/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.StackOverflowError
[2018/04/26 14:42:24.943][RMI TCP Connection(3)-127.0.0.1] WARN  o.s.b.f.s.DefaultListableBeanFactory - Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'QSW0102Mapper' defined in file [D:\HR\TTAP\Quotation\svnHR\trunk\Quotation_src\01 develop\quotation-web\target\quotation\WEB-INF\classes\com\quotation\web\workflow\mapper\QSW0102Mapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': Error creating bean with name 'sqlSessionFactory' defined in URL [file:/D:/HR/TTAP/Quotation/svnHR/trunk/Quotation_src/01%20develop/quotation-web/target/quotation/WEB-INF/classes/spring/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.apache.xpath.compiler.FunctionTable; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in URL [file:/D:/HR/TTAP/Quotation/svnHR/trunk/Quotation_src/01%20develop/quotation-web/target/quotation/WEB-INF/classes/spring/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.apache.xpath.compiler.FunctionTable

■Cause
Multiple versions of JDK are installed, and the environment variable JAVA_HOME, the JDK version specified by the project, and the JDK version specified by Tomcat are not unified.
Could not initialize class org.apache.xpath...

Could not initialize class org.apache.xpath...

Could not initialize class org.apache.xpath...

Could not initialize class org.apache.xpath...

Could not initialize class org.apache.xpath...

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324887538&siteId=291194637