AccessControlException trying to start up mahalo (and reggie)
steve kirby <[email protected]>
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Message-ID | <[email protected]> |
Hi,
(First to Dan Creswell -- thanks much for the tips on notify(); it's working now)
Now I want to start up a javaspace on another server so I can talk between 2 servers and have hit a snag --
Using jini 2.1, I successfully started up an http server and then reggie (jdk1.5, RH Enterprise Linux). Then tried to start up mahalo, and get (note the # symbols below have real digits in the actual error msg). An attempt to start outrigger also gives an AccessControlException.:
Error message:
===========================================================
Aug 16, 2006 1:36:08 PM com.sun.jini.mahalo.TxnManagerImpl doInit
INFO: Mahalo started: com.sun.jini.mahalo.TransientMahaloImpl@1ea0252
Aug 16, 2006 1:36:08 PM net.jini.lookup.JoinManager$ProxyReg fail
INFO: JoinManager - failure
java.security.AccessControlException: access denied (java.net.SocketPermission ###.###.#.##:33188 connect,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
at java.net.Socket.connect(Socket.java:501)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.<init>(Socket.java:365)
at java.net.Socket.<init>(Socket.java:178)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
at com.sun.jini.reggie.RegistrarImpl_Stub.register(Unknown Source)
at com.sun.jini.reggie.RegistrarProxy.register(RegistrarProxy.java:107)
at net.jini.lookup.JoinManager$ProxyReg.register(JoinManager.java:1222)
at net.jini.lookup.JoinManager$RegisterTask.run(JoinManager.java:784)
at net.jini.lookup.JoinManager$ProxyRegTask.tryOnce(JoinManager.java:608)
at com.sun.jini.thread.RetryTask.run(RetryTask.java:131)
at com.sun.jini.thread.TaskManager$TaskThread.run(TaskManager.java:331)
==============================================================
Here's the startup script (the Host portions have real IP names in the actual script)::
Script:
==============================================================
/home/myname/jdk1.5.0_06/bin/java -Dcom.sun.jini.lookup.groups=public -Djava.security.manager= -Djava.security.policy=/home/myname/jini2_1//example/common/jrmp/policy/start-service.policy -Djava.util.logging.manager=com.sun.jini.logging.LogManager -Djava.util.logging.config.file=/home/myname/jini2_1//example/common/logging/jini.logging -Dconfig=/home/myname/jini2_1//example/common/jrmp/config/start-one-transient.config -DserverHost=########### -DserviceName=mahalo -DinterfaceName=TxnManager -DimplName=TransientMahaloImpl -DcodebaseHost=########### -DcodebasePort=8085 -DjiniHome=/home/myname/jini2_1 -DappHome=/home/myname/jini2_1/ -Djava.security.debug=off -jar /home/myname/jini2_1/lib/start.jar /home/myname/jini2_1//example/common/jrmp/config/start-one-transient.config
==============================================================
What's weird is this start_mahalo script works like a charm on another Linux box I have with the appropriate changes in the script's Host portions.
Any hints appreciated. (Seems like I need to edit some config file but don't know which one)
TIA,
Steve
---------------------------------
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.
===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVASPACES-USERS". For general help, send email to
[email protected] and include in the body of the message "help".
To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html