Thursday 17 May 2012

No unique bean of type [javax.persistence.EntityManagerFactory] is defined: expected single bean but found 0

If you come across the error
No unique bean of type [javax.persistence.EntityManagerFactory] is defined: expected single bean but found 0
while using rest web services add the configuration
<import resource="classpath:upgrade-downgrade-business-context.xml"/>

to your servlet.xml file

hope this helps, it worked for me

No comments:

Post a Comment