Hello,
i am newbies here, i working on seam + richfaces + gatein + portlet,
i follow the tutorial from this video http://vimeo.com/11484018 regarding to get current user login, i successfull get what i want, but i got this error
11:52:58,812 INFO [org.jboss.portletbridge.extension.seam.PortalIdentity] (http--127.0.0.1-8080-1) JBoss Web Authentication is not available...
11:52:58,814 ERROR [org.jboss.portletbridge.extension.seam.PortalIdentity] (http--127.0.0.1-8080-1) JBoss Web Authentication instantiation exception, Web Authentication disabled: java.lang.NullPointer
Exception
how can i resolve this error?
and here my code to get current user login
import org.jboss.portletbridge.extension.seam.PortalIdentity;
import org.jboss.seam.annotations.Name;
@Name("currentUser")
public class CurrentUser {
private String username;
public String getUsername() {
if(PortalIdentity.instance().isLoggedIn()){
username = PortalIdentity.instance().getPrincipal().getName();
}
return username;
}
}
thanks