【问题标题】:Running Wildfly in Eclipse Mars causing an error在 Eclipse Mars 中运行 Wildfly 导致错误
【发布时间】:2017-03-04 08:04:41
【问题描述】:
23:26:11,838 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([

    ("subsystem" => "ejb3"),
    ("service" => "remote")
]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.ejb3.connector is missing 

[jboss.remoting.remotingConnectorInfoService.http-remoting-connector]"]}

23:26:11,883 INFO  [org.jboss.as.controller] (Controller Boot Thread) 

WFLYCTL0183: Service status report

WFLYCTL0184:    New missing/unsatisfied dependencies:

      service jboss.jdbc-driver.mysql-connector-java-5_1_6_jar (missing) 

dependents: [service jboss.data-source.java:/IncidentManagerDS, service 

jboss.driver-demander.java:/IncidentManagerDS] 

      service jboss.remoting.remotingConnectorInfoService.http-remoting-

connector (missing) dependents: [service jboss.ejb3.connector] 

WFLYCTL0186:   Services which failed to start:      service 

jboss.undertow.listener.default: org.jboss.msc.service.StartException in service 

jboss.undertow.listener.default: Could not start http listener

23:26:11,974 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http 

management interface listening on http://0.0.0.0:9990/management

23:26:11,974 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin

 console listening on http://0.0.0.0:9990

23:26:11,975 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly

 Full 9.0.2.Final (WildFly Core 1.0.2.Final) started (with errors) in 2555ms -

 Started 193 of 382 services (10 services failed or missing dependencies, 210 

services are lazy, passive or on-demand)

【问题讨论】:

  • 类路径中缺少一些 jars

标签: java eclipse wildfly wildfly-9


【解决方案1】:

您似乎将配置 sn-p 粘贴到您的 WILDFLY_HOME/standalone/configuration/standalone.xml 并忘记将驱动程序放入类路径中。

您可以尝试以下两个选项之一:

  1. 您可以像部署 WAR 一样将带有 MySQL 驱动程序(例如 mysql-connector-java-5.1.37.jar)的 JAR 放到 WILDFLY_HOME/standalone/deployments。

  2. 你可以在WILDFLY_HOME/modules中创建一个模块,里面有驱动,详情见https://docs.jboss.org/author/display/WFLY8/Class+Loading+in+WildFly

然后你可以参考你的数据源配置或者persistence.xml中的驱动

摘自standalone.xml,指的是部署到部署目录中的驱动程序。

    <datasource ...>
        <driver-class>com.mysql.jdbc.Driver</driver-class>
        <driver>mysql-connector-java-5.1.37.jar_com.mysql.jdbc.Driver_5_1</driver>
        ...
    </datasource>

摘自standalone.xml,将驱动程序称为模块。

    <datasources>
        <datasource ...>
            <driver>mysqljdbc</driver>
            ...
        </datasource>

        <drivers>
            <driver name="mysqljdbc" module="com.mysql.jdbc">
                 <driver-class>com.mysql.jdbc.Driver</driver-class>
            </driver>
        </drivers>
    </datasources>

不管怎样,这个问题与Eclipse Mars IDE无关,即使从命令行运行,服务器也不会启动。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-04-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多