Main Tutorials

java.lang.ClassNotFoundException: org.springframework.beans.factory.support.ReaderContext

Problem

Integrating jax-ws with Spring, using xbean-spring-2.8.jar + Spring-2.5.6.jar. While server is starting up, it hits


java.lang.ClassNotFoundException: org.springframework.beans.factory.support.ReaderContext

Solution

The “org.springframework.beans.factory.support.ReaderContext” is no longer exist in Spring-2.5.x, it’s only exist in the old Spring version < 2.5.x. The solution is upgrade your xbean-spring to latest version , for example, v3.7.

You can get xbean-spring.jar from Maven central repository here or declare xbean’s dependency in your pom.xml file.

File : pom.xml


<dependency>
	<artifactId>xbean</artifactId>
	<groupId>org.apache.xbean</groupId>
	<version>3.7</version>
</dependency>

About Author

author image
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.

Comments

Subscribe
Notify of
1 Comment
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
mol
13 years ago

There is an error in pom dependency section in this post:
use xbean-spring
instead of xbean