Fixing “Could not resolve a persistence unit…” errors when PU is specified, found

后端 未结 3 1802
名媛妹妹
名媛妹妹 2021-01-18 00:15

I\'m running Glassfish 3.1-SNAPSHOT as of today (2010-11-12).

I\'m using the embedded EJBContainer.

On the classpath, as reported by the EJBContainer, I have

3条回答
  •  情深已故
    2021-01-18 00:48

    If by mistake you put @PersistenceContext(name="cx") instead of @PersistenceContext(unitName="cx") you get the same error with everything else working.

提交回复
热议问题