I'd like to access the classes implementing Tomcat in my web app (to get the current Realm, as described here). The Tomcat docs mention that those classes are off-limits to web apps, and indeed this doesn't work for me (the class is not found). Since this is apparently possible in general, the question is: How do I need to rearrange the Tomcat jars to make this work, or which setting needs to be tweaked?