[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Security access

adrian@jboss.org do-not-reply at jboss.com
Fri Dec 14 14:24:55 EST 2007


I don't see these tests fail running under Maven or Eclipse.

So this must be something specific to your environment,
e.g. have you checked into a folder with the word "tests" in it?

The security policy used is here:
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/test/trunk/src/main/java/org/jboss/test/security/TestsPolicyPlugin.java?revision=62656&view=markup


  |          // Is this a test location?
  |          File file = new File(url.toString());
  |          String name = file.getName();
  |          if (name.indexOf("tests") != -1 || name.indexOf("test-classes") != -1 || name.indexOf("-test.jar") != -1)
  | 

What you need to do, is to print out the code source and permissions
for each of the class in the stacktrace until you reach one that has the permission.

Adding a privileged block makes no difference if that class doesn't have
the permission. In fact it makes it worse. ;-)

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

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



More information about the jboss-dev-forums mailing list