1 Reply Latest reply on Jan 14, 2013 6:35 AM by gadeyne.bram

    Seam 2.3 No authentication method defined

    gadeyne.bram Master

      Hi all,

       

      I'm trying to migrate my seam 2.2.2 project to 2.3.0.Final.

       

      My application already starts and I can view my login screen. The first action however performs the identity.login action and here it all fails with the message below:

       

      16:14:13,454 WARN  [org.jboss.seam.security.management.IdentityManager] (http--127.0.0.1-8080-1) no identity store available - please configure an identityStore if identity management is required.

      16:14:13,454 ERROR [org.jboss.seam.security.jaas.SeamLoginModule] (http--127.0.0.1-8080-1) No authentication method defined - please define authenticate-method for <security:identity/> in components.xml

       

      I have this in my components.xml file

       

      <components xmlns="http://jboss.com/products/seam/components"

                  xmlns:core="http://jboss.com/products/seam/core"

                  xmlns:persistence="http://jboss.com/products/seam/persistence"

                  xmlns:drools="http://jboss.com/products/seam/drools"

                  xmlns:bpm="http://jboss.com/products/seam/bpm"

                  xmlns:security="http://jboss.com/products/seam/security"

                  xmlns:mail="http://jboss.com/products/seam/mail"

                  xmlns:web="http://jboss.com/products/seam/web"

                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                  xmlns:transaction="http://jboss.com/products/seam/transaction"

                  xmlns:async="http://jboss.com/products/seam/async"

                  xmlns:international="http://jboss.com/products/seam/international"

                  xsi:schemaLocation=

                      "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.3.xsd

                       http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.3.xsd

                       http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.3.xsd

                       http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.3.xsd

                       http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.3.xsd

                       http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.3.xsd

                       http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.3.xsd

                       http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.3.xsd

                       http://jboss.com/products/seam/async http://jboss.com/products/seam/async-2.3.xsd

                       http://jboss.com/products/seam/international-2.3.xsd

                       http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.3.xsd">

       

      <security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>

       

      ...

       

      I use an ear deployment with several ejb modules so I've found that I will have to add component definitions with the jndi pattern for my ejb components. My authenticator component is a regular bean annotated with @Name. Should I do something else or is this not the reason why I get this message?