我试图在我的Jboss Wildfly V. 10上部署我的EAR文件,但是我收到了以下错误:
" { \" WFLYCTL0180:具有丢失/不可用依赖关系的服务\" =>不确定的, \" WFLYCTL0288:由于一个或多个间接依赖项不可用,一个或多个服务无法启动。\" => { \"无法启动的服务:\" => [ \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5EJB.jar \\" .CdiValidatorFactoryService \&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5EJB.jar \\" .component.KundeLaden.JndiBindingsService \& #34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5EJB.jar \\" .component.KundeLaden.START \& #34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5EJB.jar \\" .component.KundeLaden.WeldInstantiator \& #34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5EJB.jar \\" .component.KundeLaden.WeldInterceptorBindingsService \& #34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5EJB.jar \\" .component.SucheLocal.JndiBindingsService \& #34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5EJB.jar \\" .component.SucheLocal.START \& #34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5EJB.jar \\" .component.SucheLocal.WeldInstantiator \& #34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5EJB.jar \\" .component.SucheLocal.WeldInterceptorBindingsService \& #34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5EJB.jar \\" .deploymentCompleteService \&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5EJB.jar \\" .jndiDependencyService \&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5EJB.jar \\" .moduleDeploymentRuntimeInformationStart \&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .CdiValidatorFactoryService \&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ; com.sun.faces.config.ConfigureListener \\"。开始\&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ; com.sun.faces.config.ConfigureListener \\" .WeldInstantiator \&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ; javax.faces.webapp.FacesServlet \\"。开始\&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ; javax.faces.webapp.FacesServlet \\" .WeldInstantiator \&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ; javax.faces.webapp.FacetTag \\"。开始\&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ; javax.faces.webapp.FacetTag \\" .WeldInstantiator \&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ; javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV \\"。开始\&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ; javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV \\" .WeldInstantiator \&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ; javax.servlet.jsp.jstl.tlv.ScriptFreeTLV \\"。开始\&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ; javax.servlet.jsp.jstl.tlv.ScriptFreeTLV \\" .WeldInstantiator \&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ; managed-bean.java.util.Date \\"。开始\&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ; managed-bean.java.util.Date \\" .WeldInstantiator \&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ;管理-bean.net.bootsfaces.component.ComponentUtils \\"。开始\&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ;管理-bean.net.bootsfaces.component.ComponentUtils \\" .WeldInstantiator \&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ;管理-bean.net.bootsfaces.component.radiobutton.RadioButtonInternalStateBean \\"。开始\&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ;管理-bean.net.bootsfaces.component.radiobutton.RadioButtonInternalStateBean \\" .WeldInstantiator \&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ;管理-bean.net.bootsfaces.expressions.SearchExpressionResolverBean \\"。开始\&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ;管理-bean.net.bootsfaces.expressions.SearchExpressionResolverBean \\" .WeldInstantiator \&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ; org.jboss.weld.servlet.WeldInitialListener \\"。开始\&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ; org.jboss.weld.servlet.WeldInitialListener \\" .WeldInstantiator \&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ; org.jboss.weld.servlet.WeldTerminalListener \\"。开始\&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .component \\&#34。 ; org.jboss.weld.servlet.WeldTerminalListener \\" .WeldInstantiator \&#34 ;, \" jboss.deployment.subunit \\" auditcheck_5.ear \\" \\" auditcheck_5Web.war \\" .deploymentCompleteService \&#34 ;, \" jboss.deployment.unit \\" auditcheck_5.ear \\" .CdiValidatorFactoryService \&#34 ;, \" jboss.deployment.unit \\" auditcheck_5.ear \\" .WeldStartService \&#34 ;, \" jboss.deployment.unit \\" auditcheck_5.ear \\" .deploymentCompleteService \&#34 ;, \" jboss.naming.context.java.comp.auditcheck_5.auditcheck_5EJB.KundeLaden.env \\" de.Beans.KundeLaden \\" .EM \&#34 ;, \" jboss.naming.context.java.comp.auditcheck_5.auditcheck_5EJB.SucheLocal.env \\" de.Beans.SucheLocal \\" .EM \&#34 ;, \" \\ jboss.persistenceunit" auditcheck_5.ear / auditcheck_5EJB.jar#auditcheck_5EJB \\" \&#34 ;, \" \\ jboss.persistenceunit" auditcheck_5.ear / auditcheck_5EJB.jar#auditcheck_5EJB \\"的 FIRST_PHASE \&#34 ;, \" jboss.undertow.deployment.default-server.default主机./\ 34 ;, \" jboss.undertow.deployment.default-server.default主机./ UndertowDeploymentInfoService \&#34。 ] \"可能是原因的服务:\" => [\" jboss.jdbc-driver.mysql \"] } }"
所以在com / mysql / main的module.xml中我添加了以下几行:
<?xml version="1.0" encoding="UTF-8" ?>
<module xmlns="urn:jboss:module:1.5" name="com.mysql">
<resources>
<resource-root path="mysql-connector-java-5.1.42-bin.jar"/>
</resources>
<dependencies>
<modul name="javax.api"/>
<modul name="javax.transaction.api"/>
</dependencies>
在我的Standalone.xml中:
<driver name="mysql" module="com.mysql">
<xa-datasource-class>com.mysql.jdbc.Driver</xa-datasource-class>
</driver>
<datasource jta="true" jndi-name="java:/audit" pool-name="audit" enabled="true" use-ccm="true">
<connection-url>jdbc:mysql://localhost:3306/audit5</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<driver>mysql</driver>
<security>
<user-name>*****</user-name>
<password>*******</password>
</security>
<validation>
<valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker"/>
<background-validation>true</background-validation>
<exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLExceptionSorter"/>
</validation>
</datasource>
但每次都收到错误消息
&#34;可能是原因的服务:\&#34; =&GT; [\&#34; jboss.jdbc-driver.mysql \&#34;]
那我的错是什么?