7 Replies Latest reply on Feb 23, 2007 8:02 PM by shane.bryzak

    Seam 1.1.6 Security with ICEFaces

    mariuszs

       

      Also, to make use of the security EL functions, SeamFaceletViewHandler must be used.


      So, it is possible to use SeamSecurity with ICEFaces (and com.icesoft.faces.facelets.D2DSeamFaceletViewHandler instead of SeamFaceletViewHandler)?

        • 1. Re: Seam 1.1.6 Security with ICEFaces
          damianharvey

          I've tried with Seam 1.1.5 and 1.1.6 using IceFaces 1.5.2. When I try to login I get the following error:

          javax.faces.el.EvaluationException: Exception while invoking expression #{authenticator.authenticate}


          This method exists so I assume that the problem is with the FaceletViewHandler? Is there some config change that I can do to get around this?

          Cheers,

          Damian.

          • 2. Re: Seam 1.1.6 Security with ICEFaces
            shane.bryzak

            What does the method look like? In 1.1.6 it should take no parameters.

            • 3. Re: Seam 1.1.6 Security with ICEFaces
              tony.herstell1

              IceFaces is on 1.5.3 ther was a nasty bug in 1.5.2. (they even did an interim unoffical patch for Seam guys!) better to upgrade asap !!!

              I can post my config files if you need help.

              It appears that logout and same 1.1.6 don't work too well right now.

              Gavin, and I assume the IceFaces people, know about it.

              Looking forwards to a new release of IceFaces following their trip to the "Seam Team" that should sort out a lot of Issues.

              • 4. Re: Seam 1.1.6 Security with ICEFaces
                mariuszs

                yes, login is working but logout is broken i ICEfaces 1.5.3 and Seam 1.1.6

                • 5. Re: Seam 1.1.6 Security with ICEFaces
                  jump

                  I dont use ICEFaces, but I have the same problem

                  • 6. Re: Seam 1.1.6 Security with ICEFaces
                    bnghi

                    Does anybody know how to fix the logout problem in ICEFaces 1.5.3 and Seam 1.1.6GA. I get this error when I log out and try to log back in:
                    java.lang.UnsupportedOperationException
                    at com.icesoft.faces.context.BridgeExternalContext.getRequestCookieMap(BridgeExternalContext.java:503)
                    at org.jboss.seam.core.Selector.getCookieValue(Selector.java:59)
                    at org.jboss.seam.security.Identity.initCredentialsFromCookie(Identity.java:91)
                    at org.jboss.seam.security.Identity.create(Identity.java:85)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:585)
                    at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                    at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
                    at org.jboss.seam.Component.callComponentMethod(Component.java:1835)
                    at org.jboss.seam.Component.callCreateMethod(Component.java:1783)
                    at org.jboss.seam.Component.newInstance(Component.java:1772)
                    at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:163)
                    at org.jboss.seam.contexts.Lifecycle.beginSession(Lifecycle.java:223)
                    at org.jboss.seam.servlet.SeamListener.sessionCreated(SeamListener.java:41)
                    at org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:384)
                    at org.apache.catalina.session.StandardSession.setId(StandardSession.java:356)
                    at org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:824)
                    at org.apache.catalina.session.StandardManager.createSession(StandardManager.java:290)
                    at org.apache.catalina.connector.Request.doGetSession(Request.java:2223)
                    at org.apache.catalina.connector.Request.getSession(Request.java:2024)
                    at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:831)

                    • 7. Re: Seam 1.1.6 Security with ICEFaces
                      shane.bryzak

                      I came across this problem myself when I attempted to convert the icefaces example to use seam security. I believe that it's related to the fact that logout() invalidates the session (I don't think icefaces likes this) but I need to dig a little deeper to find out why.