1 2 Previous Next 16 Replies Latest reply on Apr 27, 2016 4:28 PM by marks1900

    Wildfly 10: @TransactionAttribute exception on startup

    Icaro Goulart Newbie

      I found a problem to startup my application. I have a method with a annotation @TransactionAttribute. When I was using the Jboss Eap 6.4 the annotation was working.

       

      @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
        public T findByPrimaryKey_NotManaged(Long key) {
        return (T) em.find(entityClass, key);
      }
      

       

       

      My log:

       

      15:28:04,596 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."zumpy3.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."zumpy3.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "zumpy3.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:745)
      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEJB0264: Could not merge data for UserDao
        at org.jboss.as.ejb3.deployment.processors.merging.AbstractMergingProcessor.deploy(AbstractMergingProcessor.java:76)
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
        ... 5 more
      Caused by: java.lang.RuntimeException: WFLYEE0034: Could not resolve method Method findByPrimaryKey_NotManaged(java.lang.Long) on class class com.visualvirtual.zumpy.base.dao.BaseDao with annotations [NOT_SUPPORTED]
        at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:79)
        at org.jboss.as.ejb3.deployment.processors.merging.TransactionAttributeMergingProcessor.processTransactionAttributeAnnotation(TransactionAttributeMergingProcessor.java:90)
        at org.jboss.as.ejb3.deployment.processors.merging.TransactionAttributeMergingProcessor.handleAnnotations(TransactionAttributeMergingProcessor.java:73)
        at org.jboss.as.ejb3.deployment.processors.merging.AbstractMergingProcessor.processComponentConfig(AbstractMergingProcessor.java:92)
        at org.jboss.as.ejb3.deployment.processors.merging.AbstractMergingProcessor.deploy(AbstractMergingProcessor.java:74)
        ... 6 more
      
      
      15:28:04,599 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "zumpy3.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"zumpy3.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"zumpy3.war\".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"zumpy3.war\"
          Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEJB0264: Could not merge data for UserDao
          Caused by: java.lang.RuntimeException: WFLYEE0034: Could not resolve method Method findByPrimaryKey_NotManaged(java.lang.Long) on class class com.visualvirtual.zumpy.base.dao.BaseDao with annotations [NOT_SUPPORTED]"}}
      
        1 2 Previous Next