com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [javax.persistence.EntityManager] is defined: No beans of type javax.persistence.EntityManager; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@135924c: display name [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@135924c]; startup date [Fri Jul 13 22:05:23 CEST 2012]; parent: com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@8cf25e

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 954020, 1 year ago
No unique bean of type [javax.persistence.EntityManager] is defined: No beans of type javax.persistence.EntityManager; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@135924c: display name
via nabble.com by Unknown author, 1 year ago
No unique bean of type [javax.xml.ws.WebServiceContext] is defined: No beans of type javax.xml.ws.WebServiceContext; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@77f5f74a: display name
via Stack Overflow by klarki
, 2 years ago
No unique bean of type [pl.klarki.myejbclient.MyEjb] is defined: No beans of type pl.klarki.myejbclient.MyEjb; owner=com.oracle.pitchfork.inject.PitchforkGenericApplicationContext@22c86d85: display name
via Oracle Community by user13129417, 1 year ago
*No unique bean of type [com.sample.ejb.Company] is defined*: No beans of type com.sample.ejb.Company; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@1945bd5: display name
via Stack Overflow by user1595509
, 1 year ago
No unique bean of type [javax.sql.DataSource] is defined: No beans of type javax.sql.DataSource; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@5d225fc1: display name
com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [javax.persistence.EntityManager] is defined: No beans of type javax.persistence.EntityManager; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@135924c: display name [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@135924c]; startup date [Fri Jul 13 22:05:23 CEST 2012]; parent: com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@8cf25e
at com.oracle.pitchfork.inject.Jsr250Metadata.getUniqueInstanceOfType(Jsr250Metadata.java:351)
at com.oracle.pitchfork.inject.Jsr250Metadata.resolveByType(Jsr250Metadata.java:345)
at com.oracle.pitchfork.inject.Jsr250Metadata.resolve(Jsr250Metadata.java:275)
at com.oracle.pitchfork.inject.Jsr250Metadata.applyInjections(Jsr250Metadata.java:228)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
6 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
1 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.