1 2 Previous Next 24 Replies Latest reply on Aug 4, 2007 3:55 PM by Jason Long

    Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDef

    None None Master

      I have a factory method that is restricted, like this:

      @Out(required=false) List<User> userList;
      
       @Factory("userList")
       @Restrict("#{s:hasRole('admin')}")
       public void listUsers() {
      


      This is the first time I have tried using @Restricted, so it's not like other @Restricted clauses are working. No, the first one isn't working.

      When I try to access the userList, I get a big nasty exception:

      Caused by: java.lang.NoClassDefFoundError: com/sun/el/ExpressionFactoryImpl
       at org.jboss.seam.util.UnifiedELValueBinding.<init>(UnifiedELValueBinding.java:18)
       at org.jboss.seam.security.Identity.evaluateExpression(Identity.java:506)
       at org.jboss.seam.security.Identity.checkRestriction(Identity.java:149)
       at org.jboss.seam.interceptors.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:35
      


      It must be something simple: a jar in the wrong place, something like that.

      Any ideas?

      Thanks


        1 2 Previous Next