The Artima Developer Community
Sponsored Link

Jini Forum
Security problems....

0 replies on 1 page.

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 0 replies on 1 page
alberto

Posts: 5
Nickname: pichuerca
Registered: Jan, 2003

Security problems.... Posted: Mar 14, 2003 6:46 AM
Reply to this message Reply
Advertisement
Hello:

I have a problem when I use Jini at the University (casually not at home) with Linux. These are my steps:

**********************************************************
rmid -J-Djava.security.policy=~/java/jini1_2_1_001/policy/policy.all -J-Dsun.rmi.activation.execPolicy=none&


java -jar ~/java/jini1_2_1_001/lib/tools.jar -dir ~/java/jini1_2_1_001/lib -verbose -port 8086 &

java -jar ~/java/jini1_2_1_001/lib/tools.jar -dir ~/proyecto/servidor -verbose -port 8087&

java -jar ~/java/jini1_2_1_001/lib/reggie.jar http://localhost:8086/reggie-dl.jar ~/java/jini1_2_1_001/policy/policy.all ~/proyecto/log public&


java -Djava.rmi.server.codebase=http://localhost:8087/ -Djava.security.policy=~/java/jini1_2_1_001/policy/policy.all FileClassifierServer

java -Djava.security.policy=~/java/jini1_2_1_001/policy/policy.all TestUnicastFileClassifier
***************************************************** *****

As its seen I use policy.all with all permissions granted and both server and client run in the same machine. I have also probed with multicast search but i have the same problem.When I run the server I get:

*********************************************************
Exception in thread "main" java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:4160 connect,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:27 0)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1044)
at java.net.Socket.connect(Socket.java:419)
at java.net.Socket.connect(Socket.java:375)
at java.net.Socket.<init>(Socket.java:290)
at java.net.Socket.<init>(Socket.java:118)
at net.jini.core.discovery.LookupLocator.getRegistrar(LookupLocator.java:197)
at net.jini.core.discovery.LookupLocator.getRegistrar(LookupLocator.java:174)
at FileClassifierServer2.<init>(FileClassifierServer2.java:72)
at FileClassifierServer2.main(FileClassifierServer2.java:27)

******************** **********************************

I think the server finds a service locator but there is a port trouble or similar.I m very conffused because I have no problems at home. I would be very pleasure if somebody answer to my question.

Thank you, Alberto.

Topic: How to make Jini Client call from an Applet? Previous Topic   Next Topic Topic: Java.net.SocketException: IP_ADD_MEMBERSHIP failed

Sponsored Links



Google
  Web Artima.com   

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