Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1118

Multiple @PersistenceContext injections on the same bean results in deployment failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.CR1
    • 7.0.0.Beta3
    • JPA / Hibernate
    • None

      NSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."scopedToEar.ear"."override.jar".INSTALL: Failed to process phase INSTALL of subdeployment "override.jar" of deployment "scopedToEar.ear"
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
      at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_22]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_22]
      at java.lang.Thread.run(Thread.java:680) [:1.6.0_22]
      Caused by: java.lang.IllegalArgumentException: AS7-1042: can't add immediate factory for org.jboss.as.jpa.interceptor.SBInvocationInterceptor@48ba0f44, priority 0x600 is already taken by immediate factory for org.jboss.as.jpa.interceptor.SBInvocationInterceptor@48ba0f44
      at org.jboss.as.ee.component.interceptors.OrderedItemContainer.add(OrderedItemContainer.java:57)
      at org.jboss.as.ee.component.ComponentConfiguration.addComponentInterceptor(ComponentConfiguration.java:144)
      at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor$8.configure(JPAAnnotationParseProcessor.java:391)
      at org.jboss.as.ee.component.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:68)
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
      ... 5 more

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              sdouglas1@redhat.com Stuart Douglas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: