This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Spring: BeanCreationException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Spring: BeanCreationException" Watch "Spring: BeanCreationException" New topic
Author

Spring: BeanCreationException

Priya Babu
Greenhorn

Joined: Jul 20, 2009
Posts: 7

Hi,

I checked out an existing project from SVN into Eclipse Helios and am facing the following problem while running it on local tomcat server configured within eclipse as well as stand-alone tomcat when posted the same web application in its web apps folder.

The application uses Spring 3.0.2, JPA, Hibernate 3.0, and Struts 2.1.

Upon launching it throws the following runtime exception, please help:


Error creating bean with name 'entityManagerFactory' defined in class path resource [applicationContext.xml]:
Error creating bean with name 'dao': Injection of persistence dependencies failed;
...........
Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;



SCJP 5.0 87%
Anantha Sharma
Ranch Hand

Joined: Sep 01, 2010
Posts: 43

looks like you are not using the correct version of JPA or JPA libraries are missing from your build path...
please provide the version of JPA being used..
 
wood burning stoves
 
subject: Spring: BeanCreationException
 
Similar Threads
error in portlet
Context Initialization Failed
java.lang.NoClassDefFoundError: net/sf/hibernate/UserType on Deployment to App Server
Struts 2 tutorial errors
Migrating from glassfish to tomcat6 (jdbc jndi connection issues also)