spring: Why am I getting ClassNotFoundException: org.springframework.expression.ExpressionParser? -
spring: Why am I getting ClassNotFoundException: org.springframework.expression.ExpressionParser? -
the class org.springframework.expression.expressionparser in spring-expression beingness included, shown below. why getting error when initializing spring context:
exception in thread "main" java.lang.noclassdeffounderror: org/springframework/expression/expressionparser @ org.springframework.context.support.abstractapplicationcontext.preparebeanfactory(abstractapplicationcontext.java:556) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:457) @ org.springframework.context.support.classpathxmlapplicationcontext.<init>(classpathxmlapplicationcontext.java:139) @ org.springframework.context.support.classpathxmlapplicationcontext.<init>(classpathxmlapplicationcontext.java:83) @ com.cgi.tapestry.dbtest.jdbctest.main(jdbctest.java:22) caused by: java.lang.classnotfoundexception: org.springframework.expression.expressionparser
my pom.xml:
<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>com.cgi.test.tr</groupid> <artifactid>dbtest</artifactid> <version>0.1</version> <dependencies> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-core</artifactid> <version>4.0.4.release</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-expression</artifactid> <version>4.0.4.release</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-beans</artifactid> <version>4.0.4.release</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-aop</artifactid> <version>4.0.4.release</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-context</artifactid> <version>4.0.4.release</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-context-support</artifactid> <version>4.0.4.release</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-tx</artifactid> <version>4.0.4.release</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-jdbc</artifactid> <version>4.0.4.release</version> </dependency> </dependencies> <build> <sourcedirectory>src</sourcedirectory> <plugins> <plugin> <artifactid>maven-compiler-plugin</artifactid> <version>3.1</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> </plugins> </build>
i guess maven repo somehow got messed up. noticed had 2 "springlike" directories under org:
springframework springexpression
i wiped them out , solved problem. also, springframework got regenerated.
spring
Comments
Post a Comment