The Artima Developer Community
Sponsored Link

Legacy Jini Forum
The Jini Lookup Service

Advertisement

Advertisement

This page contains an archived post to the Jini Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

I cannot connect to the loopkup service!

Posted by Daniele on October 10, 2001 at 10:00 AM

Hi,
I have a problem connecting to the lookup service both with unicast discovery (TCP) and multicast discovery (UDP). In both cases the program (client or service provider) interrupts throwing an exception.
I work with a Notebook which has Windows2000 sp2 installed on it. I am not connected to a net and so, I have installed the Microsoft's "Network Adapter Loopback" to make the lookup service work.
I use jdk1.3.1_01 and jini1.1.

For making the lookup service run, I launch form the prompt the following commands:

1) start HTTP server
java -jar d:\jini1.1\lib\tools.jar -dir d:\ls\http -trees
-verbose
(all in one line)

The reggie-dl.jar file is stored in the d:\ls\http directory.

2) start RMI daemon
rmid -J-Dsun.rmi.activation.execPolicy=none -dir d:\ls\rmid_log

3) start Reggie
java -jar d:\jini1.1\lib\reggie.jar http://127.0.0.1:8080/reggie-dl.jar d:\ls\policy.all d:\ls\reggie_log public
(all in one line)

The d:\ls\policy.all file is the following:

grant {
permission java.security.AllPermission "", "";
};

Once the lookup service has started, I try to connect to it but I cannot. If I try a unicast discovery (TCP)with a program through the instruction

LookupLocator lookup = new LookupLocator("jini://127.0.0.1");

this stops throwing the following exception
java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:4160 connect,resolve)

If I try a multicast discovery (UDP) through the instruction

LookupDiscovery discover = new LookupDiscovery(LookupDiscovery.ALL_GROUPS);

I get the following error message instead
java.security.AccessControlException: access denied (net.jini.discovery.DiscoveryPermission *)

What is my problem? How can I solve it?

Thanks in advance.





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us