Share on Google+Share on Google+

Deepak Kumar
BeanExpressionResolver NoClassDefFoundError
2 Answer(s)      5 years and 11 months ago
Posted in : Spring


How to solve following error:

java.lang.NoClassDefFoundError: org/springframework/beans/factory/config/BeanExpressionResolver



View Answers

June 19, 2011 at 9:18 PM

java.lang.NoClassDefFoundError is very common error yet takes some time to find the exact culprit and solution. if you are getting this then there must is a class which was present when you compile the code and got linked and now its not there when you trying to run, Its not easy to fix this problem because question which needs to be answer is why that class is not present now ? by the way you can follow some approach as suggested

January 3, 2016 at 12:45 AM

This is because of incorrect Spring-Beans JRe. If you are using Maven, go to pom.xml, remove the spring-beans and add the version related to that of spring-core and spring-context. In my case, spring-beans was 1.2.x and others are 4.2.4. So I deleted spring-beans and added spring-beans 4.2.4 and resolved.

Related Tutorials/Questions & Answers:
BeanExpressionResolver NoClassDefFoundError
BeanExpressionResolver NoClassDefFoundError  Hi, How to solve following error: java.lang.NoClassDefFoundError: org/springframework/beans/factory/config/BeanExpressionResolver Thanks
NoClassDefFoundError: Could not initialize class - Struts
NoClassDefFoundError: Could not initialize class  Could not initialize class But its giving error such like NoClassDefFoundError: Could not initialize class
ClassPath Helper
ClassNotFoundException or NoClassDefFoundError. The rules for for classloading are well documented... ClassNotFoundException or NoClassDefFoundError, but Classpath helper is able to bypass
JAVA  I got the error like NoClassDefFoundError Formdata1(my file name) as the wrong name
JAVA  I got the error like NoClassDefFoundError Formdata1(my file name) as the wrong name
Jasperreport  Hai sir, Here am getting NoClassDefFoundError error,but i already included itext.jar to my class path. JRExporter exporter = new JRPdfExporter(); ErrorDetails: run: Exception in thread "main
How to set memory used by JVM in Ant
to diagnose. For NoClassDefFoundError, the problem was fixed by setting fork
java, plz help me in doing this - Java Beginners me the error of NoClassDefFoundError
Java Spring Hibernate Struts Training spring inteview question You Spring Project is not running java lang incompatibleclasschangeerror quartz spring - Error resolved exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined The import javax.validation cannot be resolved java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence/SharedCacheMode java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence Solving java.lang.ClassNotFoundException: org.springframework.orm.hibernate4.LocalSessionFactoryBean issue What is the maven dependency for spring batch? Hibernate Session Attribute java.lang.ClassNotFoundException: org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean nested exception is java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.DriverManagerDataSource Testing spring with junit and mock testing in Spring MVC, i would like to download my Mysql database table in pdf,msword,excel formats. java.lang.NoClassDefFoundError: org/hibernate/engine/FilterDefinition error package org.springframework.scheduling.quartz does not exist jquery dependency dropdown box in spring hibernate my sql Server side validation on dynamically generated fields from more than one table on spring framework. What are the new features of Spring 4.1? Append Arguments to the URL quartz schedular in spring mvc Where to download spring framework zip file? Integrating spring 4 with hibernate 4 Learn spring Multiple files upload code using spring mvc 2.0 with xml configuration without using annotations Spring 4 features I need Spring 2.5 example. Please point me towards a good Spring transactional tutorial Could anyone point me towards some good Spring tutorials, Please? What is Spring framework? Spring and hibernate based Online Shopping project with source code How to populate collection like map with annotation in mybatis? Spring Abstraction with Redis Spring framework How to insert and retreive an image in mysql database using spring mvc framework??? CRUD operations in spring mvc 2.5 meenakshi Meenakshi how many scenarios is having to developing web based application by using spring mvc. getting voucherPin parent and child dropdown Spring 3 Spring 3 MVC Login Form Example with Database MySql What is Spring Integration? How to configure Spring using Annotation What is Spring IOC Container ? What is difference between singleton and prototype bean? What are the differences between EJB and Spring What is Spring's JdbcTemplate ?


Advertisement null