Boa tarde, estou com um problema que não consigo resolver apesar de já ter tentado por varias vezes, tenho um projeto com Maven e EJB, meu persistence.xml esta configurado, fiz a configuração do standalone.xml mas recebo um erro quando vou subir minha aplicação.
Este é o erro:
insira seu código aqui
java:global/contas/CompraDao!br.com.contas.dao.CompraDao java:app/contas/CompraDao!br.com.contas.dao.CompraDao java:module/CompraDao!br.com.contas.dao.CompraDao java:global/contas/CompraDao java:app/contas/CompraDao java:module/CompraDao
16:10:27,225 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."contas.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."contas.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment "contas.war" at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748) Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0041: Component class br.com.contas.dao.CompraDao for component CompraDao has errors: WFLYJPA0021: Cannot inject RESOURCE_LOCAL container managed EntityManagers using @PersistenceContext at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor$1.handle(ModuleJndiBindingProcessor.java:157) at org.jboss.as.ee.component.ClassDescriptionTraversal.run(ClassDescriptionTraversal.java:54) at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.processClassConfigurations(ModuleJndiBindingProcessor.java:186) at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.deploy(ModuleJndiBindingProcessor.java:143) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147) ... 5 more
16:10:27,232 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "contas.war")]) - failure description: { "WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"contas.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"contas.war\".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment \"contas.war\" Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0041: Component class br.com.contas.dao.CompraDao for component CompraDao has errors: WFLYJPA0021: Cannot inject RESOURCE_LOCAL container managed EntityManagers using @PersistenceContext"}, "WFLYCTL0412: Required services that are not installed:" => [ "jboss.deployment.unit.\"contas.war\".INSTALL", "jboss.deployment.unit.\"contas.war\".beanmanager" ], "WFLYCTL0180: Services with missing/unavailable dependencies" => [ "jboss.deployment.unit.\"contas.war\".batch.environment is missing [jboss.deployment.unit.\"contas.war\".beanmanager]", "jboss.deployment.unit.\"contas.war\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"contas.war\".beanmanager]" ] } 16:10:27,308 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "contas.war" (runtime-name : "contas.war") 16:10:27,312 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report WFLYCTL0184: New missing/unsatisfied dependencies: service jboss.deployment.unit."contas.war".beanmanager (missing) dependents: [service jboss.deployment.unit."contas.war".batch.environment, service jboss.deployment.unit."contas.war".weld.weldClassIntrospector] WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."contas.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."contas.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment "contas.war"