Hi all,
Okay, let's just assume that I'm already highly embarrassed about asking
this question, but there's only so much banging my head against a wall
that I can do. (And I've so far had, on and off, months of this
particular wall!)
I'm currently suffering from a problem not disimilar to this one;
http://www.nabble.com/Strange-behavior-of-remote-Linux-Registrar-td13244997.html
With the exception that I have only one machine, an Arch Linux laptop, and
I can't even grab a ServiceRegistrar.
Here's the detail;
The problem first came up a few months ago when I was writing a tutorial
for Jeremy. I can start a reggie which looks like it has come up
properly. But then looking up that reggie fails.
When using my own script I get "reggie.jar requested from localhost:50504"
and similar lines in the HTTPD log. When using the river httpd.sh script,
I don't get that kind of output.
I've tried explicitly starting rmid (and also leaving it alone) all to no
avail.
Here's the simple lookup code I'm using;
LookupLocator lookupLoactor = new LookupLocator("jini://localhost");
ServiceRegistrar serviceRegistrar = lookupLoactor.getRegistrar();
but the call to getRegistrar() never returns. Even when I supply a
timeout to the overloaded method, it never returns. I don't get any kind
of error message/stack trace out of the above code.
Here's the output from running reggie script;
$ ./scripts/jrmp-reggie.sh
+ java -Djava.security.policy=config/policy.all
-Djava.ext.dirs=../../lib-ext/ -jar ../../lib/start.jar
config/start-reggie.config
05-Oct-2009 14:34:34 com.sun.jini.reggie.RegistrarImpl init
INFO: started Reggie: 2b673dfb-726b-4bcb-b9b1-aaeb174d7477,
[nonsecure.hello.example.jini.sun.com], jini://localhost/
Here's the HTTPD output;
$ ./scripts/httpd.sh
+ java -jar ../../lib/classserver.jar -port 8080 -dir lib:../../lib-dl
05-Oct-2009 14:33:08 com.sun.jini.tool.ClassServer run
INFO: ClassServer started [[lib/, ../../lib-dl/], port 8080]
The irony of needing some (hopefully, painfully simple) help in order to
write a tutorial is not lost on me.
Does anyone have any forehead-slapping, "Of course"-exclaiming advice for
me?
Thanks,
Tom
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/