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/sr...
| // 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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...