0 Replies Latest reply on May 22, 2014 1:41 AM by avinash bhat

    JBoss version 4.2.2 will allow multiple auth-constraint?

    avinash bhat Newbie

      Hello,

       

      We are facing a problem with the auth-constraint in applications web.xml deployed in the JBoss 4.2.2...

      ex:

       

      <!-- Security constraints -->
        <security-constraint>
         <auth-constraint>
            <role-name>tomcat</role-name>
          </auth-constraint>
        <auth-constraint>
            <role-name>PMRole</role-name>
          </auth-constraint>
        <auth-constraint>
            <role-name>FMRole</role-name>
          </auth-constraint>
        <auth-constraint>
            <role-name>CMRole</role-name>
          </auth-constraint>
        </security-constraint>
        <!-- END: Security constraints -->
      

       

       

      Will JBoss allow multiple auth-contraint in web.xml? If not, what is the solution?

       

      The exception :

      org.jboss.deployment.DeploymentException: Failed to parse WEB-INF/web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: expected only one auth-constraint tag)

      Regards,

      Avinash Bhat

      avinashvbhat@gmail.com