[英]Can't get JBoss to start, deployment missing
我在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
有任何想法嗎?
我已經刪除了所有這些項目,所以我不知道為什么要尋找它們...
似乎您沒有為在應用程序中使用的數據庫正確設置Hibernate數據庫方言屬性。 嘗試像這樣在persistence.xml
文件中設置數據庫方言:
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
如果您使用的是MySQL。 這是最常用的休眠方言列表。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.