2 Replies Latest reply on Dec 4, 2007 12:47 PM by Adrian Brock

    Security errors with maven tests

    Paul Gier Master

      I'm working on completing the maven migration for aop and I'm getting some errors when running the unit tests. I thought I would ask here before spending too much time trying to figure it out.

      Testcase: testSubSuperOnlyMetadata took 0.458 sec
      Testcase: testSubSubSuperOnlyMetadata took 0.008 sec
       Caused an ERROR
      null
      java.lang.reflect.InvocationTargetException
       at org.jboss.test.AbstractTestDelegate.getDelegate(AbstractTestDelegate.java:73)
       at org.jboss.test.AbstractTestSetup.setUp(AbstractTestSetup.java:62)
       at org.jboss.test.AbstractTestCaseWithSetup.setUp(AbstractTestCaseWithSetup.java:103)
      Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
       at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
       at java.security.AccessController.checkPermission(AccessController.java:427)
       at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
       at java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:1252)
       at java.lang.System.getProperties(System.java:561)
       at org.jboss.test.aop.AOPTestDelegate$1.run(AOPTestDelegate.java:51)
       at org.jboss.test.aop.AOPTestDelegate$1.run(AOPTestDelegate.java:49)
       at java.security.AccessController.doPrivileged(Native Method)
       at org.jboss.test.aop.AOPTestDelegate.<init>(AOPTestDelegate.java:47)
       at org.jboss.test.aop.AOPTestWithSetup.getDelegate(AOPTestWithSetup.java:53)
       ... 19 more
      


      Any ideas why I'm getting these security errors running the tests with maven but not with ant?