2 Replies Latest reply on Jul 8, 2014 9:00 AM by Julien Kronegg

    Unexpected error forwarding to login page on securing jmx-console

    walnut Newbie

      hi all,

       

      running GateIn-3.1.0-GA in JBossAS-5.1.0-GA.

       

      I am trying to secure the jmx-console with a security domain,

      so i uncommented:

           - <security-constraint> block in web.xml

           - <security-domain> in jboss-web.xml

       

      all settings are left with default values (see attachments), but the browser just shows a blank page and the log output is as below.

       

      Please, help. Thanks in advance.

       

      10:24:47,799 WARN  [FormAuthenticator] Unexpected error forwarding to login page
      java.lang.NullPointerException
              at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:316)
              at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:244)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Thread.java:662)
      

       

      EDIT: made same changes in new&clean installation of GateIn/JBoss, and it works! But still interested why the exception and how to solve it