1 Reply Latest reply on May 3, 2015 5:26 PM by Scott Lopez

    wildfly and handlers.xml issue

    Scott Lopez Newbie

      I am running into a strange issue that I just can't seem to figure out.  I have several classes that run as services in wildfly, all but one is able to launch.  I have verified that the code is pretty much identical (except for web services naming for the different apps).  When the @HandlerChain is present in one of the classes, the following cryptic error is given without any exceptions or other details:

       

      2015-05-02 12:52:17,771 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) JBAS014613: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.subunit.\"FFSCEnterprise.ear\".\"FFSCEnterpriseEJB.jar\".component.\"InventoryTransactionService-us.foodpantry.common.ClientIDHandler\".START is missing [jboss.ws.endpoint.\"FFSCEnterprise.ear\".\"FFSCEnterpriseEJB.jar\".InventoryTransactionService]"]}

       

      When I comment out the @HandlerChain it seems to work, but then I have a different issue that I can no longer verify the clients token that is sent this way.  The following fails:

       

      @Stateless

      @WebService(name = "InventoryTransactionService",

                  targetNamespace = "http://org.ffsc.webservices/InventoryTransactionService",

                  serviceName = "InventoryTransactionService")

       

      @WebContext(contextRoot="/FFSCEnterprise-FFSCEnterpriseEJB",

                  urlPattern="/InventoryTransactionService",

                  transportGuarantee="CONFIDENTIAL",

                  authMethod=AuthMethod.BASIC)

       

      @HandlerChain(file="/us/foodpantry/common/handlers.xml")

       

      @Interceptors(TimingInterceptor.class)

       

      public class InventoryTransactionService {

       

      }

       

      This one succeeds:

       

      @Stateless

      @WebService(name = "AuthorizationService",

                  targetNamespace = "http://org.ffsc.webservices/AuthorizationService",

                  serviceName = "AuthorizationService")

       

      @WebContext(contextRoot="/FFSCEnterprise-FFSCEnterpriseEJB",

                  urlPattern="/AuthorizationService",

                  transportGuarantee="CONFIDENTIAL",

                  authMethod=AuthMethod.BASIC)

                

      @HandlerChain(file="/us/foodpantry/common/handlers.xml")

                

      @Interceptors(TimingInterceptor.class)

       

      public class AuthorizationService

      {

      }

       

      Any ideas would be greatly appreciated.

        • 1. Re: wildfly and handlers.xml issue
          Scott Lopez Newbie

          Well, after wasting two days trying to figure this out I realized that I had started to create another service.  It happened to be a copy of the service declarations but in a new class.  It was a matter of chance that the duplicate (without any methods) was being picked up first and the second was being ignored, except for the @Handler notation which threw an exception.

           

          So if you see an error like this, start looking for a new class with a duplicate web services definition.