The Artima Developer Community
Sponsored Link

Legacy Jini Forum
The Jini Lookup Service



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.


I cannot connect to the loopkup service!

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

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
(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 d:\ls\policy.all d:\ls\reggie_log public
(all in one line)

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

grant {
permission "", "";

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://");

this stops throwing the following exception access denied ( 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 access denied (net.jini.discovery.DiscoveryPermission *)

What is my problem? How can I solve it?

Thanks in advance.


Sponsored Links

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