[英]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.