无法让JBoss启动,部署缺失

时间:2010-07-29 23:11:06

标签: java eclipse jboss

我和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

有什么想法吗?

我删除了所有这些项目,所以我不知道为什么要找它们......

2 个答案:

答案 0 :(得分:0)

您似乎没有为您在应用程序中使用的数据库正确设置Hibernate数据库方言属性。尝试在persistence.xml文件中设置数据库方言,如下所示:

<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>

如果你正在使用MySQL。 Here是最常用的hibernate方言列表。

答案 1 :(得分:0)

  

我删除了所有这些项目,所以我不知道为什么要找它们

从哪里删除?也许请仔细检查它们是否是您正在使用的服务器配置的部署 tmp 目录下的任何剩余痕迹。

另见