This content has been marked as final.
Show 4 replies
-
1. Re: JBoss 4.2.0_GA + Spring 2.0.5 integration
alesj Oct 1, 2007 2:15 AM (in response to igeek)"iGeek" wrote:
java.lang.NoClassDefFoundError: org/springframework/beans/factory/xml/DefaultBeanDefinitionDocumentReader
It can be a Spring library incompatibility.
Current SpringDeployer is written against the first 2.0.GA Spring version.
I'll have a look how this plays against 2.0.5 and let you know. -
2. Re: JBoss 4.2.0_GA + Spring 2.0.5 integration
alesj Oct 1, 2007 10:14 AM (in response to igeek)"iGeek" wrote:
Hi,
java.lang.NoClassDefFoundError: org/springframework/beans/factory/xml/DefaultBeanDefinitionDocumentReader
This class should be there - checked against 2.0.6 and 2.1.x API docs:
http://static.springframework.org/spring/docs/2.0.x/api/org/springframework/beans/factory/xml/DefaultBeanDefinitionDocumentReader.html
http://static.springframework.org/spring/docs/2.1.x/api/org/springframework/beans/factory/xml/DefaultBeanDefinitionDocumentReader.html
So I guess it must be your classloading problem.
Where do you keep Spring lib jars? -
3. Re: JBoss 4.2.0_GA + Spring 2.0.5 integration
igeek Oct 1, 2007 8:21 PM (in response to igeek)I tried putting them in the jboss-spring-jdk5.deployer and in the sever/default/lib directories (either one and both).
I'm now resorting to not use Spring's DI part and use EJB3's @Resource annotation, which seems to be working.
Thanks anyway -
4. Re: JBoss 4.2.0_GA + Spring 2.0.5 integration
alesj Oct 2, 2007 4:26 AM (in response to igeek)"iGeek" wrote:
I tried putting them in the jboss-spring-jdk5.deployer and in the sever/default/lib directories (either one and both).
Just put all the required Spring libs in the sever/default/lib.
That should definitely work.
No need for them then to be in jboss-spring-jdk5.deployer.