Reply inlined....

> -----Original Message-----
> From: Rick Roberts [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, July 08, 2003 1:51 PM
> To: Tomcat Users List
> Subject: Re: JDBC Realm Warning Message?
> 
> 
> Rick Roberts wrote:
> > Thanks for reply Mike.
> > 
> > After thinkin about this message some more;
> > 
> > I think that the reason I am getting this message is because I still
> > have not successfully created a JDBC Realm.
> > 
> > I'm thinking that the Roles are defined in the database that I'm not
> > corectly reading yet.

Well no, the error you're getting is that your web.xml file is not set
up correctly.  In the context of container-managed security, the
container will parse and load server.xml (where you set up the JDBC
Realm) and then for your web application, web.xml gets parsed to find
out which resources are secured and available to which roles. 
 
You've got the first part of that (which resources) but not the second
(the roles)


> > 
> 
> Otherwise; where would a <security-role> element belong?
> Should it be part of web.xml?

Yup, from the DTD:
<!--
The security-role element contains the definition of a security
role. The definition consists of an optional description of the
security role, and the security role name.

Used in: web-app

Example:

    <security-role>
        <description>
            This role includes all employees who are authorized
            to access the employee service application.
        </description>
        <role-name>employee</role-name>
    </security-role>
-->



> 
> I am assuming (lots of stuff, because I have not done this 
> before) that 
> the ROLE field in the database is where the security-roles 
> are defined.
> 
> Please tell me where my mistake is.
> 
> Thanks
> 
> -- 
> *******************************************
> * Rick Roberts                            *
> * Advanced Information Technologies, Inc. *
> *******************************************
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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

Reply via email to