wildfly-swarm试图添加JPA分数

时间:2017-08-25 05:49:08

标签: java-ee wildfly-swarm

我正在尝试将JPA添加到一个简单的wildfly-swarm Rest API中。我跑来跑去试图跟随github页面的JPA示例而没有运气 [https://github.com/wildfly-swarm/wildfly-swarm-examples/tree/master/jpa 我的应用程序是一个" hello world" REST API是wildfly-swarm的新手: 我可以在一个" hello world"中获得关于如何设置持久性的一步一步指导。像我一样的项目? 这是回购https://github.com/desiby/swarm-rest

将JPA和H2添加为依赖项并转换" person"对象进入持久化实体这里是我得到的错误(添加hibernate依赖后的相同错误:

    2017-08-26 01:39:38,386 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("parallel-extension-add") failed - address: ([]): java.lang.RuntimeException: WFLYCTL0079: Failed initializing module org.jboss.as.jpa
    at org.jboss.as.controller.extension.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:115)
    at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:890)
    at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:659)
    at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:370)
    at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1322)
    at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:468)
    at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:387)
    at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:349)
    at org.jboss.as.server.ServerService.boot(ServerService.java:397)
    at org.jboss.as.server.ServerService.boot(ServerService.java:366)
    at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299)
    at java.lang.Thread.run(Thread.java:745)
     

引起:java.util.concurrent.ExecutionException:java.lang.RuntimeException:org.jboss.modules.ModuleLoadException:从modules / org / hibernate / main / module.xml加载模块时出错

0 个答案:

没有答案