1 2 3 Previous Next 44 Replies Latest reply on Feb 16, 2007 6:10 PM by Shane Bryzak

    Seam Security

    jk;l jkl; Expert

      Umm, have we lost the ability to use Hibernate Validators on our login fields (username and password) when using Seam Security's identity.username and identity.password? If not, where would I put 'em?

      Am I gonna hafta override Identity and put the annotations on the overridden getters?

        • 1. Re: Seam Security
          Gavin King Master

          That would be one way - but c'mon, just use a JSF validator tag!

          • 2. Re: Seam Security
            jk;l jkl; Expert

            I'm way too cool for JSF validator tags ;)

            Just to see how the overriding would work, afer you override the class how would you get Seam to use it everytime I refer to "identity" as opposed to the current Identity?

            I could change the line in components.xml bundled with the Seam JARs to the following, but I'm sure there's a way to do this without messing with the Seam JARs. (Seam must be extensible, right?)

            <factory scope="stateless" auto-create="true" name="identity" value="#{myIdentitySubclass}"/>


            • 3. Re: Seam Security
              Shane Bryzak Master

              This should work I think:

               <component class="com.example.MyCustomIdentity"/>
              



              • 4. Re: Seam Security
                jk;l jkl; Expert

                Problem! Why might the security and identity components not be showing up in the debug page under application components? The log shows "seam component not found" for identity.

                I have replaced the previous JARs with the 1.1.5.GA JARs (even reinstalled JBoss using the BETA3 JEMS installer)...are there any other settings that must be changed when moving to 1.1.5?

                Right now I have jboss-seam.jar underneath the EAR directly, and jboss-seam-debug, jboss-seam-ui, jsf-facelets, el-api, and el-ri JARs underneath WAR/WEB-INF/lib...do you see anything wrong here?

                I've also registered jboss-seam.jar in application.xml as a java module.

                Or any other configuration needed for the new security features?

                • 5. Re: Seam Security
                  Shane Bryzak Master

                  Identity is a session-scoped component.

                  • 6. Re: Seam Security
                    Gavin King Master

                     

                    Just to see how the overriding would work, afer you override the class how would you get Seam to use it everytime I refer to "identity" as opposed to the current Identity


                    You don't have to do anything!

                    Your application components always have a higher priority than built-in components. See the @Install annotation. Built-in components are all declared @Install(priority=BUILT_IN).

                    • 7. Re: Seam Security
                      jk;l jkl; Expert

                       

                      "shane.bryzak@jboss.com" wrote:
                      Identity is a session-scoped component.


                      Yes, but my other session-scoped components appear in the Application Context section of the debug page as theName.component. The log is below (from the beginning of one simple request to the end). Several messages say it can't find the identity component...what might be going on?

                      Also, I'm not sure if it's relevant but every field bound to the identity components value - identity.username and .password (regardless of what value, if any, is submitted in it) comes back with a javax.faces.component.UIInput.CONVERSION error.

                      23:35:41,906 DEBUG [SeamPhaseListener] before phase: RESTORE_VIEW(1)
                      23:35:41,906 DEBUG [Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                      23:35:41,906 DEBUG [AbstractSeamPhaseListener] beginning transaction prior to phase: RESTORE_VIEW(1)
                      23:35:41,906 DEBUG [Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                      23:35:41,906 DEBUG [Lifecycle] >>> Begin web request
                      23:35:41,906 DEBUG [Events] Processing event:org.jboss.seam.beforePhase
                      23:35:41,921 DEBUG [SeamPhaseListener] after phase: RESTORE_VIEW(1)
                      23:35:41,921 DEBUG [Events] Processing event:org.jboss.seam.afterPhase
                      23:35:41,921 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.manager
                      23:35:41,921 DEBUG [Component] initializing new instance of: org.jboss.seam.core.manager
                      23:35:41,921 DEBUG [Component] done initializing: org.jboss.seam.core.manager
                      23:35:41,921 DEBUG [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.manager
                      23:35:41,921 DEBUG [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.manager
                      23:35:41,921 DEBUG [Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.manager
                      23:35:41,921 DEBUG [Manager] No stored conversation, or concurrent call to the stored conversation
                      23:35:41,921 DEBUG [AbstractSeamPhaseListener] After restoring conversation context: ConversationContext(26)
                      23:35:41,921 DEBUG [SeamPhaseListener] before phase: APPLY_REQUEST_VALUES(2)
                      23:35:41,921 DEBUG [Events] Processing event:org.jboss.seam.beforePhase
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamPhaseListener] after phase: APPLY_REQUEST_VALUES(2)
                      23:35:41,921 DEBUG [Events] Processing event:org.jboss.seam.afterPhase
                      23:35:41,921 DEBUG [SeamPhaseListener] before phase: PROCESS_VALIDATIONS(3)
                      23:35:41,921 DEBUG [Events] Processing event:org.jboss.seam.beforePhase
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:41,921 DEBUG [Contexts] found in session context: member
                      23:35:41,921 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: identity
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: org
                      23:35:41,921 DEBUG [Component] seam component not found: org
                      23:35:41,921 DEBUG [SeamVariableResolver] could not resolve name
                      23:35:41,921 DEBUG [Component] seam component not found: org.jboss
                      23:35:41,921 DEBUG [Component] seam component not found: org.jboss.seam
                      23:35:41,921 DEBUG [Component] seam component not found: org.jboss.seam.security
                      23:35:41,921 DEBUG [Component] seam component not found: identity
                      23:35:41,921 DEBUG [SeamVariableResolver] could not resolve name
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: identity
                      23:35:41,921 DEBUG [SeamVariableResolver] resolving name: org
                      23:35:41,921 DEBUG [Component] seam component not found: org
                      23:35:41,921 DEBUG [SeamVariableResolver] could not resolve name
                      23:35:41,921 DEBUG [Component] seam component not found: org.jboss
                      23:35:41,921 DEBUG [Component] seam component not found: org.jboss.seam
                      23:35:41,921 DEBUG [Component] seam component not found: org.jboss.seam.security
                      23:35:41,921 DEBUG [Component] seam component not found: identity
                      23:35:41,921 DEBUG [SeamVariableResolver] could not resolve name
                      23:35:41,921 DEBUG [SeamPhaseListener] after phase: PROCESS_VALIDATIONS(3)
                      23:35:41,921 DEBUG [Events] Processing event:org.jboss.seam.afterPhase
                      23:35:41,921 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.validation
                      23:35:41,921 DEBUG [Component] initializing new instance of: org.jboss.seam.core.validation
                      23:35:41,921 DEBUG [Component] done initializing: org.jboss.seam.core.validation
                      23:35:41,921 DEBUG [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.validation
                      23:35:41,921 DEBUG [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.validation
                      23:35:41,921 DEBUG [Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.validation
                      23:35:41,921 DEBUG [Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                      23:35:41,921 DEBUG [AbstractSeamPhaseListener] committing transaction after phase: PROCESS_VALIDATIONS(3)
                      23:35:42,078 DEBUG [Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                      23:35:42,078 DEBUG [SeamPhaseListener] before phase: RENDER_RESPONSE(6)
                      23:35:42,078 DEBUG [Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                      23:35:42,078 DEBUG [AbstractSeamPhaseListener] beginning transaction prior to phase: RENDER_RESPONSE(6)
                      23:35:42,078 DEBUG [Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                      23:35:42,078 DEBUG [Events] Processing event:org.jboss.seam.preRemoveVariable.org.jboss.seam.core.conversationList
                      23:35:42,078 DEBUG [Events] Processing event:org.jboss.seam.postRemoveVariable.org.jboss.seam.core.conversationList
                      23:35:42,078 DEBUG [Events] Processing event:org.jboss.seam.preRemoveVariable.org.jboss.seam.core.switcher
                      23:35:42,078 DEBUG [Events] Processing event:org.jboss.seam.postRemoveVariable.org.jboss.seam.core.switcher
                      23:35:42,078 DEBUG [Events] Processing event:org.jboss.seam.preRemoveVariable.org.jboss.seam.core.conversationStack
                      23:35:42,078 DEBUG [Events] Processing event:org.jboss.seam.postRemoveVariable.org.jboss.seam.core.conversationStack
                      23:35:42,078 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.facesMessages
                      23:35:42,078 DEBUG [Component] initializing new instance of: org.jboss.seam.core.facesMessages
                      23:35:42,078 DEBUG [Component] done initializing: org.jboss.seam.core.facesMessages
                      23:35:42,078 DEBUG [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.facesMessages
                      23:35:42,078 DEBUG [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.facesMessages
                      23:35:42,078 DEBUG [Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.facesMessages
                      23:35:42,078 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.conversation
                      23:35:42,078 DEBUG [Component] initializing new instance of: org.jboss.seam.core.conversation
                      23:35:42,078 DEBUG [Component] done initializing: org.jboss.seam.core.conversation
                      23:35:42,078 DEBUG [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.conversation
                      23:35:42,078 DEBUG [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.conversation
                      23:35:42,078 DEBUG [Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.conversation
                      23:35:42,078 DEBUG [Events] Processing event:org.jboss.seam.beforePhase
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: identity
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: org
                      23:35:42,078 DEBUG [Component] seam component not found: org
                      23:35:42,078 DEBUG [SeamVariableResolver] could not resolve name
                      23:35:42,078 DEBUG [Component] seam component not found: org.jboss
                      23:35:42,078 DEBUG [Component] seam component not found: org.jboss.seam
                      23:35:42,078 DEBUG [Component] seam component not found: org.jboss.seam.security
                      23:35:42,078 DEBUG [Component] seam component not found: identity
                      23:35:42,078 DEBUG [SeamVariableResolver] could not resolve name
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: identity
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: org
                      23:35:42,078 DEBUG [Component] seam component not found: org
                      23:35:42,078 DEBUG [SeamVariableResolver] could not resolve name
                      23:35:42,078 DEBUG [Component] seam component not found: org.jboss
                      23:35:42,078 DEBUG [Component] seam component not found: org.jboss.seam
                      23:35:42,078 DEBUG [Component] seam component not found: org.jboss.seam.security
                      23:35:42,078 DEBUG [Component] seam component not found: identity
                      23:35:42,078 DEBUG [SeamVariableResolver] could not resolve name
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,078 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,078 DEBUG [Contexts] found in session context: member
                      23:35:42,078 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,093 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,093 DEBUG [Contexts] found in session context: member
                      23:35:42,093 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,093 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,093 DEBUG [Contexts] found in session context: member
                      23:35:42,093 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,093 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,093 DEBUG [Contexts] found in session context: member
                      23:35:42,093 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,093 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,093 DEBUG [Contexts] found in session context: member
                      23:35:42,093 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,093 DEBUG [SeamVariableResolver] resolving name: member
                      23:35:42,093 DEBUG [Contexts] found in session context: member
                      23:35:42,093 DEBUG [SeamVariableResolver] resolved name to Seam component
                      23:35:42,093 DEBUG [SeamPhaseListener] after phase: RENDER_RESPONSE(6)
                      23:35:42,093 DEBUG [Events] Processing event:org.jboss.seam.afterPhase
                      23:35:42,093 DEBUG [Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                      23:35:42,093 DEBUG [AbstractSeamPhaseListener] committing transaction after phase: RENDER_RESPONSE(6)
                      23:35:42,093 DEBUG [Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                      23:35:42,093 DEBUG [Manager] Discarding conversation state: 26
                      23:35:42,093 DEBUG [Lifecycle] After render response, destroying contexts
                      23:35:42,093 DEBUG [Lifecycle] destroying business process context
                      23:35:42,093 DEBUG [Events] Processing event:org.jboss.seam.preDestroyContext.BUSINESS_PROCESS
                      23:35:42,093 DEBUG [Events] Processing event:org.jboss.seam.postDestroyContext.BUSINESS_PROCESS
                      23:35:42,093 DEBUG [Lifecycle] destroying conversation context
                      23:35:42,093 DEBUG [Events] Processing event:org.jboss.seam.preDestroyContext.CONVERSATION
                      23:35:42,093 DEBUG [Contexts] destroying: org.jboss.seam.core.facesMessages
                      23:35:42,093 DEBUG [Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.facesMessages
                      23:35:42,093 DEBUG [Contexts] destroying: org.jboss.seam.core.conversation
                      23:35:42,093 DEBUG [Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.conversation
                      23:35:42,093 DEBUG [Events] Processing event:org.jboss.seam.postDestroyContext.CONVERSATION
                      23:35:42,093 DEBUG [Lifecycle] flushing server-side conversation context
                      23:35:42,093 DEBUG [Lifecycle] flushing session context
                      23:35:42,093 DEBUG [Lifecycle] destroying event context
                      23:35:42,093 DEBUG [Events] Processing event:org.jboss.seam.preDestroyContext.EVENT
                      23:35:42,093 DEBUG [Contexts] destroying: org.jboss.seam.core.manager
                      23:35:42,093 DEBUG [Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.manager
                      23:35:42,093 DEBUG [Contexts] destroying: org.jboss.seam.core.validation
                      23:35:42,093 DEBUG [Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.validation
                      23:35:42,093 DEBUG [Contexts] destroying: facelets.Encoding
                      23:35:42,093 DEBUG [Contexts] destroying: org.apache.myfaces.application.jsp.JspStateManagerImpl.RESTORED_SERIALIZED_VIEW
                      23:35:42,093 DEBUG [Contexts] destroying: jsf_sequence
                      23:35:42,093 DEBUG [Contexts] destroying: org.apache.myfaces.application.jsp.JspStateManagerImpl.SERIALIZED_VIEW
                      23:35:42,093 DEBUG [Contexts] destroying: com.sun.facelets.legacy.ELCONTEXT
                      23:35:42,093 DEBUG [Events] Processing event:org.jboss.seam.postDestroyContext.EVENT
                      23:35:42,093 DEBUG [Lifecycle] <<< End web request
                      23:35:42,093 DEBUG [Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                      23:35:42,093 DEBUG [SeamExceptionFilter] ended request


                      • 8. Re: Seam Security
                        Shane Bryzak Master

                        I'm not sure what the problem is but one thing I noticed you mention is that you have the el-* jars in your war file - I'm pretty sure they need to be in the ear root (and registered in application.xml).

                        If this issue persists, feel free to post a working example to jira and I'd be happy to look at it for you.

                        • 9. Re: Seam Security
                          Pete Muir Master

                          Make sure you have the drools jars in your ear root/application.xml as well

                          • 10. Re: Seam Security
                            jk;l jkl; Expert

                            Both those suggestions solved that problem, thanks.


                            When users logout, if the link has an action of identity.logout, I find that because it's not my custom method I can't do things like Seam.invalidateSession() and clear the session of its context variables and other custom things specific to a given application.

                            How would I be able to incorporate these things when somebody logs out?

                            • 11. Re: Seam Security
                              Shane Bryzak Master

                              identity.logout() is pretty much a convenience method only, all it does is call Seam.invalidateSession(). If you need more custom behaviour you can write your own logout method.

                              • 12. Re: Seam Security
                                jk;l jkl; Expert

                                Ok, that's what I would've guessed. By the way, I looked through the code of Identity's logout() method and didn't see a call to Seam.invalidateSession() anywhere in the things it calls...am I looking in the wrong place? In fact, that method does a few things...

                                Also, if writing my own logout method could I specify a logout method like I do a login method in components.xml?

                                Or would I have to subclass Identity and override logout?

                                • 13. Re: Seam Security
                                  jk;l jkl; Expert

                                  Also, if 99/100 pages need to only allow access to logged in users, do I need to add the following to every one of those 99 page elements in pages.xml?

                                  Or is there a simpler way to do this (e.g. set a default of every page requiring login then override it with a few pages that don't)? Or does using security.drl have some functionality that'd be useful for this?

                                  <restrict>#{identity.loggedIn}</restrict>


                                  • 14. Re: Seam Security
                                    Ben Catherall Newbie

                                    Yeah... i just upgraded from 1.1.1CVS with security to 1.1.5GA today, and whilst the updated security architecture is definately simpler, I did like the wildcard constraints! Perhaps

                                    <page view-id="/members-only/*">
                                    ...
                                    </page>


                                    Or something? cheers- Ben

                                    1 2 3 Previous Next