According to the document of picketlink addon, in the section of "Applying Security to a Forge Scaffold Project", when issuing the command of "picketlink-setup --feature idm", the whole project build correctly with the following info. : [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.859 s [INFO] Finished at: 2014-08-19T10:43:27+08:00 [INFO] Final Memory: 60M/543M [INFO] ------------------------------------------------------------------------
But then, there's an error shows: **ERROR** Could not load type.
May I know how to fix it please?
Further more, If I omit the error and issue the next command of "picketlink-setup --feature http", and then there's a class named "HttpSecurityConfiguration" generated shown as follows:
import org.picketlink.config.SecurityConfigurationBuilder; import org.picketlink.event.SecurityConfigurationEvent; import javax.enterprise.event.Observes;
public class HttpSecurityConfiguration {
public void onInit(@Observes SecurityConfigurationEvent event) { SecurityConfigurationBuilder builder = event.getBuilder(); builder.http().pathGroup("JSF Protected Pages").inbound().authc() .form().loginPage("/faces/login.xhtml") .errorPage("/faces/loginFailed.xhtml") .path("/*.xhtml", "JSF Protected Pages") .path("/*.jsf", "JSF Protected Pages").path("/logout") .inbound().logout(); }
}
But, there's a compile error in the class that "The method http() is undefined for the type SecurityConfigurationBuilder".
|