Just from a quick look at the Catalina Javadocs, I can't help but wonder if you're not mixing org.apache.catalina classes and javaservlet classes too casually. It looks like it's possible that a Catalina request may be castable to an unblessed (and thus possibly incomplete) j2ee servlet request. However, there's no explicit method to go from one to the other, nor an inheritance path nor an explicit blessing for doing such a cast. So the fact that it compiled and executed without exception may be an artifact of an undocumented internal structure, as from reading the Javadocs, I'd expect it to fail outright. You may need to check the Tomcat source code to see if you want to do is safe.
Sometimes the only way things ever got fixed is because people became uncomfortable.
Did you just should on me? You should read this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth