realm in context in war file

2005-08-11 Thread Michal Kwiatek
Has any of you tried defining a realm inside the context.xml taken form
META-INF file from inside the war file?

I have the following context definition:





but the realm definition is simply ignored by tomcat. 

Any idea why?

Thanks in advance,
Michal.

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



RE: realm in context in war file

2005-08-11 Thread Caldarale, Charles R
> From: Michal Kwiatek [mailto:[EMAIL PROTECTED] 
> Subject: realm in context in war file
> 
> I have the following context definition:
> 
> 
>className="org.apache.catalina.realm.MemoryRealm"
>   debug=""
>   pathname="webapps/test1/META-INF/context-users.xml"
> />
> 

What level of Tomcat are you using?  If it's 5.5, you should not have a
path attribute.  If you remove the pathname attribute from the 
tag, does authentication function with the default
conf/tomcat-users.xml?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: realm in context in war file

2005-08-11 Thread Michal Kwiatek
I've sorted it out: the problem was in the syntax! I was using "context"
instead of "Context", and tomcat (5.0.28) simply ignored it without
writing any error message.

But thanks for the tip for 5.5 - I'm going to migrate soon, so it will
be useful.

Michal.

> -Original Message-
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 11, 2005 4:03 PM
> To: Tomcat Users List
> Subject: RE: realm in context in war file
> 
> > From: Michal Kwiatek [mailto:[EMAIL PROTECTED]
> > Subject: realm in context in war file
> > 
> > I have the following context definition:
> > 
> >  docBase="webapps/test1">  > className="org.apache.catalina.realm.MemoryRealm"
> > debug=""
> > pathname="webapps/test1/META-INF/context-users.xml"
> > />
> > 
> 
> What level of Tomcat are you using?  If it's 5.5, you should 
> not have a path attribute.  If you remove the pathname 
> attribute from the  tag, does authentication function 
> with the default conf/tomcat-users.xml?
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
> PROPRIETARY MATERIAL and is thus for use only by the intended 
> recipient. If you received this in error, please contact the 
> sender and delete the e-mail and its attachments from all computers.
> 
> -
> 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]