I have migrated our server from Sun ONE Web Server 6.1 to Sun Java System Web Server 7.0.
I'm using Custom Realm with programmatic login.
Suddently i was comforted with fallowing error message while logging to realm: SEC1132: Bad runtime object type. Programmatic login failed.
As i started to investigate, i soon saw that i was almost the only one with this problem (ok, one had also, http://forum.java.sun.com/thread.jspa?messageID=9728353) So.. i decompiled some classes from server and started to search what's the big deal here, since the error message is complete waste of time and errorcode listing says: Contact Support.
What i found was a complete shock to me:
ProgrammaticLogin calls WebProgrammaticLogin class and it's expexting that HttpServletRequests implementation is org.apache.coyote.tomcat5.CoyoteRequestFacade. Then i printed the class-name from servlet and it gave me: org.apache.catalina.core.ApplicationHttpRequest
You see my concern? If anyone has any little bit of tips to give, please do so. First i thought, that some kind of wrapper would be... not guite ok.