0 Replies Latest reply on Mar 10, 2014 3:28 AM by jjakub

    web.xml basic security-constraint problem

    jjakub

      I use eap6.2.

      web.xml security context from below works fine for examples

      jboss-helloworld-mdb

      jboss-kitchensink/index.jsf

      jboss-wicket-war

       

      but doesn't work for

       

      /jboss-ejb-in-ear/greeter.jsf

      jboss-greeter/greet.jsf

      /jboss-ejb-in-war/greeter.jsf

       

      I can display page and no browser popup for password appears.

      Any idea where can be a problem ?

      in jsf ?( but works for jboss-kitchensink/index.jsf), and it should be above jsf ?

      I place web.xml in WEB-INF,

      version declared in web.xml is 2.5, it was taken from some of jdn examples

       

      Please write any suggestions how can it be fixed for greeter examples.

       

      <?xml version="1.0" encoding="UTF-8"?>

      <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"

          version="2.5">

      <security-constraint>

          <web-resource-collection>

              <url-pattern>/*</url-pattern>

          </web-resource-collection>

          <auth-constraint>

              <role-name>Manager</role-name>

          </auth-constraint>

      </security-constraint>

      <login-config>

          <auth-method>BASIC</auth-method>

          <realm-name>Sample Realm</realm-name>

      </login-config>

      <security-role>

          <role-name>Manager</role-name>

      </security-role>

      </web-app>

       

      Thx,