3 Replies Latest reply on Sep 5, 2008 10:29 PM by Alfredo Anderson

    identity.login does not call authenticator.authenticate (jboss-4.2.3.GA, jboss-seam-2.0.2.SP1, ICEfaces-1.7.1)

    Alfredo Anderson Newbie

      I'm trying to upgrade an application from Seam 1.2.1 to Seam 1.7.1 and I'm having a problem with identity.login.


      I've reproduced the problem with the jboss-seam icefaces example (seam-icefaces) so I'll use the example in the post.


      The registration works Ok but the login doesn't (AuthenticatorAction.authenticate() never gets called).


      Any help will be apreciated.


      Regards


      Aditional information


      I've tried other examples (ie. seam dvdstore) and they work ok (deploy included).


      The deploy task of the build.xml file fails (output below) so I add the icefaces jars by hand.


      The .ear structure is



      seam-icefaces.ear
      seam-icefaces.ear/jboss-seam.jar
      seam-icefaces.ear/lib
      seam-icefaces.ear/lib/jboss-el.jar
      seam-icefaces.ear/META-INF
      seam-icefaces.ear/META-INF/application.xml
      seam-icefaces.ear/META-INF/jboss-app.xml
      seam-icefaces.ear/META-INF/MANIFEST.MF
      seam-icefaces.ear/seam-icefaces.jar
      seam-icefaces.ear/seam-icefaces.war
      seam-icefaces.ear/seam-icefaces.war/book.xhtml
      ...
      seam-icefaces.ear/seam-icefaces.war/main.xhtml
      seam-icefaces.ear/seam-icefaces.war/META-INF
      seam-icefaces.ear/seam-icefaces.war/META-INF/MANIFEST.MF
      seam-icefaces.ear/seam-icefaces.war/password.xhtml
      seam-icefaces.ear/seam-icefaces.war/register.xhtml
      seam-icefaces.ear/seam-icefaces.war/template.xhtml
      seam-icefaces.ear/seam-icefaces.war/WEB-INF
      seam-icefaces.ear/seam-icefaces.war/WEB-INF/classes
      seam-icefaces.ear/seam-icefaces.war/WEB-INF/classes/messages.properties
      seam-icefaces.ear/seam-icefaces.war/WEB-INF/classes/messages_en.properties
      seam-icefaces.ear/seam-icefaces.war/WEB-INF/components.xml
      seam-icefaces.ear/seam-icefaces.war/WEB-INF/faces-config.xml
      seam-icefaces.ear/seam-icefaces.war/WEB-INF/lib
      seam-icefaces.ear/seam-icefaces.war/WEB-INF/lib/backport-util-concurrent.jar
      seam-icefaces.ear/seam-icefaces.war/WEB-INF/lib/commons-beanutils.jar
      seam-icefaces.ear/seam-icefaces.war/WEB-INF/lib/commons-fileupload.jar
      seam-icefaces.ear/seam-icefaces.war/WEB-INF/lib/icefaces-comps.jar
      seam-icefaces.ear/seam-icefaces.war/WEB-INF/lib/icefaces-facelets.jar
      seam-icefaces.ear/seam-icefaces.war/WEB-INF/lib/icefaces.jar
      seam-icefaces.ear/seam-icefaces.war/WEB-INF/lib/jboss-seam-debug.jar
      seam-icefaces.ear/seam-icefaces.war/WEB-INF/lib/jboss-seam-ui.jar
      seam-icefaces.ear/seam-icefaces.war/WEB-INF/lib/jsf-facelets.jar
      seam-icefaces.ear/seam-icefaces.war/WEB-INF/lib/urlrewritefilter.jar
      seam-icefaces.ear/seam-icefaces.war/WEB-INF/pages.xml
      seam-icefaces.ear/seam-icefaces.war/WEB-INF/web.xml
      



      deploy task output



      Buildfile: C:\Documents and Settings\aanderson.000\Escritorio\jboss-seam-2.0.2.SP1\examples\icefaces\build.xml
      initcopy:
      initpoms:
           [echo] Setting up dependencies
           [copy] Copying 1 file to C:\Documents and Settings\aanderson.000\Escritorio\jboss-seam-2.0.2.SP1\classes\poms
      [artifact:install] [INFO] Installing C:\Documents and Settings\aanderson.000\Escritorio\jboss-seam-2.0.2.SP1\classes\poms\root.pom to C:\Documents and Settings\aanderson.000\.m2\repository\org\jboss\seam\root\2.0.2.SP1\root-2.0.2.SP1.pom
           [copy] Copying 1 file to C:\Documents and Settings\aanderson.000\Escritorio\jboss-seam-2.0.2.SP1\classes\poms
      [artifact:install] [INFO] Installing C:\Documents and Settings\aanderson.000\Escritorio\jboss-seam-2.0.2.SP1\classes\poms\parent.pom to C:\Documents and Settings\aanderson.000\.m2\repository\org\jboss\seam\parent\2.0.2.SP1\parent-2.0.2.SP1.pom
           [copy] Copying 1 file to C:\Documents and Settings\aanderson.000\Escritorio\jboss-seam-2.0.2.SP1\classes\poms
           [copy] Copying 1 file to C:\Documents and Settings\aanderson.000\Escritorio\jboss-seam-2.0.2.SP1\classes\poms
           [copy] Copying 1 file to C:\Documents and Settings\aanderson.000\Escritorio\jboss-seam-2.0.2.SP1\classes\poms
           [copy] Copying 1 file to C:\Documents and Settings\aanderson.000\Escritorio\jboss-seam-2.0.2.SP1\classes\poms
           [copy] Copying 1 file to C:\Documents and Settings\aanderson.000\Escritorio\jboss-seam-2.0.2.SP1\classes\poms
           [copy] Copying 1 file to C:\Documents and Settings\aanderson.000\Escritorio\jboss-seam-2.0.2.SP1\classes\poms
           [copy] Copying 1 file to C:\Documents and Settings\aanderson.000\Escritorio\jboss-seam-2.0.2.SP1\classes\poms
           [copy] Copying 1 file to C:\Documents and Settings\aanderson.000\Escritorio\jboss-seam-2.0.2.SP1\classes\poms
           [copy] Copying 1 file to C:\Documents and Settings\aanderson.000\Escritorio\jboss-seam-2.0.2.SP1\classes\poms
           [copy] Copying 1 file to C:\Documents and Settings\aanderson.000\Escritorio\jboss-seam-2.0.2.SP1\classes\poms
           [copy] Copying 1 file to C:\Documents and Settings\aanderson.000\Escritorio\jboss-seam-2.0.2.SP1\classes\poms
      copyseam:
      copyseamdependencies:
      copyextradependencies:
      [artifact:dependencies] Downloading: org/icefaces/icefaces/1.7.1/icefaces-1.7.1.pom from repository.jboss.org
      [artifact:dependencies] Downloading: org/icefaces/icefaces/1.7.1/icefaces-1.7.1.pom from central
      [artifact:dependencies] Downloading: org/icefaces/icefaces-comps/1.7.1/icefaces-comps-1.7.1.pom from repository.jboss.org
      [artifact:dependencies] Downloading: org/icefaces/icefaces-comps/1.7.1/icefaces-comps-1.7.1.pom from central
      [artifact:dependencies] Downloading: org/icefaces/icefaces-facelets/1.7.1/icefaces-facelets-1.7.1.pom from repository.jboss.org
      [artifact:dependencies] Downloading: org/icefaces/icefaces-facelets/1.7.1/icefaces-facelets-1.7.1.pom from central
      [artifact:dependencies] Downloading: org/icefaces/icefaces/1.7.1/icefaces-1.7.1.jar from repository.jboss.org
      [artifact:dependencies] Downloading: org/icefaces/icefaces/1.7.1/icefaces-1.7.1.jar from central
      [artifact:dependencies] Downloading: org/icefaces/icefaces-comps/1.7.1/icefaces-comps-1.7.1.jar from repository.jboss.org
      [artifact:dependencies] Downloading: org/icefaces/icefaces-comps/1.7.1/icefaces-comps-1.7.1.jar from central
      [artifact:dependencies] Downloading: org/icefaces/icefaces-facelets/1.7.1/icefaces-facelets-1.7.1.jar from repository.jboss.org
      [artifact:dependencies] Downloading: org/icefaces/icefaces-facelets/1.7.1/icefaces-facelets-1.7.1.jar from central
      [artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
      [artifact:dependencies]  Diagnosis:
      [artifact:dependencies] 
      [artifact:dependencies] Unable to resolve artifact: Missing:
      [artifact:dependencies] ----------
      [artifact:dependencies] 1) org.icefaces:icefaces:jar:1.7.1
      [artifact:dependencies] 
      [artifact:dependencies]   Try downloading the file manually from the project website.
      [artifact:dependencies] 
      [artifact:dependencies]   Then, install it using the command: 
      [artifact:dependencies]       mvn install:install-file -DgroupId=org.icefaces -DartifactId=icefaces -Dversion=1.7.1 -Dpackaging=jar -Dfile=/path/to/file
      [artifact:dependencies] 
      [artifact:dependencies]   Alternatively, if you host your own repository you can deploy the file there: 
      [artifact:dependencies]       mvn deploy:deploy-file -DgroupId=org.icefaces -DartifactId=icefaces -Dversion=1.7.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
      [artifact:dependencies] 
      [artifact:dependencies]   Path to dependency: 
      [artifact:dependencies]        1) org.apache.maven:super-pom:jar:2.0
      [artifact:dependencies]        2) org.icefaces:icefaces:jar:1.7.1
      [artifact:dependencies] 
      [artifact:dependencies] 2) org.icefaces:icefaces-comps:jar:1.7.1
      [artifact:dependencies] 
      [artifact:dependencies]   Try downloading the file manually from the project website.
      [artifact:dependencies] 
      [artifact:dependencies]   Then, install it using the command: 
      [artifact:dependencies]       mvn install:install-file -DgroupId=org.icefaces -DartifactId=icefaces-comps -Dversion=1.7.1 -Dpackaging=jar -Dfile=/path/to/file
      [artifact:dependencies] 
      [artifact:dependencies]   Alternatively, if you host your own repository you can deploy the file there: 
      [artifact:dependencies]       mvn deploy:deploy-file -DgroupId=org.icefaces -DartifactId=icefaces-comps -Dversion=1.7.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
      [artifact:dependencies] 
      [artifact:dependencies]   Path to dependency: 
      [artifact:dependencies]        1) org.apache.maven:super-pom:jar:2.0
      [artifact:dependencies]        2) org.icefaces:icefaces-comps:jar:1.7.1
      [artifact:dependencies] 
      [artifact:dependencies] 3) org.icefaces:icefaces-facelets:jar:1.7.1
      [artifact:dependencies] 
      [artifact:dependencies]   Try downloading the file manually from the project website.
      [artifact:dependencies] 
      [artifact:dependencies]   Then, install it using the command: 
      [artifact:dependencies]       mvn install:install-file -DgroupId=org.icefaces -DartifactId=icefaces-facelets -Dversion=1.7.1 -Dpackaging=jar -Dfile=/path/to/file
      [artifact:dependencies] 
      [artifact:dependencies]   Alternatively, if you host your own repository you can deploy the file there: 
      [artifact:dependencies]       mvn deploy:deploy-file -DgroupId=org.icefaces -DartifactId=icefaces-facelets -Dversion=1.7.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
      [artifact:dependencies] 
      [artifact:dependencies]   Path to dependency: 
      [artifact:dependencies]        1) org.apache.maven:super-pom:jar:2.0
      [artifact:dependencies]        2) org.icefaces:icefaces-facelets:jar:1.7.1
      [artifact:dependencies] 
      [artifact:dependencies] ----------
      [artifact:dependencies] 3 required artifacts are missing.
      [artifact:dependencies] 
      [artifact:dependencies] for artifact: 
      [artifact:dependencies]   org.apache.maven:super-pom:jar:2.0
      [artifact:dependencies] 
      [artifact:dependencies] from the specified remote repositories:
      [artifact:dependencies]   central (http://repo1.maven.org/maven2),
      [artifact:dependencies]   repository.jboss.org (http://repository.jboss.org/maven2)
      [artifact:dependencies] 
      [artifact:dependencies] 
      
      BUILD FAILED
      C:\Documents and Settings\aanderson.000\Escritorio\jboss-seam-2.0.2.SP1\examples\icefaces\build.xml:28: Unable to resolve artifact: Missing:
      ----------
      1) org.icefaces:icefaces:jar:1.7.1
      
        Try downloading the file manually from the project website.
      
        Then, install it using the command: 
            mvn install:install-file -DgroupId=org.icefaces -DartifactId=icefaces -Dversion=1.7.1 -Dpackaging=jar -Dfile=/path/to/file
      
        Alternatively, if you host your own repository you can deploy the file there: 
            mvn deploy:deploy-file -DgroupId=org.icefaces -DartifactId=icefaces -Dversion=1.7.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
      
        Path to dependency: 
             1) org.apache.maven:super-pom:jar:2.0
             2) org.icefaces:icefaces:jar:1.7.1
      
      2) org.icefaces:icefaces-comps:jar:1.7.1
      
        Try downloading the file manually from the project website.
      
        Then, install it using the command: 
            mvn install:install-file -DgroupId=org.icefaces -DartifactId=icefaces-comps -Dversion=1.7.1 -Dpackaging=jar -Dfile=/path/to/file
      
        Alternatively, if you host your own repository you can deploy the file there: 
            mvn deploy:deploy-file -DgroupId=org.icefaces -DartifactId=icefaces-comps -Dversion=1.7.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
      
        Path to dependency: 
             1) org.apache.maven:super-pom:jar:2.0
             2) org.icefaces:icefaces-comps:jar:1.7.1
      
      3) org.icefaces:icefaces-facelets:jar:1.7.1
      
        Try downloading the file manually from the project website.
      
        Then, install it using the command: 
            mvn install:install-file -DgroupId=org.icefaces -DartifactId=icefaces-facelets -Dversion=1.7.1 -Dpackaging=jar -Dfile=/path/to/file
      
        Alternatively, if you host your own repository you can deploy the file there: 
            mvn deploy:deploy-file -DgroupId=org.icefaces -DartifactId=icefaces-facelets -Dversion=1.7.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
      
        Path to dependency: 
             1) org.apache.maven:super-pom:jar:2.0
             2) org.icefaces:icefaces-facelets:jar:1.7.1
      
      ----------
      3 required artifacts are missing.
      
      for artifact: 
        org.apache.maven:super-pom:jar:2.0
      
      from the specified remote repositories:
        central (http://repo1.maven.org/maven2),
        repository.jboss.org (http://repository.jboss.org/maven2)
      
      
      Total time: 13 seconds
      --------------------------------------