我和JBoss有这个奇怪的错误。这很奇怪,因为它正在寻找一些与我当前项目无关的旧项目,并且也会在eclipse中从我的工作区中删除。
当我尝试运行当前项目时,我收到此错误:
DEPLOYMENTS MISSING DEPENDENCIES: Deployment "jboss.j2ee:ear=BibliotheekEAR.ear,jar=BibliotheekEJB.jar,name=Bibliotheek,service=EJB3" is missing the following dependencies: Dependency "" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=BibliotheekEAR.ear/BibliotheekJPA.jar#BibliotheekJPA' **") Deployment "jboss.j2ee:ear=BibliotheekEAR.ear,jar=BibliotheekEJB.jar,name=Bibliotheek,service=EJB3_endpoint" is missing the following dependencies: Dependency "jboss.j2ee:ear=BibliotheekEAR.ear,jar=BibliotheekEJB.jar,name=Bibliotheek,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall") DEPLOYMENTS IN ERROR: Deployment "" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=BibliotheekEAR.ear/BibliotheekJPA.jar#BibliotheekJPA' ** Deployment "persistence.unit:unitName=BibliotheekEAR.ear/BibliotheekJPA.jar#BibliotheekJPA" is in error due to the following reason(s): org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
有什么想法吗?
我删除了所有这些项目,所以我不知道为什么要找它们......
答案 0 :(得分:0)
您似乎没有为您在应用程序中使用的数据库正确设置Hibernate数据库方言属性。尝试在persistence.xml
文件中设置数据库方言,如下所示:
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
如果你正在使用MySQL。 Here是最常用的hibernate方言列表。
答案 1 :(得分:0)