简体   繁体   English

无法启动JBoss,缺少部署

[英]Can't get JBoss to start, deployment missing

I'm having this strange error with JBoss. 我在JBoss中遇到这个奇怪的错误。 It's strange because it's looking for some old projects that aren't even related to my current project and are also deleted from my workspace in eclipse. 这很奇怪,因为它正在寻找一些甚至与我当前项目无关的旧项目,并且这些旧项目也在Eclipse中从我的工作空间中删除。

When I try to get the current project to run, I get this error: 当我尝试运行当前项目时,出现以下错误:

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

Any ideas? 有任何想法吗?

I have deleted all these projects, so I don't know why it's looking for them... 我已经删除了所有这些项目,所以我不知道为什么要寻找它们...

It seems that you haven't set the Hibernate database dialect property correctly for the database your using in your application. 似乎您没有为在应用程序中使用的数据库正确设置Hibernate数据库方言属性。 Try setting your database dialect in your persistence.xml file like this: 尝试像这样在persistence.xml文件中设置数据库方言:

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

In case you're using MySQL. 如果您使用的是MySQL。 Here is a list of the most common hibernate dialects used. 是最常用的休眠方言列表。

I have deleted all these projects, so I don't know why it's looking for them 我已经删除了所有这些项目,所以我不知道为什么要寻找它们

Deleted from where? 从哪里删除? Maybe double check that they aren't any remaining traces under the deploy or tmp directories of the server configuration you're using. 也许要仔细检查一下,确认它们在您使用的服务器配置的deploytmp目录下没有剩余的痕迹。

See also 也可以看看

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM