9 Replies Latest reply on Feb 1, 2011 7:50 AM by Rodrigo Barbosa

    Unable to authenticate with icefaces and seam

    Goutham Rao Newbie

      Hello All,


      I'm working on a icefaces, seam with hibernate provided jpa project and i seems to have hit a wall. I am trying to use seam's built in security feature Authenticator and am using a icefaces form to submit and validate and i'm getting the below error, which says that it is unable to find the component



      DEBUG [http-8080-1] (PathDispatcher.java:23) - path: /IcefacesDemoProject/block/send-receive-updates
      DEBUG [http-8080-1] (FacesLifecycle.java:52) - >>> Begin JSF request for /IcefacesDemoProject/demo.seam
      DEBUG [http-8080-1] (Manager.java:612) - No stored conversation
      DEBUG [http-8080-1] (Contexts.java:222) - found in application context: org.jboss.seam.core.ConversationIdGenerator
      DEBUG [http-8080-1] (SeamPhaseListener.java:593) - beginning transaction prior to phase: APPLY_REQUEST_VALUES 2
      DEBUG [http-8080-1] (EntityTransaction.java:76) - beginning JPA resource-local transaction
      DEBUG [http-8080-1] (Contexts.java:222) - found in application context: entityManagerFactory
      DEBUG [http-8080-1] (Contexts.java:192) - found in conversation context: org.jboss.seam.persistence.persistenceContexts
      DEBUG [http-8080-1] (SessionImpl.java:220) - opened session at timestamp: 5041070122602496
      DEBUG [http-8080-1] (ManagedPersistenceContext.java:99) - created seam managed persistence context from EntityManagerFactory
      DEBUG [http-8080-1] (JDBCTransaction.java:54) - begin
      DEBUG [http-8080-1] (ConnectionManager.java:421) - opening JDBC connection
      DEBUG [http-8080-1] (BasicResourcePool.java:1644) - trace com.mchange.v2.resourcepool.BasicResourcePool@cd6aa0 [managed: 5, unused: 4, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1b0d33c)
      DEBUG [http-8080-1] (JDBCTransaction.java:59) - current autocommit status: true
      DEBUG [http-8080-1] (JDBCTransaction.java:62) - disabling autocommit
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.core.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.cache.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.transaction.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.framework.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.web.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.faces.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.international.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.theme.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.pageflow.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.bpm.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.jms.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.mail.identity
      DEBUG [http-8080-1] (Contexts.java:202) - found in session context: org.jboss.seam.security.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.core.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.cache.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.transaction.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.framework.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.web.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.faces.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.international.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.theme.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.pageflow.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.bpm.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.jms.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.mail.identity
      DEBUG [http-8080-1] (Contexts.java:202) - found in session context: org.jboss.seam.security.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.core.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.cache.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.transaction.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.framework.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.web.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.faces.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.international.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.theme.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.pageflow.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.bpm.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.jms.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.mail.identity
      DEBUG [http-8080-1] (Contexts.java:202) - found in session context: org.jboss.seam.security.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.core.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.cache.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.transaction.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.framework.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.web.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.faces.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.international.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.theme.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.pageflow.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.bpm.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.jms.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.mail.identity
      DEBUG [http-8080-1] (Contexts.java:202) - found in session context: org.jboss.seam.security.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.core.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.cache.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.transaction.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.framework.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.web.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.faces.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.international.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.theme.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.pageflow.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.bpm.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.jms.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.mail.identity
      DEBUG [http-8080-1] (Contexts.java:202) - found in session context: org.jboss.seam.security.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.core.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.cache.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.transaction.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.framework.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.web.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.faces.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.international.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.theme.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.pageflow.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.bpm.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.jms.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.mail.identity
      DEBUG [http-8080-1] (Contexts.java:202) - found in session context: org.jboss.seam.security.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.core.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.cache.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.transaction.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.framework.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.web.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.faces.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.international.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.theme.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.pageflow.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.bpm.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.jms.identity
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.mail.identity
      DEBUG [http-8080-1] (Contexts.java:202) - found in session context: org.jboss.seam.security.identity
      DEBUG [http-8080-1] (Contexts.java:222) - found in application context: org.jboss.seam.security.configuration
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.core.com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.cache.com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.transaction.com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.framework.com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.web.com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.faces.com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.international.com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.theme.com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.pageflow.com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.bpm.com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.jms.com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.mail.com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.security.com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.security.management.com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.security.permission.com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.security.openid.com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.captcha.com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.excel.exporter.com
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: authenticator
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.core.authenticator
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.cache.authenticator
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.transaction.authenticator
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.framework.authenticator
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.web.authenticator
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.faces.authenticator
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.international.authenticator
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.theme.authenticator
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.pageflow.authenticator
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.bpm.authenticator
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.jms.authenticator
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.mail.authenticator
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.security.authenticator
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.security.management.authenticator
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.security.permission.authenticator
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.security.openid.authenticator
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.captcha.authenticator
      DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.excel.exporter.authenticator
      ERROR [http-8080-1] (SeamLoginModule.java:113) - Error invoking login method
      javax.el.PropertyNotFoundException: Target Unreachable, identifier 'authenticator' resolved to null
           at org.jboss.el.parser.AstValue.getTarget(AstValue.java:38)
           at org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
           at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
           at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:175)
           at org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:109)
           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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
           at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
           at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
           at java.security.AccessController.doPrivileged(Native Method)
           at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
           at javax.security.auth.login.LoginContext.login(LoginContext.java:575)
           at org.jboss.seam.security.Identity.authenticate(Identity.java:344)
           at org.jboss.seam.security.Identity.authenticate(Identity.java:332)
           at org.jboss.seam.security.Identity.login(Identity.java:259)
           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.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342)
           at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
           at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
           at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
           at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
           at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
           at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
           at javax.faces.component.UICommand.broadcast(UICommand.java:387)
           at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
           at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:755)
           at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
           at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
           at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
           at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
           at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:54)
           at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:42)
           at com.icesoft.faces.webapp.http.core.ViewBoundServer.service(ViewBoundServer.java:65)
           at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:44)
           at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
           at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
           at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
           at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
           at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:139)
           at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
           at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
           at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
           at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:82)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
           at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:46)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
           at java.lang.Thread.run(Thread.java:595)
      DEBUG [http-8080-1] (Contexts.java:202) - found in session context: org.jboss.seam.security.rememberMe
      DEBUG [http-8080-1] (Identity.java:280) - Login failed for: admin
      javax.security.auth.login.LoginException: Target Unreachable, identifier 'authenticator' resolved to null
           at org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:114)
           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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
           at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
           at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
           at java.security.AccessController.doPrivileged(Native Method)
           at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
           at javax.security.auth.login.LoginContext.login(LoginContext.java:575)
           at org.jboss.seam.security.Identity.authenticate(Identity.java:344)
           at org.jboss.seam.security.Identity.authenticate(Identity.java:332)
           at org.jboss.seam.security.Identity.login(Identity.java:259)
           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.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342)
           at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
           at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
           at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
           at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
           at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
           at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
           at javax.faces.component.UICommand.broadcast(UICommand.java:387)
           at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
           at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:755)
           at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
           at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
           at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
           at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
           at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:54)
           at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:42)
           at com.icesoft.faces.webapp.http.core.ViewBoundServer.service(ViewBoundServer.java:65)
           at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:44)
           at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
           at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
           at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
           at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
           at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:139)
           at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
           at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
           at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
           at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:82)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
           at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:46)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
           at java.lang.Thread.run(Thread.java:595)
      





        • 1. Re: Unable to authenticate with icefaces and seam
          Goutham Rao Newbie

          my components.xml is as below


          <?xml version="1.0" encoding="UTF-8"?>
          <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:security="http://jboss.com/products/seam/security" 
                xmlns:transaction="http://jboss.com/products/seam/transaction"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd
                           http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd
                           http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd
                           http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd
                           http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd
                           http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd
                           http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.0.xsd">
                                        
           <factory name="authenticator" value="#{com.java.extensions.authenticator}"/>
           <security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
           <persistence:entity-manager-factory name="entityManagerFactory" persistence-unit-name="test"/>
           <persistence:managed-persistence-context auto-create="true"
            entity-manager-factory="#{entityManagerFactory}" name="entityManager"/>
           <transaction:entity-transaction entity-manager="#{entityManager}"/>
          
               
          </components>                 





          Goutham Rao wrote on Dec 31, 2008 14:41:



          Hello All,

          I'm working on a icefaces, seam with hibernate provided jpa project and i seems to have hit a wall. I am trying to use seam's built in security feature Authenticator and am using a icefaces form to submit and validate and i'm getting the below error, which says that it is unable to find the component


          DEBUG [http-8080-1] (PathDispatcher.java:23) - path: /IcefacesDemoProject/block/send-receive-updates
          DEBUG [http-8080-1] (FacesLifecycle.java:52) - >>> Begin JSF request for /IcefacesDemoProject/demo.seam
          DEBUG [http-8080-1] (Manager.java:612) - No stored conversation
          DEBUG [http-8080-1] (Contexts.java:222) - found in application context: org.jboss.seam.core.ConversationIdGenerator
          DEBUG [http-8080-1] (SeamPhaseListener.java:593) - beginning transaction prior to phase: APPLY_REQUEST_VALUES 2
          DEBUG [http-8080-1] (EntityTransaction.java:76) - beginning JPA resource-local transaction
          DEBUG [http-8080-1] (Contexts.java:222) - found in application context: entityManagerFactory
          DEBUG [http-8080-1] (Contexts.java:192) - found in conversation context: org.jboss.seam.persistence.persistenceContexts
          DEBUG [http-8080-1] (SessionImpl.java:220) - opened session at timestamp: 5041070122602496
          DEBUG [http-8080-1] (ManagedPersistenceContext.java:99) - created seam managed persistence context from EntityManagerFactory
          DEBUG [http-8080-1] (JDBCTransaction.java:54) - begin
          DEBUG [http-8080-1] (ConnectionManager.java:421) - opening JDBC connection
          DEBUG [http-8080-1] (BasicResourcePool.java:1644) - trace com.mchange.v2.resourcepool.BasicResourcePool@cd6aa0 [managed: 5, unused: 4, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1b0d33c)
          DEBUG [http-8080-1] (JDBCTransaction.java:59) - current autocommit status: true
          DEBUG [http-8080-1] (JDBCTransaction.java:62) - disabling autocommit
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.core.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.cache.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.transaction.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.framework.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.web.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.faces.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.international.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.theme.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.pageflow.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.bpm.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.jms.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.mail.identity
          DEBUG [http-8080-1] (Contexts.java:202) - found in session context: org.jboss.seam.security.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.core.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.cache.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.transaction.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.framework.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.web.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.faces.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.international.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.theme.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.pageflow.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.bpm.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.jms.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.mail.identity
          DEBUG [http-8080-1] (Contexts.java:202) - found in session context: org.jboss.seam.security.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.core.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.cache.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.transaction.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.framework.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.web.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.faces.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.international.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.theme.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.pageflow.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.bpm.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.jms.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.mail.identity
          DEBUG [http-8080-1] (Contexts.java:202) - found in session context: org.jboss.seam.security.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.core.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.cache.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.transaction.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.framework.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.web.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.faces.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.international.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.theme.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.pageflow.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.bpm.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.jms.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.mail.identity
          DEBUG [http-8080-1] (Contexts.java:202) - found in session context: org.jboss.seam.security.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.core.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.cache.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.transaction.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.framework.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.web.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.faces.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.international.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.theme.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.pageflow.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.bpm.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.jms.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.mail.identity
          DEBUG [http-8080-1] (Contexts.java:202) - found in session context: org.jboss.seam.security.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.core.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.cache.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.transaction.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.framework.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.web.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.faces.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.international.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.theme.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.pageflow.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.bpm.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.jms.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.mail.identity
          DEBUG [http-8080-1] (Contexts.java:202) - found in session context: org.jboss.seam.security.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.core.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.cache.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.transaction.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.framework.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.web.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.faces.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.international.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.theme.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.pageflow.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.bpm.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.jms.identity
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.mail.identity
          DEBUG [http-8080-1] (Contexts.java:202) - found in session context: org.jboss.seam.security.identity
          DEBUG [http-8080-1] (Contexts.java:222) - found in application context: org.jboss.seam.security.configuration
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.core.com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.cache.com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.transaction.com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.framework.com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.web.com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.faces.com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.international.com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.theme.com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.pageflow.com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.bpm.com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.jms.com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.mail.com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.security.com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.security.management.com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.security.permission.com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.security.openid.com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.captcha.com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.excel.exporter.com
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: authenticator
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.core.authenticator
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.cache.authenticator
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.transaction.authenticator
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.framework.authenticator
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.web.authenticator
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.faces.authenticator
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.international.authenticator
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.theme.authenticator
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.pageflow.authenticator
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.bpm.authenticator
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.jms.authenticator
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.mail.authenticator
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.security.authenticator
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.security.management.authenticator
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.security.permission.authenticator
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.security.openid.authenticator
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.captcha.authenticator
          DEBUG [http-8080-1] (Component.java:1984) - seam component not found: org.jboss.seam.excel.exporter.authenticator
          ERROR [http-8080-1] (SeamLoginModule.java:113) - Error invoking login method
          javax.el.PropertyNotFoundException: Target Unreachable, identifier 'authenticator' resolved to null
               at org.jboss.el.parser.AstValue.getTarget(AstValue.java:38)
               at org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
               at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
               at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:175)
               at org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:109)
               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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
               at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
               at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
               at java.security.AccessController.doPrivileged(Native Method)
               at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
               at javax.security.auth.login.LoginContext.login(LoginContext.java:575)
               at org.jboss.seam.security.Identity.authenticate(Identity.java:344)
               at org.jboss.seam.security.Identity.authenticate(Identity.java:332)
               at org.jboss.seam.security.Identity.login(Identity.java:259)
               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.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
               at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342)
               at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
               at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
               at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
               at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
               at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
               at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
               at javax.faces.component.UICommand.broadcast(UICommand.java:387)
               at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
               at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:755)
               at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
               at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
               at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
               at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
               at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:54)
               at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:42)
               at com.icesoft.faces.webapp.http.core.ViewBoundServer.service(ViewBoundServer.java:65)
               at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:44)
               at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
               at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
               at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
               at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
               at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:139)
               at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
               at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
               at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
               at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:82)
               at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
               at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:46)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
               at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
               at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
               at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
               at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
               at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
               at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
               at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
               at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
               at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
               at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
               at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
               at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
               at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
               at java.lang.Thread.run(Thread.java:595)
          DEBUG [http-8080-1] (Contexts.java:202) - found in session context: org.jboss.seam.security.rememberMe
          DEBUG [http-8080-1] (Identity.java:280) - Login failed for: admin
          javax.security.auth.login.LoginException: Target Unreachable, identifier 'authenticator' resolved to null
               at org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:114)
               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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
               at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
               at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
               at java.security.AccessController.doPrivileged(Native Method)
               at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
               at javax.security.auth.login.LoginContext.login(LoginContext.java:575)
               at org.jboss.seam.security.Identity.authenticate(Identity.java:344)
               at org.jboss.seam.security.Identity.authenticate(Identity.java:332)
               at org.jboss.seam.security.Identity.login(Identity.java:259)
               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.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
               at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342)
               at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
               at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
               at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
               at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
               at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
               at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
               at javax.faces.component.UICommand.broadcast(UICommand.java:387)
               at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
               at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:755)
               at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
               at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
               at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
               at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
               at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:54)
               at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:42)
               at com.icesoft.faces.webapp.http.core.ViewBoundServer.service(ViewBoundServer.java:65)
               at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:44)
               at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
               at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
               at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
               at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
               at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:139)
               at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
               at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
               at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
               at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:82)
               at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
               at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:46)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
               at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
               at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
               at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
               at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
               at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
               at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
               at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
               at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
               at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
               at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
               at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
               at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
               at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
               at java.lang.Thread.run(Thread.java:595)
          








          Click HELP for text formatting instructions. Then edit this text and check the preview.

          • 2. Re: Unable to authenticate with icefaces and seam
            John Ament Master

            By default, you use an authenaticator method.  You should have something like this defined:



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



            And a POJO something like this:



            @Name("authenticator")
            public class Authenticator implements java.io.Serializable
            {
                @Logger Log log;
                @In Credentials credentials;
                @In Identity identity;
                public boolean authenticate()




            Do you have something like that?


            This should clear it up for you.  If not, it might be because you're using a different version of seam.

            • 3. Re: Unable to authenticate with icefaces and seam
              Goutham Rao Newbie

              Thanks for replying..
              yes I do have an authenticator defined as a pojo..


              package com.java.extensions;
              
              import javax.persistence.EntityManager;
              import javax.persistence.NoResultException;
              import javax.persistence.Query;
              
              import org.jboss.seam.ScopeType;
              import org.jboss.seam.annotations.In;
              import org.jboss.seam.annotations.Name;
              import org.jboss.seam.annotations.Out;
              import org.jboss.seam.security.Identity;
              import com.wcmda.model.User;
              
              @Name("com.wcmda.extensions.authenticator")
              public class Authenticator {
              
                @In
                EntityManager entityManager;
                
                @In 
                Identity identity;
                
                @Out(required=false, scope=ScopeType.SESSION)
                User user;
                public boolean authenticate() {
              
                  Query q = entityManager.createQuery("SELECT u FROM customer u " +
                            "WHERE u.username = #{identity.username} " +
                            "AND u.password = #{identity.password}");
              
                  try {
                    user = (User) q.getSingleResult();
                    
                    return true;
                  } catch (NoResultException nre) {
                    return false;
                  }
                }
              }
              


              Is there any way to see the components being initialized? Would you think that this might be a configuration issue?


              Thanks,
              Goutham

              • 4. Re: Unable to authenticate with icefaces and seam
                John Ament Master

                Ahhh now I think I see your error.


                in your components.xml you have this:



                 <factory name="authenticator" value="#{com.java.extensions.authenticator}"/>
                 <security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
                



                I think it should be:


                 <factory name="authenticator" value="#{com.wcmda.extensions.authenticator}"/>
                 <security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
                



                if not, what happens if you take out the factory and rename the component as @Name(authenticator) ?

                • 5. Re: Unable to authenticate with icefaces and seam
                  Goutham Rao Newbie

                  Sorry, i copied the wrong version of code.. the package names are matching , it is both com.wcmda.extensions.authenticator ..

                  I removed the factory declaration and renamed the component to @Name(authenticator).. but getting the same error... i just wonder if seam is initialized correctly...


                  please can you have a look at my web.xml and validate it?


                  <?xml version="1.0" encoding="UTF-8"?>
                  <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
                    <display-name>IcefacesDemoProject</display-name>
                    <welcome-file-list>
                      <welcome-file>index.html</welcome-file>
                      <welcome-file>index.htm</welcome-file>
                      <welcome-file>index.jsp</welcome-file>
                      <welcome-file>default.html</welcome-file>
                      <welcome-file>default.htm</welcome-file>
                      <welcome-file>default.jsp</welcome-file>
                    </welcome-file-list>
                    <servlet>
                      <servlet-name>Faces Servlet</servlet-name>
                      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                      <load-on-startup>1</load-on-startup>
                    </servlet>
                    <context-param>
                      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                      <param-value>server</param-value>
                    </context-param>
                    <context-param>
                      <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                      <param-value>.jspx</param-value>
                    </context-param>
                    <context-param>
                      <param-name>com.sun.faces.enableRestoreView11Compatibility</param-name>
                      <param-value>true</param-value>
                    </context-param>
                    <context-param>
                      <description>To allow multiple windows for a single application. See Concurrent DOM Views in Chapter 3. of Developer Guide.</description>
                      <param-name>com.icesoft.faces.concurrentDOMViews</param-name>
                      <param-value>false</param-value>
                    </context-param>
                    <context-param>
                      <description>Turn on/off application-wide synchronous or asynchronous updates. See Synchronous and Asynchronous Updates in Chapter 3. of Developer Guide.</description>
                      <param-name>com.icesoft.faces.synchronousUpdate</param-name>
                      <param-value>false</param-value>
                    </context-param>
                    <context-param>
                      <description>A Google Maps API key is required if gMap component is used. Sign up for an API key from http://code.google.com/apis/maps/signup.html.</description>
                      <param-name>com.icesoft.faces.gmapKey</param-name>
                      <param-value>ABQIAAAADlu0ZiSTam64EKaCQr9eTRTOTuQNzJNXRlYRLknj4cQ89tFfpxTEqxQnVWL4k55OPICgF5_SOZE06A</param-value>
                    </context-param>
                    <context-param>
                      <param-name>com.icesoft.faces.uploadDirectory</param-name>
                      <param-value>upload</param-value>
                    </context-param>
                    <context-param>
                      <param-name>com.icesoft.faces.uploadMaxFileSize</param-name>
                      <param-value>4048576</param-value>
                    </context-param>
                    <servlet>
                      <servlet-name>Persistent Faces Servlet</servlet-name>
                      <servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
                      <load-on-startup>1</load-on-startup>
                    </servlet>
                       <servlet>
                          <servlet-name>Seam Resource Servlet</servlet-name>
                          <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
                      </servlet>
                         <servlet-mapping>
                          <servlet-name>Seam Resource Servlet</servlet-name>
                          <url-pattern>/seam/resource/*</url-pattern>
                      </servlet-mapping>
                    <servlet-mapping>
                      <servlet-name>Persistent Faces Servlet</servlet-name>
                      <url-pattern>*.iface</url-pattern>
                      <url-pattern>*.jspx</url-pattern>
                      <url-pattern>/xmlhttp/*</url-pattern>
                      <url-pattern>/faces/*</url-pattern>
                      <url-pattern>*.seam</url-pattern>
                    </servlet-mapping>
                    <servlet>
                      <servlet-name>Blocking Servlet</servlet-name>
                      <servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
                      <load-on-startup>1</load-on-startup>
                    </servlet>
                    <servlet-mapping>
                      <servlet-name>Blocking Servlet</servlet-name>
                      <url-pattern>/block/*</url-pattern>
                    </servlet-mapping>
                    <servlet>
                      <servlet-name>uploadServlet</servlet-name>
                      <servlet-class>com.icesoft.faces.component.inputfile.FileUploadServlet</servlet-class>
                      <load-on-startup>1</load-on-startup>
                    </servlet>
                    <servlet-mapping>
                      <servlet-name>uploadServlet</servlet-name>
                      <url-pattern>/uploadHtml</url-pattern>
                    </servlet-mapping>
                     <!-- listeners required for this application -->
                      <listener>
                          <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
                      </listener>
                      
                    <listener>
                      <listener-class>com.icesoft.faces.util.event.servlet.ContextEventRepeater</listener-class>
                    </listener>
                    
                        <filter>
                          <filter-name>Seam Filter</filter-name>
                          <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
                      </filter>
                  
                      <filter-mapping>
                          <filter-name>Seam Filter</filter-name>
                          <url-pattern>/*</url-pattern>
                      </filter-mapping>
                      
                      
                  </web-app>




                  • 6. Re: Unable to authenticate with icefaces and seam
                    judy guglielmin Novice

                    There is nothing wrong with your web.xml (although you don't need the context-param for jsf1.1 compatibility when using Seam).
                    The problem is non-ICEfaces related and application related.  You authenticator class is not being resolved.  Check your configuration files and packaging (as well as your backing bean).  In your components.xml, you might want to remove the factory tag.  Just let your login page call the authenticate method perhaps?  When your project is deploying is it trying to resolve this factory (and perhaps can't)?

                    • 7. Re: Unable to authenticate with icefaces and seam
                      Goutham Rao Newbie

                      Thanks Judy , U were absolutely right, components.xml file was not being read. I have corrected it by placing it in the right folders. The application starts up fine and i can see that the datasource is created. On reaching the login page, i am getting the below error. If i can get it this correct I will post my archetype for others to use as I have not found a single one the net with my combination.



                      05-Jan-2009 05:22:38 com.sun.faces.config.ConfigureListener contextInitialized
                      INFO: Initializing Mojarra (1.2_09-b01-BETA1) for context '/iceSeamJpa'
                      05:22:39,075 INFO  [D2DViewHandler]
                      ICEsoft Technologies, Inc.
                      ICEfaces 1.7.2 SP1
                      Build number: 11
                      Revision: 17935
                      
                      05:22:39,231 INFO  [D2DViewHandler] ICEfaces JSP parser disabled. This is a Facelets-only configuration.
                      05:22:39,777 INFO  [ContextEventRepeater] Asynchronous HTTP Service available: false
                      05:22:39,777 INFO  [ContextEventRepeater] JMS API available: false
                      05:22:39,777 INFO  [SeamFilter] Initializing filter: org.jboss.seam.web.redirectFilter
                      05:22:39,777 INFO  [SeamFilter] Initializing filter: org.jboss.seam.web.exceptionFilter
                      05:22:39,777 INFO  [SeamFilter] Initializing filter: org.jboss.seam.web.loggingFilter
                      05:22:39,792 INFO  [SeamFilter] Initializing filter: org.jboss.seam.debug.hotDeployFilter
                      05:22:39,901 INFO  [EnvironmentAdaptingServlet] GlassFish ARP available: false
                      05:22:39,901 INFO  [EnvironmentAdaptingServlet] Jetty ARP available: true
                      05:22:39,901 INFO  [EnvironmentAdaptingServlet] Adapting to Jetty ARP environment
                      05:22:39,917 INFO  [SeamUtilities] Seam environment detected
                      2009-01-05 05:22:39.259::INFO:  Started SelectChannelConnector@0.0.0.0:9090
                      [INFO] Started Jetty Server
                      [INFO] Starting scanner at interval of 10 seconds.
                      05:23:12,427 INFO  [Contexts] starting up: org.jboss.seam.web.session
                      05:23:12,427 INFO  [Contexts] starting up: org.jboss.seam.security.identity
                      05:23:12,474 INFO  [AsyncServerDetector] Asynchronous HTTP Service available: false
                      05:23:12,474 INFO  [AsyncServerDetector] JMS API available: false
                      05:23:12,474 INFO  [AsyncServerDetector] Adapting to Send Updated Views environment.
                      05:23:14,003 ERROR [D2DFaceletViewHandler] Problem in renderResponse: null
                      java.lang.NullPointerException
                              at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:268)
                              at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:159)
                              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
                              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                              at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
                              at com.icesoft.faces.context.View$2$1.respond(View.java:41)
                              at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:167)
                              at com.icesoft.faces.webapp.http.servlet.JettyAdaptingServlet$ContinuationRequestResponse.respondWith(JettyAdaptingServlet.java:49)
                              at com.icesoft.faces.context.View$2.serve(View.java:48)
                              at com.icesoft.faces.context.View.servePage(View.java:130)
                              at com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:62)
                              at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
                              at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
                              at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:38)
                              at com.icesoft.faces.webapp.http.servlet.JettyAdaptingServlet.service(JettyAdaptingServlet.java:29)
                              at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
                              at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:55)
                              at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
                              at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:91)
                              at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
                              at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
                              at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
                              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                              at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                              at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                              at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                              at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                              at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
                              at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
                              at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
                              at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
                              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
                              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
                              at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
                              at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
                              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                              at org.mortbay.jetty.Server.handle(Server.java:324)
                              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
                              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
                              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
                              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
                              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
                              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
                              at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
                      05-Jan-2009 05:23:14 com.sun.faces.lifecycle.Phase doPhase
                      SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /login.jspx) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=
                      sun.faces.lifecycle.LifecycleImpl@baf4ae]
                      05:23:14,034 ERROR [ExceptionFilter] handling uncaught exception
                      javax.faces.FacesException: Problem in renderResponse: null
                              at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:294)
                              at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:159)
                              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
                              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                              at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
                              at com.icesoft.faces.context.View$2$1.respond(View.java:41)
                              at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:167)
                              at com.icesoft.faces.webapp.http.servlet.JettyAdaptingServlet$ContinuationRequestResponse.respondWith(JettyAdaptingServlet.java:49)
                              at com.icesoft.faces.context.View$2.serve(View.java:48)
                              at com.icesoft.faces.context.View.servePage(View.java:130)
                              at com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:62)
                              at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
                              at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
                              at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:38)
                              at com.icesoft.faces.webapp.http.servlet.JettyAdaptingServlet.service(JettyAdaptingServlet.java:29)
                              at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
                              at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:55)
                              at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
                              at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:91)
                              at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
                              at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
                              at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
                              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                              at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                              at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                              at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                              at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                              at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
                              at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
                              at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
                              at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
                              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
                              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
                              at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
                              at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
                              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                              at org.mortbay.jetty.Server.handle(Server.java:324)
                              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
                              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
                              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
                              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
                              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
                              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
                              at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
                      Caused by: java.lang.NullPointerException
                              at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:268)



                      My login page is written as below:


                      <?xml version="1.0" encoding="ISO-8859-1" ?>
                      <jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
                           xmlns:f="http://java.sun.com/jsf/core"
                           xmlns:h="http://java.sun.com/jsf/html"
                           xmlns:ice="http://www.icesoft.com/icefaces/component">
                           <jsp:directive.page contentType="text/html;charset=ISO-8859-1"
                                pageEncoding="ISO-8859-1" />
                           <f:view>
                                <ice:outputDeclaration doctypeRoot="HTML"
                                     doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
                                     doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
                                <html>
                                <head>
                                <title><ice:outputText value="ICEfaces, Ajax for Java EE" /></title>
                                <ice:outputStyle href="./xmlhttp/css/xp/xp.css" />
                                </head>
                                <body>
                      
                                <ice:outputText value="Thank you for using ICEfaces." />
                                <ice:form id="loginFormId">
                      
                      
                                     <p>Please login with the username 'admin' and 'admin' password.</p>
                      
                      
                      
                                     <ice:panelGroup id="loginPanelGroupId">
                                          <ice:panelGrid border="1" columns="2" id="panelGridId">
                                               <h:outputLabel for="username">Username</h:outputLabel>
                                               <ice:inputText id="username" value="#{identity.username}">
                      </ice:inputText>
                                               <h:outputLabel for="password">Password</h:outputLabel>
                                               <ice:inputSecret id="password" value="#{identity.password}"></ice:inputSecret>
                      
                                          </ice:panelGrid>
                                          <h:messages globalOnly="true"></h:messages>
                      
                                     </ice:panelGroup>
                                     <ice:commandButton id="loginButtonId" value="Login"
                                          action="#{identity.login}"></ice:commandButton>
                                </ice:form>
                      
                                </body>
                                </html>
                           </f:view>
                      </jsp:root>





                      • 8. Re: Unable to authenticate with icefaces and seam
                        Goutham Rao Newbie

                        Hello, Its is working absolutely fine. I was having the above problems while using jetty. When I created a war and deployed on  to tomcat, the demo works like a charm.


                        Thanks everyone.


                        Regards,
                        Goutham

                        • 9. Re: Unable to authenticate with icefaces and seam
                          Rodrigo Barbosa Newbie

                          If anyone still have the problem for me the problem was that when the project was created it did not use the default output folder to deploy the .class files but tomcat need the .class in the WEB-INF\classes folder.