The Artima Developer Community
Sponsored Link

Jini Forum
New to Jini - Can't start services

1 reply on 1 page. Most recent reply: Jan 15, 2004 7:37 AM by Dan Creswell

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Paul Adams

Posts: 1
Nickname: d11aav
Registered: Dec, 2003

New to Jini - Can't start services Posted: Dec 20, 2003 3:34 PM
Reply to this message Reply
Advertisement
I am new to Jini technology and am having great difficulty getting the services up and running.

Currently I am using Jini 1.2.1_001 under SuSE Linux 8.2 Pro.

Here is how I am starting RMI:
rmi -J-Dsun.com.activation.execPolicy=none -log ~/SEGMeeting/ &
This appears to work fine.

This is how I start the lookup service:
java -Djava.security.policy=~/SEGMeeting/policy.all -jar ~/SEGMeeting/lib/reggie.jar http://linux:80/Jini/reggie-dl.jar ~/SEGMeeting/policy.all ~/SEGMeeting/Temp/reggie2_log
This produces a very long error output begining with:
Unable to invoke by reflection, the method: com.sun.jini.reggie.CreateLookup.create. An exception was thrown by the invoked method. java.rmi.activation.ActivationException.....nested exception is: java.net.SocketException: No such device

This is how I start the transaction service:
java -Djava.security.policy=~/SEGMeeting/policy.all -jar ~/SEGMeeting/lib/mahalo.jar http://linux:80/Jini/mahalo-dl.jar ~/SEGMeeting/policy.all ~/SEGMeeting/Temp/txn_log public
This also produces a long error output:
Sun Dec 21 03:09:46 GMT 2003: ExecGroup-1:errJoinAdmin:Problem starting discovery...
This carries on like this for a lot of lines. I'm assuming this error is caused by the lack of a lookup service. It then also goes on to add Unable to invoke by reflection..

This is how I start the JavaSpace service:
java -Dcom.sun.jini.outrigger.spaceName=JavaSpaces -Djava.security.policy=~/SEGMeeting/policy.all -jar ~/SEGMeeting/lib/outrigger.jar http://linux:80/Jini/outrigger-dl.jar ~/SEGMeeting/policy.all ~/SEGMeeting/Temp/js_log public
This generates a similar error to the transaction service.

It has been suggested that the problem may lie in the policy file. Although not advisable, my policy file contains:
grant{
permission java.security.AllPermission ", ";
};
This should guarentee that permissions are given. It has also been suggested that I should use the http server provided by tools.jar rather than Apache, as I am doing, but this makes no difference and produces the same errors.

Any help in getting these services started would be gratefully recieved.


Dan Creswell

Posts: 49
Nickname: dancres
Registered: Apr, 2003

Re: New to Jini - Can't start services Posted: Jan 15, 2004 7:37 AM
Reply to this message Reply
Looks to me like multicast isn't enabled properly.

First, check using "ifconfig -a" that multicast is enabled on your network interfaces.

eth0 Link encap:Ethernet HWaddr 00:E0:81:51:41:39
inet addr:192.168.0.6 Bcast:192.168.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14003 errors:0 dropped:0 overruns:0 frame:0
TX packets:13294 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10695433 (10.1 Mb) TX bytes:1728797 (1.6 Mb)
Interrupt:16 Base address:0x3000 Memory:c2220000-c2240000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1398 errors:0 dropped:0 overruns:0 frame:0
TX packets:1398 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:174382 (170.2 Kb) TX bytes:174382 (170.2 Kb)

Then, do "route -n" and make sure you have something like this line:

224.0.0.0 0.0.0.0 240.0.0.0 U 0 0 0 eth0

If that's missing, you need to add a route. Su to root and do:

route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0

Or similar, depending on what name your network device has.

Flat View: This topic has 1 reply on 1 page
Topic: Create service Previous Topic   Next Topic Topic: profiles

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use