Using Tomcat 4 Security Realms
Subject:   Using Realm from within a context.xml file
Date:   2003-06-19 14:06:17
From:   anonymous2
I ran into this problem today. I was attempting to implement realm security from my app and wasn't able to get it to work. I have a META-INF directory with a context.xml file in it and am using ant to deploy my app. It turns out that ant doesn't do a good job of escaping special characters across the net. I had to use the following:


Note the substitution of & for &.