atom feed10 messages in org.apache.tomcat.usersRe: authorization using tomcat...
FromSent OnAttachments
Padhu VinirsOct 2, 2002 7:19 am 
Rick FincherOct 2, 2002 7:39 am 
Craig R. McClanahanOct 2, 2002 9:07 am 
Mubaraka ArifOct 2, 2002 9:51 am 
Padhu VinirsOct 2, 2002 10:58 am 
Padhu VinirsOct 2, 2002 11:07 am 
Padhu VinirsOct 2, 2002 11:18 am 
Rick FincherOct 2, 2002 11:58 am 
Rick FincherOct 2, 2002 12:02 pm 
Rick FincherOct 2, 2002 12:10 pm 
Subject:Re: authorization using tomcat...
From:Rick Fincher (rn@tbird.com)
Date:Oct 2, 2002 11:58:05 am
List:org.apache.tomcat.users

Sounds like you are close now. It is working but it is rejecting your username, password or role.

The name and role in WEB-INF/web.xml have to match the name and role in conf/tomcat-users.xml. The password is verified at login and must match the password in conf/tomcat-users.xml.

You can add a debug statement to the realm configuration in conf/server.xml to give you some debug output on this to help narrow down the problem, but I think it is a mis-match in the password-username-role somewhere.

See Realm How-To memory realm in the docs for details.

Rick

I did make that change and uncommented the MemoryRealm in servers.xml, restarted the server. Now I dont see any error in the logs files, but I get a error

The server encountered an internal error (/ExamBuilder/Details.jsp) that prevented it from fulfilling this request.

My servers.xml entry is:

<Realm className="org.apache.catalina.realm.MemoryRealm" />

Any ideas ?

Thanks

-- padhu

Craig R. McClanahan wrote:

On Wed, 2 Oct 2002, Padhu Vinirs wrote:

<url-pattern>Details.jsp</url-pattern>

URL patterns need to start with a "/" character. Change this to:

<url-pattern>/Details.jsp</url-pattern>

and you will have much better luck.

Craig