Thursday, February 3, 2011

java.lang.IllegalStateException: EMF has not been initialized yet!

have you remembered to setup your JTA Datasource in the persistence.xml ? Remember to provide the JNDI name for the DS, not the logical name.

Is it pointing to a valid DS in WebLogic?
Probably the EntityManagerFactory didn't start because of invalid DS. Check the logs.

Thanks Dimitri for pointing this out :o)

No comments: