Skip to content

Instantly share code, notes, and snippets.

View pauldijou's full-sized avatar

Paul Dijou pauldijou

View GitHub Profile
21:29:23,498 WARN [org.jboss.solder.exception.control.log] (http-localhost-127.0.0.1-8080-1) No handlers found for exception javax.servlet.ServletException
21:29:23,499 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/socializer].[FacesServlet]] (http-localhost-127.0.0.1-8080-1) Servlet.service() for servlet FacesServlet threw exception: javax.enterprise.event.ObserverException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_24]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.6.0_24]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.6.0_24]
at java.lang.reflect.Constructor.newInstance(Constructor.java:532) [rt.jar:1.6.0_24]
at java.lang.Class.newInstance0(Class.java:372) [rt.jar:1.6.0_24]
at java.lang.Class.newInstance(Class.java:325) [rt.jar:1.6.0_24]
at org.jboss.weld.util.reflection.SecureReflections$16.work(Secure
@pauldijou
pauldijou / gist:2361478
Created April 11, 2012 19:07
Facebool Error
21:05:39,464 WARN [org.jboss.solder.exception.control.log] (http-localhost-127.0.0.1-8080-1) No handlers found for exception javax.servlet.ServletException: Must provide a valid string as verifier
21:05:39,465 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/socializer].[FacesServlet]] (http-localhost-127.0.0.1-8080-1) Servlet.service() for servlet FacesServlet threw exception: javax.enterprise.event.ObserverException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_24]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.6.0_24]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.6.0_24]
at java.lang.reflect.Constructor.newInstance(Constructor.java:532) [rt.jar:1.6.0_24]
at java.lang.Class.newInstance0(Class.java:372) [rt.jar:1.6.0_24]
at java.lang.Class.newInstance(Class.java:325) [rt.jar:1.6.0_24]
at org.jboss.weld.util.re
@pauldijou
pauldijou / gist:2346037
Created April 9, 2012 19:40
Awestruct error
paul@fury:~/workspace/arquillian.github.com$ awestruct -d --force
can't convert nil into String
/home/paul/workspace/arquillian.github.com/_ext/arquillian.rb:411:in `join'
/home/paul/workspace/arquillian.github.com/_ext/arquillian.rb:411:in `handles'
/home/paul/workspace/arquillian.github.com/_ext/repository.rb:141:in `execute'
/home/paul/workspace/arquillian.github.com/_ext/repository.rb:140:in `each_value'
/home/paul/workspace/arquillian.github.com/_ext/repository.rb:140:in `execute'
/home/paul/workspace/arquillian.github.com/_ext/repository.rb:132:in `each'
/home/paul/workspace/arquillian.github.com/_ext/repository.rb:132:in `execute'
/var/lib/gems/1.8/gems/awestruct-0.2.15/lib/awestruct/extensions/pipeline.rb:33:in `execute'
Realm : a space where user can be authenticated (database, LDAP, file, ...)
User : a subject that can be authenticated in, at least, one realm
Identity : bean in session scope that manage the current authenticated user
Authenticator : stateless bean that can try to authenticate Credentials (have to specify in which realm)
Identity should not be informed about how the application manage what a user is or is not allowed to do. Identity should only say "Yes" or "No" when asked about a User trying to do something. Which mean only one method like "boolean can(...)" with eventually different combinations of parameters (see Identity interface).
@pauldijou
pauldijou / deltaspike-security-whatiwant
Created March 7, 2012 23:41
DeltaSpike Security API : what I want to write
// Inside a JSF page :
<h:commandButton action="create" rendered="#{identity.can('create','user')}">Create User</h:commandButton>
// Inside Java code :
// (would be better with annotations of course)
public class UserAction
{
@Inject
private Identity identity;