【发布时间】:2012-05-29 14:54:52
【问题描述】:
我正在使用 NetBeans IDE 7.0.1 和 Glassfish 3.0.1。
我正在使用 JPA + EJB3.0 + JSF2.0 构建一个 J2EE 应用程序,当我尝试部署我的项目时出现此错误:
Caused by: java.lang.IllegalArgumentException: No [EntityType] was found for the key class [objetmetier.Application] in the Metamodel - please verify that the [Entity] class was referenced in persistence.xml using a specific <class>objetmetier.Application</class> property or a global <exclude-unlisted-classes>false</exclude-unlisted-classes> element
对我来说,在 glassfish 服务器上部署 EJB3.0 是个问题。但我不明白,因为当我查看 glassfish 管理控制台时,它们已部署在服务器中。
【问题讨论】:
-
你的persistence.xml是否包含特定的类或
exclude-unlisted-classes属性? -
是的,马特。 persistence.xml 没问题,因为我尝试了升级 netbeans 的解决方案,现在它正在工作......
标签: netbeans glassfish ejb-3.0