Phenomenon
Eclipse/idea Tomcat does not start
[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.springframewo Rk.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 beans 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 ': the Error creating Bean with the name ' sqlsessionfactory ' defined in URL [file:/d:/hr/ttap/quotatio n/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 beans 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
Reason
Multiple versions of the 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 uniform.
Could not initialize class Org.apache.xpath ...