[jboss-user] [JBoss Seam] - Re: Exception with rule based security

swd847 do-not-reply at jboss.com
Thu Mar 15 21:27:24 EDT 2007


I got it, there was the another copy of the same version of the antlr jars on the classpath. 

However, now I get the following:

  | 12:20:16,037 ERROR [[/brgjava]] Session event listener threw exception
  | org.drools.rule.InvalidRulePackage: Unable to create Field Extractor for 'name'
  | Unable to create Field Extractor for 'action'
  | Unable to create Field Extractor for 'name'
  | 
  |         at org.drools.rule.Package.checkValidity(Unknown Source)
  |         at org.drools.common.AbstractRuleBase.addPackage(Unknown Source)
  |         at org.jboss.seam.drools.RuleBase.compileRuleBase(RuleBase.java:70)
  | 

My rules file is from the example:


  | package MyApplicationPermissions;
  | 
  | import org.jboss.seam.security.PermissionCheck;
  | import org.jboss.seam.security.Role;
  | 
  | rule CanUserDeleteCustomers
  | when
  |   c: PermissionCheck(name == "customer", action == "delete")
  |   Role(name == "admin")
  | then
  |   c.grant();
  | end;
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028635#4028635

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028635



More information about the jboss-user mailing list