Tomcat - How to authenticate two different webapps?

chomsky

Limp Gawd
Joined
Aug 18, 2004
Messages
251
I have to different webapps that each have their own users.xml to define access to the webapps but I can't seem to get it to work. I thought something along this line in the server.xml would do the trick:
<Context path="/javacritiquer" docBase="javacritiquer" debug="0"
reloadable="true" >
<Realm className="org.apache.catalina.realm.MemoryRealm"
pathname="webapps/javacritiquer/WEB-INF/users.xml" />
</Context>

<Context path="/jcritiquer" docBase="jcritiquer" debug="0"
reloadable="true" >
<Realm className="org.apache.catalina.realm.MemoryRealm"
pathname="webapps/jcritiquer/WEB-INF/users.xml" />
</Context>

but when I use that I can't login to either webapp. Anyone know what's wrong?
 
Back
Top