NoSuchMethodError: org.springframework.expression.spel. SpelParserConfiguration




Asked on January 02, 2015
Hi All, In my spring application, I am getting below exception. Need help.

java.lang.NoSuchMethodError: org.springframework.expression.spel.SpelParserConfiguration.<init>(Lorg/springframework/expression/spel/SpelCompilerMode;Ljava/lang/ClassLoader;)V
at org.springframework.context.expression.StandardBeanExpressionResolver.<init>(StandardBeanExpressionResolver.java:98)
at org.springframework.context.support.AbstractApplicationContext.prepareBeanFactory(AbstractApplicationContext.java:553)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:455)



Replied on January 03, 2015
I also faced the same error.
My scenario was that I was using spring boot which was also adding embed tomcat boot jar dependency in war.
Those JARs are

tomcat-embed-core-8.0.15.jar
tomcat-embed-el-8.0.15.jar
tomcat-embed-logging-juli-8.0.15.jar
tomcat-embed-websocket-8.0.15.jar


When I run my application in tomcat 8, no error but when I run in tomcat 7, got the error as you have mentioned.
To run in tomcat 7, I deleted all the jar from Myapp/WEB-INF/lib
and working fine.



Write Answer











©2024 concretepage.com | Privacy Policy | Contact Us