Jini 2.1 Hello example Problem on windows 2000
Cipher lordofscorn <[email protected]> Mon, 10 Dec 2007 23:43:01 +0100
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
Hello everybody,
i have a windows 2000 with Service Pack 4 installed. My JDK Version is
jdk1.5.0_14 and i have
set the Environment Variables (of windows) PATH to jdk1.5.0_1\bin,
JINI_HOME to jini2_1 and
JAVA_HOME to the jdk1.5.0_14 directories. I have a fresh installed
jini2_1 without modifications.
As described in jini/source/src/com/sun/jini/example/hello/index.htm i
have started scripts\httpd.bat,
scripts\jrmp-reggie.bat and scripts\jrmp-server.bat without problems.
When i try to start scripts\client.bat i get :
C:\Programme\jini\source\src\com\sun\jini\example\hello>java
-Djava.security.manager=
-Djava.security.policy=config\client.policy
-Djava.security.properties=config\dynamic-policy.security-properties
-Djava.rmi.server.codebase=http://TRIXXTER:8080/jsk-dl.jar
-jar lib\client.jar config\client.config
Exception in thread "main" java.lang.ExceptionInInitializerError
at net.jini.config.ConfigurationProvider.getInstance(ConfigurationProvider.java:180)
at net.jini.config.ConfigurationProvider.getInstance(ConfigurationProvider.java:137)
at com.sun.jini.example.hello.Client.main(Client.java:77)
Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission
createSecurityManager)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.<init>(Unknown Source)
at net.jini.security.Security$ClassContextAccess.<init>(Security.java:965)
at net.jini.security.Security$ClassContextAccess.<init>(Security.java:965)
at net.jini.security.Security$1.run(Security.java:167)
at java.security.AccessController.doPrivileged(Native Method)
at net.jini.security.Security.<clinit>(Security.java:165)
I must add that i have the same Problem on another windows 2000
machine with jdk 1.6.
On my ibook with Mac OS X 10.3 i have no problems running the script
"scripts\client.sh".
client.sh just returns "Calling sayHello in smart proxy Server says:
Hello, World!".
I haven't changed anything in the config\client.policy file.
My guess is that something is wrong with the policy File of the client
because the errors
are quite the same when i write a wrong config/client.policy on Mac OS X 10.3.
What should i configure on my windows 2000 machine so that i can run
jini\source\src\com\sun\jini\example\hello\scripts\client.bat without problems?
Do you have reference on an article which handles this Problem?
Regards
Brian Gbaguidi
--------------------------------------------------------------------------
Getting Started: http://www.jini.org/wiki/Category:Getting_Started
Community Web Site: http://jini.org
jini-users Archive: http://archives.java.sun.com/archives/jini-users.html
Unsubscribing: email "signoff JINI-USERS" to [email protected]