Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Context and MemoryRealm

Bart Lute

2003-12-20


I'm trying to implement a realm to a context within a virtual host but I can't
get it working. This is my server.xml for the virtual host:

<Host name="my.host.name">
  <Context path="" docBase="/path_to_app" />
  <Context path="/stats" docBase="/path_to_stats">
     <Realm className="org.apache.catalina.realm.MemoryRealm" />
  </Context>
</Host>

Whatever I try, I can't get tomcat to ask me for an authentication.
Can anybody help me out with an example. I've read the Tomcat Realm how-to but
that doesn't get me further.

Thx,
Bart



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.