O erro abaixo aconteceu comigo.. aconteceu pois o meu arquivo de persistência estava com o nome persistence-unit.xml, ao renomear para persistence.xml o problema parou de ocorrer.
18:23:55,912 ERROR [Ejb3Deployment] Exception while processing container metadata for EJB: TestServerBean in unit: test-ejb.jar
18:23:55,914 ERROR [AbstractKernelController] Error installing to Real: name=vfs:///C:/temp/test/jboss-6.0.0-M5/server/test-web/deploy/test-ee.ear state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException: Error deploying test-ejb.jar: Exception while processing container metadata for EJB: TestServerBean in unit: test-ejb.jar
at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:189) [:6.0.0.20100911-M5]
[…]
Caused by: java.lang.IllegalArgumentException: Container jboss.j2ee:ear=test-ee.ear,jar=test-ejb.jar,name=TestServerBean,service=EJB3 failed to resolve persistence unit test
at org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:135) [:1.5.1]
[…]
Caused by: java.lang.IllegalArgumentException: Can't find a persistence unit named 'test' in AbstractVFSDeploymentContext@22455058{vfs:///C:/temp/test/jboss-6.0.0-M5/server/test-web/deploy/test-ee.ear/test-ejb.jar/}
at org.jboss.jpa.resolvers.BasePersistenceUnitDependencyResolver.resolvePersistenceUnitSupplier(BasePersistenceUnitDependencyResolver.java:107) [:1.0.2-alpha-1]
quarta-feira, 22 de dezembro de 2010
Assinar:
Postar comentários (Atom)
Nenhum comentário:
Postar um comentário