Hi,
I have the same issue running on JBoss 5.1.0.GA_j6.
I try to deploy an EAR with Entity EJBs contained in a shared jar located in the /lib
folder of my ear.
I get the following error message during deployment:
| 15:25:49,501 INFO [Ejb3DependenciesDeployer] Encountered deployment
AbstractVFSDeploymentContext@25040105{vfszip:/opt/jboss-5.1.0.GA_j6/server/imixs/deploy/imixs-workflow-jsf-sample-ear-0.0.1-SNAPSHOT.ear/}
| 15:25:49,501 INFO [Ejb3DependenciesDeployer] Encountered deployment
AbstractVFSDeploymentContext@25040105{vfszip:/opt/jboss-5.1.0.GA_j6/server/imixs/deploy/imixs-workflow-jsf-sample-ear-0.0.1-SNAPSHOT.ear/}
| 15:25:49,501 INFO [Ejb3DependenciesDeployer] Encountered deployment
AbstractVFSDeploymentContext@14529946{vfszip:/opt/jboss-5.1.0.GA_j6/server/imixs/deploy/imixs-workflow-jsf-sample-ear-0.0.1-SNAPSHOT.ear/imixs-workflow-jsf-sample-ejb-0.0.1-SNAPSHOT.jar/}
| 15:25:49,501 INFO [Ejb3DependenciesDeployer] Encountered deployment
AbstractVFSDeploymentContext@14529946{vfszip:/opt/jboss-5.1.0.GA_j6/server/imixs/deploy/imixs-workflow-jsf-sample-ear-0.0.1-SNAPSHOT.ear/imixs-workflow-jsf-sample-ejb-0.0.1-SNAPSHOT.jar/}
| 15:25:49,501 INFO [Ejb3DependenciesDeployer] Encountered deployment
AbstractVFSDeploymentContext@14529946{vfszip:/opt/jboss-5.1.0.GA_j6/server/imixs/deploy/imixs-workflow-jsf-sample-ear-0.0.1-SNAPSHOT.ear/imixs-workflow-jsf-sample-ejb-0.0.1-SNAPSHOT.jar/}
| 15:25:49,501 INFO [Ejb3DependenciesDeployer] Encountered deployment
AbstractVFSDeploymentContext@14529946{vfszip:/opt/jboss-5.1.0.GA_j6/server/imixs/deploy/imixs-workflow-jsf-sample-ear-0.0.1-SNAPSHOT.ear/imixs-workflow-jsf-sample-ejb-0.0.1-SNAPSHOT.jar/}
| 15:25:49,599 ERROR [Ejb3Deployment] Exception while processing container metadata for
EJB: EntityServiceBean in unit: imixs-workflow-jsf-sample-ear-0.0.1-SNAPSHOT.ear
| 15:25:49,599 ERROR [AbstractKernelController] Error installing to Real:
name=vfszip:/opt/jboss-5.1.0.GA_j6/server/imixs/deploy/imixs-workflow-jsf-sample-ear-0.0.1-SNAPSHOT.ear/
state=PreReal mode=Manual requiredState=Real
| org.jboss.deployers.spi.DeploymentException: Error deploying
imixs-workflow-jsf-sample-ear-0.0.1-SNAPSHOT.ear: Exception while processing container
metadata for EJB: EntityServiceBean in unit:
imixs-workflow-jsf-sample-ear-0.0.1-SNAPSHOT.ear
| at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)
| at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)
| at
org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
| at
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
| at
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
| at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
| at
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
| at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
| at
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
| at
org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
| at
org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)
| at
org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
| at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
| at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
| at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
| at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
| at java.lang.Thread.run(Thread.java:636)
| Caused by: java.lang.Exception: Exception while processing container metadata for EJB:
EntityServiceBean in unit: imixs-workflow-jsf-sample-ear-0.0.1-SNAPSHOT.ear
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:549)
| at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:189)
| ... 27 more
| Caused by: java.lang.IllegalArgumentException: Container
jboss.j2ee:ear=imixs-workflow-jsf-sample-ear-0.0.1-SNAPSHOT.ear,jar=imixs-workflow-jsf-sample-ear-0.0.1-SNAPSHOT.ear,name=EntityServiceBean,service=EJB3
failed to resolve persistence unit org.imixs.workflow.jee.jpa
| at
org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:135)
| at
org.jboss.injection.PersistenceContextHandler.loadXml(PersistenceContextHandler.java:76)
| at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:588)
| at
org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:418)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:527)
| ... 28 more
| Caused by: java.lang.IllegalArgumentException: Can't find a persistence unit named
'org.imixs.workflow.jee.jpa' in
AbstractVFSDeploymentContext@25040105{vfszip:/opt/jboss-5.1.0.GA_j6/server/imixs/deploy/imixs-workflow-jsf-sample-ear-0.0.1-SNAPSHOT.ear/}
| at
org.jboss.jpa.resolvers.BasePersistenceUnitDependencyResolver.resolvePersistenceUnitSupplier(BasePersistenceUnitDependencyResolver.java:107)
| at
org.jboss.ejb3.Ejb3Deployment.resolvePersistenceUnitSupplier(Ejb3Deployment.java:770)
| at
org.jboss.ejb3.EJBContainer.resolvePersistenceUnitSupplier(EJBContainer.java:1428)
| at
org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:130)
| ... 32 more
|
I did a lot of search in forums but I still found no solution.
Has anybody a hint what I can do?
It seams that the deployer did not scan the jars in the /lib folder of my EAR.
thanks for any help
Ralph
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267313#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...