0

我无法在 Jboss AS 7 WildFly 中部署使用 ObjectDB 的项目。

一开始我使用了最初为 Glassfish 开源版设计的 objectDB 教程项目:

http://www.objectdb.com/tutorial/jpa/ee

但它一直告诉我它没有找到提供者。

我在 ObjectDB 论坛中看到了有关 Jboss AS 6 的问题并进行了以下更改:

  • 将语句 java:/DefaultDS 添加到 persistence.xml 文件中。
  • 使用 objectdb-jee.jar 而不是 objectdb.jar

我仍然收到那些消息告诉我 Jboss 找不到提供程序。

如果有人知道如何使 Jboss AS 7 与 ObjectDB 一起工作,我将非常高兴知道。

有没有一步一步的说明如何做到这一点?

这是完整的堆栈跟踪:

infinispan] (ServerService 线程池 -- 31) JBAS010280:激活 Infinispan 子系统。04:56:02,084 INFO [org.jboss.as.naming](ServerService 线程池 -- 38)JBAS011800:激活命名子系统 04:56:02,087 INFO [org.jboss.as.security](ServerService 线程池 -- 44 ) JBAS013101: 激活安全子系统 04:56:02,094 INFO [org.jboss.as.osgi] (ServerService 线程池 -- 39) JBAS011940: 激活 OSGi 子系统 04:56:02,112 INFO [org.jboss.as.webservices] ( ServerService 线程池 -- 48) JBAS015537: 激活 WebServices 扩展 04:56:02,119 INFO [org.jboss.as.security] (MSC 服务线程 1-14) JBAS013100: Current PicketBox version=4.0.7.Final 04:56: 02,128 INFO [org.jboss.as.connector](MSC 服务线程 1-6)JBAS010408:启动 JCA 子系统(JBoss IronJacamar 1.0.9.Final)04:56:02,181 INFO [org.jboss.as.connector.

java:global/Guestbook/GuestDao!guest.GuestDao
java:app/Guestbook/GuestDao!guest.GuestDao
java:module/GuestDao!guest.GuestDao
java:global/Guestbook/GuestDao
java:app/Guestbook/GuestDao
java:module/GuestDao

04:56:03,194 错误 [org.jboss.msc.service.fail](MSC 服务线程 1-5)MSC00001:无法启动服务 jboss.deployment.unit。“Guestbook.war”。安装:org.jboss.msc服务 jboss.deployment.unit."Guestbook.war".INSTALL 中的 .service.StartException:无法在 org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java 处处理部署“Guestbook.war”的阶段安装:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc- 1.0.2.GA.jar:1.0.2.GA] 在 org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0. 2.GA] 在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21] 在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21] 在 java.lang.Thread.run(Thread.java:722) [ rt.jar:1.7.0_21] 引起:javax.persistence.PersistenceException: JBAS011466: PersistenceProvider 'com.objectdb.jpa.Provider' 在 org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.lookupProvider(PersistenceUnitDeploymentProcessor.java: 555) 在 org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:258) 在 org.jboss.as 的 org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:295) org.jboss.as 的 .jpa.processor.PersistenceUnitDeploymentProcessor.handleWarDeployment(PersistenceUnitDeploymentProcessor.java:194)。jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:118) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar: 7.1.1.Final] ... 5 更多

04:56:03,204 INFO [org.jboss.as.server](DeploymentScanner-threads - 2)JBAS015870:部署“Guestbook.war”的部署已回滚并显示失败消息 {“JBAS014671:失败的服务”=> {“jboss .deployment.unit.\"Guestbook.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Guestbook.war\".INSTALL: 无法处理阶段安装部署 \"Guestbook.war\""}} 04:56:03,224 INFO [org.jboss.as.server.deployment](MSC 服务线程 1-7)JBAS015877:在 21 毫秒内停止部署 Guestbook.war 04:56: 03,225 INFO [org.jboss.as.controller](DeploymentScanner-threads - 2)JBAS014774:服务状态报告 JBAS014777:未能启动的服务:服务 jboss.deployment.unit。“Guestbook.war”。安装:org.jboss。硕士。service.StartException in service jboss.deployment.unit."Guestbook.war".INSTALL: 无法处理部署“Guestbook.war”的阶段安装

