Missing required persistence.xml for @PersistenceContext ref "em" to unit ""

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Missing required persistence.xml for @PersistenceContext ref "em" to unit ""

siva106
Hi All,

newbie question. I am using a stateless bean which doesn't inject any
EntityManager or has got anything to do with persistence . When I start
TomEE, I see exceptions like these

*Missing required persistence.xml for @PersistenceContext ref "em" to unit
""*

Is persistence.xml required for TomEE ? Is there a way to avoid defining it
?



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html