cat /opt/glassfish/domains/domain1/applications/j2ee-modules/tunnel-web/META-INF/context.xml
<Context>
<Realm
className="org.apache.catalina.realm.JAASRealm"
appName="PortalRealm"
userClassNames="PortalPrincipal"
roleClassNames="PortalRole"
/>
</Context>
I have not created a Glassfish Realm. But I am deploying an application that works on Tomcat 5 & 6 on Glassfish and I am seeing some JAAS realm related errors when I access this webapp.
The following is the stack trace:
~~~~~~~~~~~~~~~~~~~~~~
[#|2008-04-15T13:21:19.542+0200|SEVERE|sun-appserver9.1|org.apache.coyote.tomcat5.CoyoteAdapter|_ThreadID=18;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=a65284c3-5567-4f48-8a2d-662706187968;|PWC3989: An exception or error occurred in the container during the request processing
java.lang.ClassCastException: org.apache.catalina.realm.JAASRealm cannot be cast to com.sun.web.security.RealmAdapter
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:89)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at
~~~~~~~~~~~~~~~~~~~~~~
From my limited knowledge of GFV2, realms are only defined in the domain.xml. However I have no such entries in it. So is GFV2 pasring the context.xml inside my webapp and trying to initialize a realm based on its content?
Is this a bug/feature?
thanks,
_raju
[Message sent by forum member 'uppalapati' (uppalapati)]
http://forums.java.net/jive/thread.jspa?messageID=287439