04:56:03,227 错误 [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: 复合操作失败并被回滚。失败的步骤:" => {"操作步骤- 2" => {"JBAS014671: 失败的服务" => {"jboss.deployment.unit.\"Guestbook.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit .\"Guestbook.war\".INSTALL: 无法处理部署的阶段安装\"Guestbook.war\""}}}} 10:40:39,789 INFO [org.jboss.as.server.deployment.scanner]( DeploymentScanner-threads - 1) JBAS015003:在部署目录中找到 Guestbook.war。要触发部署,请创建一个名为 Guestbook.war.dodeploy 10:40:39,855 INFO [org.jboss.as.server.deployment](MSC 服务线程 1-8)JBAS015876 的文件:

java:global/Guestbook/GuestDao!guest.GuestDao
java:app/Guestbook/GuestDao!guest.GuestDao
java:module/GuestDao!guest.GuestDao
java:global/Guestbook/GuestDao
java:app/Guestbook/GuestDao
java:module/GuestDao

10:40:40,004 错误 [org.jboss.msc.service.fail](MSC 服务线程 1-6)MSC00001:无法启动服务 jboss.deployment.unit。“Guestbook.war”。安装:org.jboss.msc服务 jboss.deployment.unit."Guestbook.war".INSTALL 中的 .service.StartException:无法在 org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java 处处理部署“Guestbook.war”的阶段安装:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc- 1.0.2.GA.jar:1.0.2.GA] 在 org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0. 2.GA] 在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21] 在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21] 在 java.lang.Thread.run(Thread.java:722) [ rt.jar:1.7.0_21] 引起:javax.persistence.PersistenceException: JBAS011466: PersistenceProvider 'com.objectdb.jpa.Provider' 在 org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.lookupProvider(PersistenceUnitDeploymentProcessor.java: 555) 在 org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:258) 在 org.jboss.as 的 org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:295) org.jboss.as 的 .jpa.processor.PersistenceUnitDeploymentProcessor.handleWarDeployment(PersistenceUnitDeploymentProcessor.java:194)。jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:118) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar: 7.1.1.Final] ... 5 更多

10:40:40,010 INFO [org.jboss.as.server](DeploymentScanner-threads - 2)JBAS015870:部署“Guestbook.war”的部署已回滚并显示失败消息 {“JBAS014671:失败的服务”=> {“jboss .deployment.unit.\"Guestbook.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Guestbook.war\".INSTALL: 无法处理阶段安装部署 \"Guestbook.war\""}} 10:40:40,014 INFO [org.jboss.as.server.deployment](MSC 服务线程 1-12)JBAS015877:在 4 毫秒内停止部署 Guestbook.war 10:40: 40,015 INFO [org.jboss.as.controller](DeploymentScanner-threads - 2)JBAS014774:服务状态报告 JBAS014777:服务无法启动:服务 jboss.deployment.unit.“Guestbook.war”。安装:org.jboss。硕士。service.StartException in service jboss.deployment.unit."Guestbook.war".INSTALL: 无法处理部署“Guestbook.war”的阶段安装

10:40:40,017 错误 [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: 复合操作失败并已回滚。失败的步骤:" => {"操作步骤- 2" => {"JBAS014671: 失败的服务" => {"jboss.deployment.unit.\"Guestbook.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit .\"Guestbook.war\".INSTALL: 未能处理部署的阶段安装\"Guestbook.war\""}}}}

4

1 回答 1

1

您可能必须将 ObjectDB jar 作为模块添加到 JBoss,如本论坛主题中的 #8 中所述。

于 2013-10-23T19:29:05.487 回答