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 the Author

author image
mkyong
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

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
mol Recent comment authors
newest oldest most voted
mol
Guest
mol

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