Please refer my post in jaas/security thread.
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=60472
--
I get this error after login using JAAS. obtaining a remote from eclipse workbench does not create this error, but when i deploy the ejbs in a EAR, i faced this problem.
error stack:
15:40:11,094 INFO [STDOUT] java.lang.ClassCastException
15:40:11,094 INFO [STDOUT] at org.jboss.util.property.PropertyMap.remove(PropertyMap.java:198)
15:40:11,094 INFO [STDOUT] at org.jnp.interfaces.NamingContext.getEnv(NamingContext.java:1299)
15:40:11,094 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:526)
15:40:11,094 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)
15:40:11,094 INFO [STDOUT] at javax.naming.InitialContext.lookup(InitialContext.java:347)
15:40:11,094 INFO [STDOUT] at jmail.ejb.util.MailerEnterpriseFactory.getRemoteHome(MailerEnterpriseFactory.java:151)