1 Reply Latest reply on Feb 22, 2016 2:33 PM by icaro56

    MethodAnnotationAggregator error deploying CXF Web Service JBoss 7.1.3 Final

    wesleydstrickland

      I have an Eclipse EJB project with methods annotated to be Web Methods and to use Transactions.  I have used Eclipse with the CXF 2.7.6 runtime to create a Top Down web service using the WSDL generated by JBoss for the EJB service class CountryCodeService.  It generates all the classes just fine and if JBoss is up and running when I generate the Web Service, I am able to run my SOAP client and hit the web service with no problems.  As soon as I attempt to stop and restart JBoss, however, I get the following exception below.

       

      I am using JBoss 7.1.3 Final and I have looked at the source code for the MethodAnnotationAggregator class here:

      http://grepcode.com/file/repo1.maven.org/maven2/org.jboss.as/jboss-as-ee/7.1.3.Final/org/jboss/as/ee/metadata/MethodAnnotationAggregator.java

       

      It has a nice comment that "this should not ever happen" at the line of code where I am seeing this error. (line 80)

       

      The method in the EJB is annotated like this:

        @Override

        @WebMethod

        @TransactionAttribute(TransactionAttributeType.REQUIRED)

        public CountryCode queryTriglyphe(java.lang.String nameStr) {

       

       

      Any help would be greatly appreciated!

       

      Thanks,

      -Wes

       

      18:24:47,570 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.subunit."MAAS_Ear.ear"."MAAS_SoapApi.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."MAAS_Ear.ear"."MAAS_SoapApi.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "MAAS_SoapApi.war" of deployment "MAAS_Ear.ear"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.1.3.Final.jar:7.1.3.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21]

          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014402: Could not merge data for CountryCodeService

          at org.jboss.as.ejb3.deployment.processors.merging.AbstractMergingProcessor.deploy(AbstractMergingProcessor.java:75)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116) [jboss-as-server-7.1.3.Final.jar:7.1.3.Final]

          ... 5 more

      Caused by: java.lang.RuntimeException: JBAS011040: Could not resolve method Method queryTriglyphe(java.lang.String) on class interface com.gdais.maas.ejb.CountryCodeService with annotations [REQUIRED]

          at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:80)

          at org.jboss.as.ejb3.deployment.processors.merging.TransactionAttributeMergingProcessor.processTransactionAttributeAnnotation(TransactionAttributeMergingProcessor.java:91)

          at org.jboss.as.ejb3.deployment.processors.merging.TransactionAttributeMergingProcessor.handleAnnotations(TransactionAttributeMergingProcessor.java:74)

          at org.jboss.as.ejb3.deployment.processors.merging.AbstractMergingProcessor.processComponentConfig(AbstractMergingProcessor.java:91)

          at org.jboss.as.ejb3.deployment.processors.merging.AbstractMergingProcessor.deploy(AbstractMergingProcessor.java:73)

          ... 6 more