2 Replies Latest reply on Oct 17, 2008 12:28 PM by peterj

    security-role in Jboss 4.2.0

    indianparadesi

      I have app. in jboss 3.2.7 which i am migrating to 4.2.0. In my current web.xml, I have login authentication through <security-role> config in web.xml as

      <security-role>
      <role-name>ADMIN</role-name>
      <role-name>PM</role-name>
      <role-name>Operator</role-name>
      </security-role>

      In Jboss4.2.0, this is not working and deployment failed saying multiple role-name definition is not possible. Can anybody show light on how to configure multiple role in security-role. I dont want to give * as I want to give specific role restriction.

      any suggestions appreciated.

        • 1. Re: security-role in Jboss 4.2.0
          jaikiran

          Please post the entire exception stacktrace and the configuration.

          While posting the logs or code or xml content, remember to wrap it in a code block using the Code button in the message editor window and please hit the Preview button to make sure your post is correctly formatted

          • 2. Re: security-role in Jboss 4.2.0
            peterj

            Try this:

            <security-role>
             <role-name>ADMIN</role-name>
            </security-role>
            <security-role>
             <role-name>PM</role-name>
            </security-role>
            <security-role>
             <role-name>Operator</role-name>
            </security-role>