Bugs item #713613, was opened at 2003-04-01 16:09
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=713613&group_id=22866
Category: JBossWeb
Group: v3.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Mike Finn (mikefinn)
>Assigned to: Scott M Stark (starksm)
Summary: Unable to use declarative security with HTTP clustering
Initial Comment:
Basic application w/ declarative security and HTTP
session clustering enabled. When I post to
j_security_check, I get the stack trace below.
When j_security is invoked, I am getting the exception
below. I have other applications (not using JAAS) which
are working fine in the http session clustered
environment. If it matters, I am using mod_jk2 in front as
a load balancer.
Anyway, I did some digging and a session attribute is
being set of type JBossUserPrincipal (inner class to
JBossUserRealm), which is in fact not serializable. I
have started down the path to making things
serializable, but am into stuff that I am not sure should
be serializing (such as JaasSecurityManager).
I'd be glad to do the fix, but may need some help from
Scott/Jules/etc. I am assuming the principal should be
in the distributed session.
Also, I saw a post in forums that someone had the
problem with 3.0.4.
I can include an EAR if necessary.
mike
14:18:29,541 WARN [jbossweb] WARNING: Exception
for /opm/j_security_check
java.lang.IllegalArgumentException: distributed attribute
value must be
Serializable,EJBObject,EJBHome,UserTransaction or
Context: mjf860
at
org.mortbay.j2ee.session.TypeCheckingInterceptor.setAt
tribute(TypeCheckingInterceptor.java:76)
at
org.mortbay.j2ee.session.StateInterceptor.setAttribute
(StateInterceptor.java:78)
at
org.mortbay.j2ee.session.AroundInterceptor.setAttribute
(AroundInterceptor.java:198)
at
org.mortbay.j2ee.session.StateAdaptor.setAttribute
(StateAdaptor.java:249)
at
org.mortbay.jetty.servlet.FormAuthenticator.authenticate
d(FormAuthenticator.java:118)
at org.mortbay.http.SecurityConstraint.check
(SecurityConstraint.java:401)
at
org.mortbay.http.HttpContext.checkSecurityConstraints
(HttpContext.java:1456)
at
org.mortbay.jetty.servlet.ServletHttpContext.checkSecuri
tyConstraints(ServletHttpContext.java:137)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatc
h(WebApplicationHandler.java:235)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:558)
at org.mortbay.http.HttpContext.handle
(HttpContext.java:1714)
----------------------------------------------------------------------
>Comment By: Scott M Stark (starksm)
Date: 2003-04-03 23:21
Message:
Logged In: YES
user_id=175228
JBossUserPrincipal has been made serializable so that it may
be placed into distribued or persistent sessions. This
change has been made in the 3.2 branch and needs to be
merged to 3.0.
----------------------------------------------------------------------
Comment By: Sacha Labourey (slaboure)
Date: 2003-04-02 02:03
Message:
Logged In: YES
user_id=95900
FYI, this doesn't occur if you don't use FORM authentication.
This is not dependent on which HTTP Session Replication
scheme you use, but, instead, a problem in the Jetty
TypeCheckingInterceptor.
The best thing would be to try to replicate the
credentials+principal as well (i.e. extract the value from the
non-serializable classes) as long as possible to allow failover
without relogging.
----------------------------------------------------------------------
Comment By: Mike Finn (mikefinn)
Date: 2003-04-01 21:01
Message:
Logged In: YES
user_id=418562
Sorry - version is branch_3_2 as of this afternoon.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=713613&group_id=22866
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development