[Netarchivesuite-devel] unittest Ant goal not working

Søren Vejrup Carlsen svc at kb.dk
Wed Mar 23 11:31:47 CET 2011


Hi Nicolas.
Are you sure that the jetty ant is responsible for the problem? Because I don't think it is. Have you tried removing the ant-1.6.5.jar from the build.xml?
It is rather a problem with the security policy being used, which possibly should be changed for it to work in your environment.

/Søren

Fra: netarchivesuite-devel-bounces at lists.gforge.statsbiblioteket.dk [mailto:netarchivesuite-devel-bounces at lists.gforge.statsbiblioteket.dk] På vegne af Nicolas Giraud
Sendt: 23. marts 2011 11:26
Til: netarchivesuite-devel at lists.gforge.statsbiblioteket.dk
Emne: [Netarchivesuite-devel] unittest Ant goal not working

Hi,

The Ant goal "uniittest" fails due to a duplicate dependency. Here's the stack trace :

test:
       [mkdir] Created dir: /home/ngiraud/dev/java/eclipse/workspace/helios/netarchivesuite-trunk/reports
       [junit] WARNING: multiple versions of ant detected in path for junit
       [junit]          jar:file:/home/ngiraud/dev/java/eclipse/helios/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant.jar!/org/apache/tools/ant/Project.class
       [junit]      and jar:file:/home/ngiraud/dev/java/eclipse/workspace/helios/netarchivesuite-trunk/lib/jetty-dependencies/ant-1.6.5.jar!/org/apache/tools/ant/Project.class
       [junit] Exception in thread "main" java.security.AccessControlException: access denied (java.io.FilePermission /home/ngiraud/dev/java/eclipse/workspace/helios/netarchivesuite-trunk/junitvmwatcher1486423965730870506.properties write)
       [junit]     at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
       [junit]     at java.security.AccessController.checkPermission(AccessController.java:546)
       [junit]     at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
       [junit]     at java.lang.SecurityManager.checkWrite(SecurityManager.java:962)
       [junit]     at java.io.FileOutputStream.<init>(FileOutputStream.java:169)
       [junit]     at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
       [junit]     at java.io.FileWriter.<init>(FileWriter.java:46)
       [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.registerTestCase(JUnitTestRunner.java:939)
       [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:695)
       [junit] Running dk.netarkivet.UnitTesterSuite
       [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
       [junit] Test dk.netarkivet.UnitTesterSuite FAILED (crashed)

I think the Ant jar in the Jetty dependencies should be dropped.

Best,

--
Nicolas Giraud
---------------------------------------------------------------------------------------------
Développeur Archives du Web - Bibliothèque Nationale de France
Web Archiving Developper - National Library of France
---------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ml.sbforge.org/pipermail/netarchivesuite-devel/attachments/20110323/8892cffa/attachment-0002.html>


More information about the Netarchivesuite-devel mailing list