Hi,

I have moved the realm configuration inside <host > tag

<Host appBase="webapps" autoDeploy="true" name="localhost"
unpackWARs="true"><Valve
className="org.apache.catalina.valves.AccessLogValve" directory="logs"
pattern="%h %l %u %t &quot;%r&quot; %s %b" prefix="localhost_access_log."
suffix=".txt"/>

<Realm className="org.apache.catalina.realm.DataSourceRealm"
   dataSourceName="jdbc/FederationDS"
   userTable="T_USER" userNameCol="USERNAME" userCredCol="PASSWORD"
   userRoleTable="T_USER_ROLES" roleNameCol="ROLENAME" debug="99"
 allRolesMode="authOnly" />


</Host>

Still I get the same below mentioned error.

May 04, 2014 11:10:11 AM org.apache.catalina.realm.RealmBase
hasResourcePermission
FINE: No role found:  masFedClient
May 04, 2014 11:10:11 AM org.apache.catalina.realm.RealmBase
hasResourcePermission
FINE: Checking for all roles mode: authOnly
May 04, 2014 11:10:11 AM
org.apache.catalina.authenticator.AuthenticatorBase invoke
FINE:  Failed accessControl() test


please suggest.

Thanks
Dhaya


On Sun, May 4, 2014 at 10:40 AM, Konstantin Kolinko
<knst.koli...@gmail.com>wrote:

> 2014-05-04 17:24 GMT+04:00 Dhayanidhi sundaramoorthi
> <dhayamoorthi2...@gmail.com>:
> > Hi,
> >
> > Thanks for your response.
> >
> > Can you pls let me know the exact location where I am supposed to
> configure
> > the realm in server.xml?
>
> It belongs to a "container" (Context, Host or Engine).
> In server.xml that will be <Host> or <Engine>.
> http://tomcat.apache.org/tomcat-7.0-doc/config/realm.html
>
>
> > If I place the configuration in <tomcat_base>/conf/web.xml, the
> > configuration is applicable for all the web apps.
> > I want all the webapplication needs to be protected.
>
> If you know what you are doing... OK.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to