tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ittay Dror <itt...@qlusters.com>
Subject help configuring security in tomcat 5.5
Date Mon, 29 Aug 2005 19:05:44 GMT
i have this in my ${CATALINA_HOME}/webapps/ROOT/WEB-INF/web.xml:
....
<login-config>
         <auth-method>FORM</auth-method>
         <realm-name>qrm</realm-name>
         <form-login-config>
                 <form-login-page>/login/login.do?type=attempt</form-login-page>
                 <form-error-page>/login/login.do?type=error</form-error-page>
         </form-login-config>
</login-config>

and this in ${CATALINA_HOME}/conf/Catalina/localhost/ROOT.xml:
<Realm className="org.apache.catalina.realm.DataSourceRealm" debug="99"
    dataSourceName="QrmDS" appName="qrm"
    userTable="qrm_users" userNameCol="user_name" userCredCol="user_password"
    userRoleTable="qrm_roles" roleNameCol="role_name"/>

The database is up and contains the required schema.

But I get this:

  java.lang.SecurityException: Unable to locate a login configuration

Please help,
Ittay
-- 
===================================
Ittay Dror (ittayd@qlusters.com)
Application Team Leader, R&D
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message