2 Replies Latest reply on Dec 7, 2015 11:10 AM by Vineeth V Nair

    Issue With DeploymentManagerImpl Class

    Vineeth V Nair Newbie

      Hi,

       

      I am trying to add a authentication mechanism in my web application code. I created a ServletExtention like below.



      public class MyServletExtentionClass implements ServletExtension{

        @Override

        public void handleDeployment(final DeploymentInfo deploymentInfo, final ServletContextImpl servletContext) {

        deploymentInfo.addAuthenticationMechanism(new MyAuthenticaor());

        }

      }

       

      Also i added the io.undertow.servlet.ServletExtension in side my META_INF/services. But when i try to deploy the application I am getting the below error.

       

       

      jboss.undertow.deployment.default-server.default-host./webapps: Failed to start service

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

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

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

        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]

      Caused by: java.lang.AbstractMethodError

        at io.undertow.servlet.core.DeploymentManagerImpl.handleExtensions(DeploymentManagerImpl.java:244)

        at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:149)

        at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87)

        at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

        ... 3 more