簡體   English   中英

無法啟動JBoss,缺少部署

[英]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。 是最常用的休眠方言列表。

我已經刪除了所有這些項目,所以我不知道為什么要尋找它們

從哪里刪除? 也許要仔細檢查一下,確認它們在您使用的服務器配置的deploytmp目錄下沒有剩余的痕跡。

也可以看看

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM