It looks like both my UserRealm and SimplePrincipal implementations need to be Serializable.
This will most likely involve a rewrite of their current implementations. Before I do this could someone confirm that this is the case and perhaps explain the reasons behind this requirement, so that I don't put time in where it is not needed. Thanks guys, Jules Anatoly Akkerman wrote: > Hello all interested > > I've managed to get past this item as well. On every authentication I > don't set JBossUserPrincipal to be the principal registered with the > SecurityAssociation, rather I create a new SimplePrincipal (which is > Serializable, while JBossUserPrincipal is not) and stuff works. (It seems > to me that the Serialization exception was coming up when an EJB proxy > would try to do an invocation and pass along the current Principal held in > ThreadLocal by SecurityAssociation, but JBossUserPrincipal is not > Serializable) > > At the moment I am just interested in getting my demo to work but would > gladly commit my hack to the CVS. Though, it seems to me, the Jetty/JBoss > security integration has to be cleaned up anyway. > > Anatoly. > > On Sun, 30 Dec 2001, Anatoly Akkerman wrote: > > > > > Hi, I've tweaked the JBossUserRealm and its inner class JBossUserPrincipal > > to authenticate with JBoss on every request. It seems to check the roles > > properly but now it fails with the following error: > > > > 18:34:14,585 WARN [Jetty] WARNING: Servlet Exception for > > /d-module-3/control/signin > > java.lang.reflect.UndeclaredThrowableException: java.io.NotSerializableException > > : org.jboss.jetty.JBossUserRealm > > <<no stack trace available>> > > > > Now I am stuck without knowing where to look next to figure out what's > > going on. Any suggestions how to turn on Jetty debugging? (I could not > > find anything in Jetty MBean interface or in jetty.xml inside the sar) > > > > Thanks in advance. > > > > ------------------------------------------------------------------------- > > Anatoly Akkerman > > Computer Science Dept. > > Courant Institute of Mathematical Sciences, NYU > > 715 Broadway, #719 Tel: 212 998-3493 > > New York, NY 10003 Fax: 212 995-4123 > > ------------------------------------------------------------------------- > > > > > > _______________________________________________ > > Jboss-development mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-development > > > > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development