5 Replies Latest reply on Nov 18, 2010 4:06 AM by canut

    Authenticator resolved to nell in Tomcat 6.0

    canut

      I have an application generated by Seam-Gen that I am trying to make work on Tomcat 6.


      I've followed all every Forum entries explaining how to patch the application but I'm still having one last problem.


      Authenticator bean seams to be not found, I've the followin Stack trace :



      13:52:12,784 WARN  [SeamLoginModule] 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)
      ...



      The project is deployed through Eclipse using an exploded war archive.
      seam.properties is WEB-INF\classes


      Is anyone have an idea ?

        • 1. Re: Authenticator resolved to nell in Tomcat 6.0
          canut

          Me again, the main problem is that EVERY seam components in my application are not bound...

          • 2. Re: Authenticator resolved to nell in Tomcat 6.0
            canut

            I'm really lost here. I've put seam.properties everywhere, try to deploy with eclipse in an exploded folder on Tomcat and manually using a war, add an Autocreate annotations, etc...


            It's like Seam does not read my classes to find my Seam Beans.


            I think I have a little configuration problem... but I can't find it.
            What is the magical step I miss to make available my Seam Beans ?

            • 3. Re: Authenticator resolved to nell in Tomcat 6.0
              cinephil

              Eric, your name sounds french. Try to see if my blog article on developpez.com helps you.
              http://blog.developpez.com/cinephil/


              I have begun a tutorial with some differencies from my blog article but it's not finished.

              • 4. Re: Authenticator resolved to nell in Tomcat 6.0
                canut

                Thanks Philippe, I think I've already read your blog entry (that helps me up to a certain point :) )


                The point is that I can see the Welcome to Seam page. The real problem is the step after.


                When I want to use the authentication page it does not work and I have the stack trace I've posted before.


                Same thing if I want to add a Seam Bean an call it through a JSF page.


                My application was working on JBoss (without using EJB and packaged into a WAR), then to speed up the development I've tried to move on Tomcat. And now I'm stuck with these problems.


                Did you manage to add Seam Beans on your Tomcat Application ?

                • 5. Re: Authenticator resolved to nell in Tomcat 6.0
                  canut

                  I've found the solution (since a long time but I've forgot to update my message).
                  In fact I've generated the project using the Eclipse Wizard.


                  This wizard create 2 src folders hot and main.


                  - "main" is compiled into /WEB-INF/classes


                  - "hot" is compiled into /WEB-INF/dev (???)


                  So basically every classes where not into /WEB-INF/classes. I've removed the hot src folder and now everything works on Tomcat.