RE: memoryrealm

2008-03-12 Thread Caldarale, Charles R
> From: Edward Quick [mailto:[EMAIL PROTECTED] > Subject: RE: memoryrealm > > I'm not sure about that because I copied the format that's > used in the tomcat manager webapp 's web.xml in > tomcat-5.5.16/server/webapps/manager/WEB-INF/web.xml O.k., I could

RE: memoryrealm

2008-03-12 Thread Edward Quick
Thanks Chuck, I'm not sure about that because I copied the format that's used in the tomcat manager webapp 's web.xml in tomcat-5.5.16/server/webapps/manager/WEB-INF/web.xml which has in it: Link to the UserDatabase instance from which we request lists of defined role n

RE: memoryrealm

2008-03-12 Thread Caldarale, Charles R
> From: Edward Quick [mailto:[EMAIL PROTECTED] > Subject: RE: memoryrealm > I also updated the webapps web.xml file so that it refers > to SampleUserDatabase instead of Tomcat's UserDatabase. You shouldn't do that; the webapp isn't using the Resource, only the Realm

RE: memoryrealm

2008-03-12 Thread Edward Quick
Thanks Chuck. Here is my context.xml now: And this is in the webapp's META-INF. I also updated the webapps web.xml file so that it refers to SampleUserDatabase instead of Tomcat's UserDatabase. SampleUserDatabase org.apache.catalina.UserDatabase Unfortunatel

RE: memoryrealm

2008-03-12 Thread Caldarale, Charles R
> From: Edward Quick [mailto:[EMAIL PROTECTED] > Subject: RE: memoryrealm > > Unless your element is in server.xml (it shouldn't be), the path attribute is not allowed; remove it. If you did put your element in server.xml, move it to the proper location (the webapp'

RE: memoryrealm

2008-03-12 Thread Edward Quick
] > To: users@tomcat.apache.org > Subject: RE: memoryrealm > Date: Wed, 12 Mar 2008 12:51:20 + > > > I don't know if this helps, but here's an extract from the log below. This > gets created at deployment, but when I visit the URL, I don't get any output.

RE: memoryrealm

2008-03-12 Thread Edward Quick
I don't know if this helps, but here's an extract from the log below. This gets created at deployment, but when I visit the URL, I don't get any output. Also I've determined now that the sample app is using conf/tomcat-users.xml and not my own /tmp/tomcatusers.xml file as I get a 403 returned w

RE: memoryrealm

2008-03-12 Thread David Cassidy
On your realm up the level of debug and let us know whats in the logs D On Wed, 2008-03-12 at 11:16 +, Edward Quick wrote: > Thanks David, I had forgotten the web.xml as you suggested. I have now added > this so my web.xml is as shown below, and I get the prompt but the userid I'm > using

RE: memoryrealm

2008-03-12 Thread Edward Quick
Thanks David, I had forgotten the web.xml as you suggested. I have now added this so my web.xml is as shown below, and I get the prompt but the userid I'm using 'test' (passwd: test) isn't going through. Hope this isn't a daft question, but do I need to add code to the servlet to get this to wo

Re: memoryrealm

2008-03-12 Thread David Cassidy
whats in your web.xml ? is your app forcing a login ? all the realm provides is a system to do authentication unless you are triggering it, it isn't used On Wed, 2008-03-12 at 10:36 +, Edward Quick wrote: > Hi, > > I would like to specify my own tomcat-users.xml for my webapp to use (

Re: MemoryRealm question

2007-11-19 Thread Mark Thomas
Bárbara Vieira wrote: > When I use that Realm, how the principals variable, that is declared in that > class(MemoryRealm) as a HashMap, is loaded? Configure Tomcat to use the MemoryRealm. Start tomcat with JPDA debugging enabled. Set a break point at the start of the authenticate() method. Access

Re: MemoryRealm problems!

2006-12-05 Thread Omar Adobati
On 12/5/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: Omar Adobati [mailto:[EMAIL PROTECTED] > Subject: MemoryRealm problems! > > I put it into the $MY_APP/META-INF directory, but it seems to > be ignored. Does the file $(catalina.home)/conf/[engine]/[host]/Apps.xml exist? If so,

RE: MemoryRealm problems!

2006-12-05 Thread Caldarale, Charles R
> From: Omar Adobati [mailto:[EMAIL PROTECTED] > Subject: MemoryRealm problems! > > I put it into the $MY_APP/META-INF directory, but it seems to > be ignored. Does the file $(catalina.home)/conf/[engine]/[host]/Apps.xml exist? If so, it will override the $MY_APP/META-INF/context.xml file. (T