DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41722>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41722

           Summary: role-link tag in web.xml can not  be omitted.
           Product: Tomcat 5
           Version: 5.5.20
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


The application with follwing web.xml can not be deployed.
---
    <servlet>
      <servlet-name>sample</servlet-name>
      <servlet-class>sample.TheServlet</servlet-class>
      <security-role-ref>
        <role-name>users</role-name>
      </security-role-ref>
    </servlet>

    <servlet-mapping>
    ....
    </servlet-mapping>

    <security-role>
      <role-name>users</role-name>
     </security-role>
---
"java.lang.IllegalArgumentException: Can't convert argument: null" occurred.

The Specification says:
---
The security-role-ref element declares the security role reference in a
component’s or in a deployment component’s code.
It consists of an optional description, the security role name
used in the code(role-name), and an optional link to a security role(role-link).
---
<role-link> is optional.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to