[JBoss-dev] Running of unit test fails

2003-04-12 Thread Bela Ban
When trying to run my test cases against the cache, I get an file 
permission error. The permissions are okay though.

What does this mean ?
Bela
[sjc370334 bela ]/home/bela/jboss-head/testsuite$ ./build.sh  
-Dtest=cache test
build.sh: *WARNING* Ignoring environment value for $ANT_HOME
build.sh: Executing: /home/bela/jboss-head/tools/bin/ant -logger 
org.apache.tools.ant.NoBannerLogger -Dtest=cache test
Searching for build.xml ...
Buildfile: /home/bela/jboss-head/testsuite/build.xml

_buildmagic:init:
Trying to override old definition of task property
init:
Set timestamp to: 2003-04-12.19-26
test:
executing cache
Created dir: /home/bela/jboss-head/testsuite/output/reports
Created dir: /home/bela/jboss-head/testsuite/output/log
Running org.jboss.test.cache.test.IdentityLockUnitTestCase
Exception in thread main java.security.AccessControlException: access 
denied (java.io.FilePermission 
/home/bela/jboss-head/testsuite/output/reports/TEST-org.jboss.test.cache.test.IdentityLockUnitTestCase.xml 
write)
   at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
   at 
java.security.AccessController.checkPermission(AccessController.java:401)
   at 
java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
   at java.lang.SecurityManager.checkWrite(SecurityManager.java:975)
   at java.io.FileOutputStream.init(FileOutputStream.java:169)
   at java.io.FileOutputStream.init(FileOutputStream.java:131)
   at 
org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:206)
   at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.createAndStoreFormatter(JUnitTestRunner.java:550)
   at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:495)
TEST org.jboss.test.cache.test.IdentityLockUnitTestCase FAILED

BUILD SUCCESSFUL
Total time: 13 seconds
--
Bela Ban
www.javagroups.com
(408) 316-4459




---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


Re: [JBoss-dev] Running of unit test fails

2003-04-12 Thread Scott M Stark
It means you are running with a security manager and have not
defined the permissions that are needed.
--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Bela Ban wrote:
When trying to run my test cases against the cache, I get an file 
permission error. The permissions are okay though.

What does this mean ?
Bela
[sjc370334 bela ]/home/bela/jboss-head/testsuite$ ./build.sh  
-Dtest=cache test
build.sh: *WARNING* Ignoring environment value for $ANT_HOME
build.sh: Executing: /home/bela/jboss-head/tools/bin/ant -logger 
org.apache.tools.ant.NoBannerLogger -Dtest=cache test
Searching for build.xml ...
Buildfile: /home/bela/jboss-head/testsuite/build.xml

_buildmagic:init:
Trying to override old definition of task property
init:
Set timestamp to: 2003-04-12.19-26
test:
executing cache
Created dir: /home/bela/jboss-head/testsuite/output/reports
Created dir: /home/bela/jboss-head/testsuite/output/log
Running org.jboss.test.cache.test.IdentityLockUnitTestCase
Exception in thread main java.security.AccessControlException: access 
denied (java.io.FilePermission 
/home/bela/jboss-head/testsuite/output/reports/TEST-org.jboss.test.cache.test.IdentityLockUnitTestCase.xml 
write)
   at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:270) 

   at 
java.security.AccessController.checkPermission(AccessController.java:401)
   at 
java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
   at java.lang.SecurityManager.checkWrite(SecurityManager.java:975)
   at java.io.FileOutputStream.init(FileOutputStream.java:169)
   at java.io.FileOutputStream.init(FileOutputStream.java:131)
   at 
org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:206) 

   at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.createAndStoreFormatter(JUnitTestRunner.java:550) 

   at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:495) 

TEST org.jboss.test.cache.test.IdentityLockUnitTestCase FAILED

BUILD SUCCESSFUL
Total time: 13 seconds




---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development