3 Replies Latest reply on Oct 22, 2008 7:58 AM by Max Rydahl Andersen

    Erros in Authenticator Class

    Luciano Borges Newbie

      Hi All,

      When I create a Seam Web Project using Eclipse Ganymede plus JBoss Tools 3 Alpha 1, happens 14 Erros in Authenticator.java in the Path agenda-ejb/ejbModule/org/domain/agenda/session.

      I would like why its happens and how can I fix it?

      Thanks,
      Luciano
      Brazil

        • 1. Re: Erros in Authenticator Class
          Paul Keogh Newbie

          This may be of some help - but... I am a Seam newcomer.

          I discovered that the New Seam project wizard uses JBoss rules as a default for the security authenticator (or maybe I missed the option) so I made the following changes in components.xml - I removed the rules references and added the simple authenticator;

          <!--
          Removing JBoss Rules because Tools 3.0 generated causes exception on 1st page access

          <drools:rule-base name="securityRules">
          <drools:rule-files>
          security
          </drools:rule-files>
          </drools:rule-base>
          -->

          <!--
          Removing JBoss Rules because Tools 3.0 generated causes exception on 1st page access

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

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

          Then, hey presto, it all worked. Magic or what ?

          Figuring out why the rules doesnt work is for another day.

          • 2. Re: Erros in Authenticator Class
            Max Rydahl Andersen Master

            What errors are you seeing ?

            Is it just the components.xml error about security-rules ? That is a bug in jboss tools since we haven't adjusted for the extended xml->java mapping Seam 2.1 introduces.

            • 3. Re: Erros in Authenticator Class
              Max Rydahl Andersen Master

              i.e. the components.xml error can be ignored.

              If you have an error in a java class please list the specific error - thanks