我在Jboss AS 7 WildFly中部署使用ObjectDB的项目时遇到了麻烦。
首先我使用了最初为Glassfish开源版设计的objectDB教程项目:
http://www.objectdb.com/tutorial/jpa/ee
但它一直告诉我它没有找到提供者。
我在ObjectDB论坛中看到了有关Jboss AS 6的问题并进行了这些更改:
我仍然收到这些消息,告诉我Jboss无法找到提供商。
如果有人知道如何让Jboss AS 7与ObjectDB一起工作,我将非常高兴知道。
有没有一步一步的指示如何做到这一点?
这是完整的堆栈跟踪:
04:56:01,160 INFO [org.jboss.modules] JBoss Modules版本1.1.1.GA 04:56:01,336 INFO [org.jboss.msc] JBoss MSC版本1.0.2.GA 04:56:01,382 INFO [org.jboss.as] JBAS015899:JBoss AS 7.1.1.Final" Brontes"开始 04:56:02,040 INFO [org.xnio] XNIO版本3.0.3.GA 04:56:02,040 INFO [org.jboss.as.server] JBAS015888:使用套接字绑定创建http管理服务(management-http) 04:56:02,049 INFO [org.xnio.nio] XNIO NIO实现版本3.0.3.GA 04:56:02,056 INFO [org.jboss.remoting] JBoss Remoting版本3.2.3.GA 04:56:02,075 INFO [org.jboss.as.logging] JBAS011502:删除引导程序日志处理程序 04:56:02,078 INFO [org.jboss.as.configadmin](ServerService线程池 - 26)JBAS016200:激活ConfigAdmin子系统 04:56:02,079 INFO [org.jboss.as.clustering.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:当前PicketBox版本= 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.subsystems.datasources](ServerService线程池 - 27)JBAS010403:部署符合JDBC的驱动程序类org.h2.Driver(版本1.3) 04:56:02,189 INFO [org.jboss.as.naming](MSC服务线程1-1)JBAS011802:开始命名服务 04:56:02,203 INFO [org.jboss.as.mail.extension](MSC服务主题1-5)JBAS015400:绑定邮件会话[java:jboss / mail / Default] 04:56:02,249 INFO [org.jboss.ws.common.management.AbstractServerConfig](MSC服务线程1-2)JBoss Web服务 - Stack CXF Server 4.0.2.GA 04:56:02,445 INFO [org.apache.coyote.http11.Http11Protocol](MSC服务主题1-8)在http-localhost-127.0.0.1-8080上启动Coyote HTTP / 1.1 04:56:02,525 INFO [org.jboss.as.server.deployment.scanner](MSC服务线程1-16)JBAS015012:已启动FileSystemDeploymentService以获取目录C:\ servers \ jboss \ jboss-as-7.1.1.Final \独立\部署 04:56:02,526 INFO [org.jboss.as.remoting](MSC服务主题1-3)JBAS017100:收听/127.0.0.1:9999 04:56:02,526 INFO [org.jboss.as.remoting](MSC服务主题1-7)JBAS017100:在localhost / 127.0.0.1上监听:4447 04:56:02,528 INFO [org.jboss.as.server.deployment.scanner](DeploymentScanner-threads - 1)JBAS015014:重新尝试失败部署Guestbook.war 04:56:02,549 INFO [org.jboss.as.connector.subsystems.datasources](MSC服务线程1-1)JBAS010400:绑定数据源[java:jboss / datasources / ExampleDS] 04:56:02,604 INFO [org.jboss.as.server.deployment](MSC服务主题1-10)JBAS015876:开始部署" Guestbook.war" 04:56:02,893 INFO [org.jboss.as.jpa](MSC服务主题1-3)JBAS011401:读取GuestbookPU的persistence.xml 04:56:02,973 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor](MSC服务线程1-13)部署单元部署中名为GuestDao的会话bean的JNDI绑定" Guestbook.war"如下:
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 ERROR [org.jboss.msc.service.fail](MSC服务主题1-5)MSC00001:无法启动服务jboss.deployment.unit。" Guestbook.war" .INSTALL:服务jboss.deployment.unit中的org.jboss.msc.service.StartException。" Guestbook.war" .INSTALL:无法处理部署的阶段INSTALL" Guestbook.war" 在org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java: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] at 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] at 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) at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:295) 在org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:258) 在org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.handleWarDeployment(PersistenceUnitDeploymentProcessor.java:194) 在org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:118) 在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:无法处理部署INSTALL部署\"留言的.war \""}} 04:56:03,224 INFO [org.jboss.as.server.deployment](MSC服务线程1-7)JBAS015877:在21ms停止部署Guestbook.war 04:56:03,225 INFO [org.jboss.as.controller](DeploymentScanner-threads - 2)JBAS014774:服务状态报告 JBAS014777:无法启动的服务:服务jboss.deployment.unit。" Guestbook.war" .INSTALL:服务jboss.deployment.unit中的org.jboss.msc.service.StartException。"访客留言.war" .INSTALL:无法处理部署的阶段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:无法处理部署INSTALL部署\"留言的.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:开始部署" Guestbook.war" 10:40:39,972 INFO [org.jboss.as.jpa](MSC服务主题1-10)JBAS011401:读取GuestbookPU的persistence.xml 10:40:39,992 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor](MSC服务线程1-6)部署单元部署中名为GuestDao的会话bean的JNDI绑定" Guestbook.war"如下:
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 ERROR [org.jboss.msc.service.fail](MSC服务主题1-6)MSC00001:无法启动服务jboss.deployment.unit。" Guestbook.war" .INSTALL:服务jboss.deployment.unit中的org.jboss.msc.service.StartException。" Guestbook.war" .INSTALL:无法处理部署的阶段INSTALL" Guestbook.war" 在org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java: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] at 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] at 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) at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:295) 在org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:258) 在org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.handleWarDeployment(PersistenceUnitDeploymentProcessor.java:194) 在org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:118) 在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:无法处理部署INSTALL部署\"留言的.war \""}} 10:40:40,014 INFO [org.jboss.as.server.deployment](MSC服务线程1-12)JBAS015877:4ms内停止部署Guestbook.war 10:40:40,015 INFO [org.jboss.as.controller](DeploymentScanner-threads - 2)JBAS014774:服务状态报告 JBAS014777:无法启动的服务:服务jboss.deployment.unit。" Guestbook.war" .INSTALL:服务jboss.deployment.unit中的org.jboss.msc.service.StartException。"访客留言.war" .INSTALL:无法处理部署的阶段INSTALL" Guestbook.war"
10:40:40,017 ERROR [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:无法处理部署INSTALL部署\"留言的.war \""}}}}