2 Replies Latest reply on Jan 31, 2012 9:42 PM by mi haisheng

    a strange error:can't find symbol symbol:class BaseAuthenticator

    mi haisheng Newbie
      i use mvn{clean package} command to Compiling my project.
      a error log below:
      =========
      can't find symbol symbol:class BaseAuthenticator
      position: package org.jboss.seam.security
      =========
      the project always inculde the dependency of >seam-security:
      -----
      <dependency>
           <groupId>org.jboss.seam.security</groupId>
           <artifactId>seam-security</artifactId>
           <version>3.1.0.Final</version>
           <scope>runtime</scope>
      </dependency>
      <dependency>
           <groupId>org.jboss.seam.security</groupId>
           <artifactId>seam-security-api</artifactId>
           <version>3.1.0.Final</version>
      </dependency>
      <dependency>
           <groupId>org.picketlink.idm</groupId>
           <artifactId>picketlink-idm-core</artifactId>
           <version>1.5.0.Alpha02</version>
      </dependency>
      -----
      my class AuthenticatorImpl:
      -----
      import javax.inject.Inject;
      import org.jboss.seam.security.Credentials;
      import org.jboss.seam.security.Identity;
      import org.jboss.seam.security.*;
      import org.jboss.seam.security.BaseAuthenticator;
      //import org.picketlink.idm.impl.api.model.SimpleUser;
      public class AuthenticatorImpl extends BaseAuthenticator implements Authenticator {
          @Inject
          Identity identity;
          @Inject
          Credentials credentials;
          @Override
          public void authenticate() {
              // Let any user log in
              //setStatus(AuthenticationStatus.SUCCESS);
              //setUser(new SimpleUser(credentials.getUsername()));
          }
      }
      ------
      and the resource in .m2\repository\org\jboss\seam\security is correct downloaded.