Hi - I am using JBoss-2.4.3_Jetty-3.1.3-1, and I get the following error when I try to run tutorial1.ear examples.
http://localhost:8080/jaas-example1/restricted/SecureServlet
[Jetty] Security- User: scott is authenticated
[Jetty] WARNING: GET /jaas-example1/restricted/SecureServlet HTTP/1.1
java.lang.ClassCastException: java.lang.String
at org.jboss.security.plugins.JaasSecurityManager.doesUserHaveRole(JaasS
ecurityManager.java:278)
at org.jboss.jetty.JBossUserRealm$User.isUserInRole(JBossUserRealm.java:
105)
at org.mortbay.http.handler.SecurityHandler.authenticatedInRole(Security
Handler.java:360)
at org.mortbay.http.handler.SecurityHandler.handle(SecurityHandler.java:
286)
at org.mortbay.http.HandlerContext.handle(HandlerContext.java:1037)
at org.mortbay.http.HandlerContext.handle(HandlerContext.java:992)
at org.mortbay.http.HttpServer.service(HttpServer.java:699)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:745)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:918)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:760)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
148)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:716)
at java.lang.Thread.run(Thread.java:484)
Can anyone help? The build of those examples was a bit funny (had to mess around a bit), but would that affect it?
See the reply a made to a more recent thread on JAAS/Jetty....
Jules