Re: [JBoss-dev] Problem running jbosstest

2001-06-05 Thread Scott M Stark

I run the tests using the run_test.xml ant script and I don't see this
problem.
This is how the nightly test runs are done as well.

Adding the policy file to the jar is the right thing to do to run thest test
using the ctstest scripts.

- Original Message -
From: "Ole Husgaard" <[EMAIL PROTECTED]>
To: "Jboss-Development" <[EMAIL PROTECTED]>
Sent: Monday, June 04, 2001 2:41 PM
Subject: [JBoss-dev] Problem running jbosstest


> Hi,
>
> [Hope my mail to sourceforge is now OK. This is also a test.]
>
> For about a month jbosstest fails when I try
> to run it. Tests like ctstest, banktest and
> testbeantest all fail with the same client-
> side dump:
>
> Exception in thread "main" java.security.AccessControlException: access
denied (java.util.PropertyPermission
> user.home read)
> at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:272)
> at
java.security.AccessController.checkPermission(AccessController.java:399)
> at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
> at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
> at java.lang.System.getProperty(System.java:560)
> at junit.swingui.TestRunner.getSettingsFile(TestRunner.java:567)
> at junit.swingui.TestRunner.loadHistory(TestRunner.java:550)
> at junit.swingui.TestRunner.createSuiteCombo(TestRunner.java:383)
> at junit.swingui.TestRunner.createUI(TestRunner.java:411)
> at junit.swingui.TestRunner.start(TestRunner.java:815)
> at junit.swingui.TestRunner.main(TestRunner.java:588)
>
> This even happens with clean, unmodified checkouts
> of modules jboss and jbosstest.
> I have changed nothing else on my system.
>
> Looking into the CTS test case, it looks like no
> client.policy file is placed in the root of the
> testbeantest.jar, like ctstest.sh requires.
> Changing the ant file to add this file (a copy
> from the testbean resources directory) makes my
> problem go away. (I am still having a few new
> and probably unrelated problems in the CTS test.)
>
> I could easily commit that change, but:
> Am I the only one who has seen this problem?
> Is adding that file the right thing to do?
>
>
> Best Regards,
>
> Ole Husgaard.
>



___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



Re: [JBoss-dev] Problem running jbosstest

2001-06-05 Thread Chris Kimpton

Hi,


>From: Ole Husgaard <[EMAIL PROTECTED]>
>
>For about a month jbosstest fails when I try
>to run it. Tests like ctstest, banktest and
>testbeantest all fail with the same client-
>side dump:
>
>Exception in thread "main" java.security.AccessControlException: access 
>denied (java.util.PropertyPermission
>user.home read)
> at 
>java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
> at 
>java.security.AccessController.checkPermission(AccessController.java:399)
> at 
>java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
> at 
>java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
> at java.lang.System.getProperty(System.java:560)
> at junit.swingui.TestRunner.getSettingsFile(TestRunner.java:567)



My daily tests which are shown at http://lubega.com do not get this problem 
- but then they do not use the gui  ;-)

I run the tests using the command line option

build.sh -f run_tests.xml

Please check that this is not broken by any changes you make...

I think it was Scott who re-jigged the build files about a month back - 
perhaps this is a glitch from that tidy up...

Chris
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



Re: [JBoss-dev] Problem running jbosstest

2001-06-04 Thread danch

Georg Rehfeld wrote:

> Hi Ole,
> 
> 
>> I could easily commit that change, but:
>> Am I the only one who has seen this problem?
> 
> 
> Might be, you are the only one testing? :-)
> 

I think the problem was only on Unix systems.


___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



Re: [JBoss-dev] Problem running jbosstest

2001-06-04 Thread Georg Rehfeld

Hi Ole,

> I could easily commit that change, but:
> Am I the only one who has seen this problem?

Might be, you are the only one testing? :-)

regards
Georg
 ___   ___
| + | |__Georg Rehfeld  Woltmanstr. 12 20097 Hamburg
|_|_\ |___   [EMAIL PROTECTED]   +49 (40) 23 53 27 10



___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



Re: [JBoss-dev] Problem running jbosstest

2001-06-04 Thread danch

Ole Husgaard wrote:

> 
> Looking into the CTS test case, it looks like no
> client.policy file is placed in the root of the
> testbeantest.jar, like ctstest.sh requires.
> Changing the ant file to add this file (a copy
> from the testbean resources directory) makes my
> problem go away. (I am still having a few new
> and probably unrelated problems in the CTS test.)
> 
> I could easily commit that change, but:
> Am I the only one who has seen this problem?
> Is adding that file the right thing to do?

Looking closer, why is ctstest.sh dependent on testbeantest.jar? I 
changed the shell script to get the policy file from ctstest.jar and it 
ran. I _think_ (although this is my first hour with jbosstest) that's 
the fix we need.


-danch


___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



Re: [JBoss-dev] Problem running jbosstest

2001-06-04 Thread danch

I get the same problem. Was there a change in how JUnit was being used 
that may have changed how security interacts with these classes?

Ole Husgaard wrote:

> Hi,
> 
> [Hope my mail to sourceforge is now OK. This is also a test.]
> 
> For about a month jbosstest fails when I try
> to run it. Tests like ctstest, banktest and
> testbeantest all fail with the same client-
> side dump:
> 



___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] Problem running jbosstest

2001-06-04 Thread Ole Husgaard

Hi,

[Hope my mail to sourceforge is now OK. This is also a test.]

For about a month jbosstest fails when I try
to run it. Tests like ctstest, banktest and
testbeantest all fail with the same client-
side dump:

Exception in thread "main" java.security.AccessControlException: access denied 
(java.util.PropertyPermission
user.home read)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at java.security.AccessController.checkPermission(AccessController.java:399)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
at java.lang.System.getProperty(System.java:560)
at junit.swingui.TestRunner.getSettingsFile(TestRunner.java:567)
at junit.swingui.TestRunner.loadHistory(TestRunner.java:550)
at junit.swingui.TestRunner.createSuiteCombo(TestRunner.java:383)
at junit.swingui.TestRunner.createUI(TestRunner.java:411)
at junit.swingui.TestRunner.start(TestRunner.java:815)
at junit.swingui.TestRunner.main(TestRunner.java:588)

This even happens with clean, unmodified checkouts
of modules jboss and jbosstest.
I have changed nothing else on my system.

Looking into the CTS test case, it looks like no
client.policy file is placed in the root of the
testbeantest.jar, like ctstest.sh requires.
Changing the ant file to add this file (a copy
from the testbean resources directory) makes my
problem go away. (I am still having a few new
and probably unrelated problems in the CTS test.)

I could easily commit that change, but:
Am I the only one who has seen this problem?
Is adding that file the right thing to do?


Best Regards,

Ole Husgaard.

___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development