JBoss 7.00没有在使用Netbeans 8.2的macOS Sierra中启动ojdbc。

时间:2019-01-30 14:08:30

标签: java macos maven jboss netbeans-8.2

我已安装jboss-eap-7.0.0-installer.jar并在Netbeans 8.2 Independent OS中使用Windows 10执行运行,效果很好。在我的工作中!

现在,以同样的方式,我家中没有Windows,否则macOS Sierra 10.12我使用相同的jboss-eap-7.0.0-installer.jar和相同的Netbeans 8.2 Independent OS

我显然添加了服务。

但是没有开始(或使用ojdbc6)!

08:57:47,238 ERROR [org.jboss.as.controller.management-operation] 
(ServerService Thread Pool -- 36) WFLYCTL0013: Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("jdbc-driver" => "oracle")
]) - failure description: "WFLYJCA0041: Failed to load module for driver 
[com.oracle.ojdbc6]"

conxtex之前的错误是

09:12:18,183 INFO  [org.jboss.as.security] (MSC service thread 1-3) WFLYSEC0001: Current PicketBox version=4.9.6.Final-redhat-1
09:12:18,213 INFO  [org.jboss.as.connector] (MSC service thread 1-6) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.3.3.Final-redhat-1)
09:12:18,212 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 36) WFLYCTL0013: Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("jdbc-driver" => "oracle")
]) - failure description: "WFLYJCA0041: Failed to load module for driver [com.oracle.ojdbc6]"
09:12:18,321 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0003: Undertow 1.3.21.Final-redhat-1 starting

还有另外一条错误消息。

08:58:38,806 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0059: Class Path entry jaxb-api.jar in /Users/joseluisbz/EAP-7.0.0/standalone/deployments/Adagestion.war/WEB-INF/lib/jaxb-xjc-2.2.6.jar  does not point to a valid jar for a Class-Path reference.
08:58:38,807 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0059: Class Path entry jaxb-impl.jar in /Users/joseluisbz/EAP-7.0.0/standalone/deployments/Adagestion.war/WEB-INF/lib/jaxb-xjc-2.2.6.jar  does not point to a valid jar for a Class-Path reference.
08:58:42,434 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.module.service."deployment.Adagestion.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.Adagestion.war".main: WFLYSRV0179: Failed to load module: deployment.Adagestion.war:main
    at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:91)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.jboss.modules.ModuleNotFoundException: org.mapstruct:main
    at org.jboss.modules.Module.addPaths(Module.java:1092)
    at org.jboss.modules.Module.link(Module.java:1448)
    at org.jboss.modules.Module.relinkIfNecessary(Module.java:1476)
    at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:225)
    at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:68)
    ... 5 more

我在哪里可以找到此问题并解决?

编辑

我把这条路:

/Users/joseluisbz/EAP-7.0.0/modules/com/oracle/ojdbc6/main/module.xml

此内容

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:Wildfly:module:1.0" name="com.oracle.ojdbc6">
    <resources>
        <resource-root path="/Users/joseluisbz/.m2/repository/com/oracle/ojdbc6/11.2.0.4/  "/>
    </resources>
    <dependencies>
        <module name="javax.api"/>
        <module name="javax.resource.api"/>
        <module name="javax.transaction.api"/>
   </dependencies>
</module>

因为我在这个路径中有与罐子相关的

/Users/joseluisbz/.m2/repository/com/oracle/ojdbc6/11.2.0.4/ojdbc6-11.2.0.4.jar

1 个答案:

答案 0 :(得分:0)

我按照答案https://stackoverflow.com/a/51945667/811293解决了这个问题:

MacBook-Air:bin joseluisbz$ /Users/joseluisbz/EAP-7.0.0/bin/jboss-cli.sh 
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] module add --name=com.oracle.ojdbc6 --resources=/Users/joseluisbz/.m2/repository/com/oracle/ojdbc6/11.2.0.4/ojdbc6-11.2.0.4.jar --dependencies=javax.api,javax.resource.api,javax.transaction.api 
[disconnected /] connect
[standalone@localhost:9990 /]

MacBook-Air:bin joseluisbz$

这将产生此文件

enter image description here

文件module.xml中的内容

<resources>
    <resource-root path="ojdbc6-11.2.0.4.jar"/>
</resources>

<dependencies>
    <module name="javax.api"/>
    <module name="javax.resource.api"/>
    <module name="javax.transaction.api"/>
</dependencies>