This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Bean Creation Exception with Spring OXM and JAXB2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Bean Creation Exception with Spring OXM and JAXB2" Watch "Bean Creation Exception with Spring OXM and JAXB2" New topic
Author

Bean Creation Exception with Spring OXM and JAXB2

Lucky J Verma
Ranch Hand

Joined: Apr 11, 2007
Posts: 278
Hi all
This is my first experience with Spring OXM and JAXB 2. (Jdk 5, Tomcat 6) Now i have been trying for few hours to make it work but its not at all .
I keep getting 'Bean Creation Exception' with jaxb2Marshaller Bean .
Someone please help me what is going on.
1. I have spring-oxm-3.0, jaxb-api 2.2 ,jaxb-impl 2.2 api and tools.jar (some forums suggested) added.
2. Annotated Class -Person ( to persist) and Marshaller class OxMapper
3. Now in applicationcontext.xml - i added namespace on top and





Error i get is ---------



I tried so many variations like creation of marshaller bean using <bean> tag. But nothing helps.
Please somebody help me.
Atul Kotwale
Greenhorn

Joined: Dec 22, 2011
Posts: 17
your configuration looks fine to me but in log you are getting class not found exception. It seems that some jars are missing. I would suggest to use maven for building project.
Lucky J Verma
Ranch Hand

Joined: Apr 11, 2007
Posts: 278
Hi

Just another question -
Could it e my bean class /entity class wrongly annotated leading to same BeanCreationException.
My entity is
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

I usually annotate the getters not the setters, but like was already said that is not your problem. You are missing dependencies on the classpath. You have a ClassNotFound exception.


[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Bean Creation Exception with Spring OXM and JAXB2
 
Similar Threads
The prefix "oxm" for element "oxm:jaxb2-marshaller" is not bound
Error: Error creating bean with name 'dataSource'
help with Jboss datasource lookup with springs
Can Any one please help me in Spring MVC with Hibernate am getting this exception
Bean Initialization fails... Why?