Hi,

[r...@rosemary Chat]#javac *.java
[r...@rosemary Chat]#rmiregistry &
[r...@rosemary Chat]#rmic ChatSever
[r...@rosemary Chat]#rmic ChatClient
[r...@rosemary Chat]#java ChatServer
Registry is created.
Exception in thread "main" java.security.AccessControlException: access
denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
    at java.security.AccessControlContext.checkPermission(
AccessControlContext.java:342)
    at java.security.AccessController.checkPermission(AccessController.java:
553)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
    at java.lang.SecurityManager.checkConnect(SecurityManager.java:1051)
    at java.net.Socket.connect(Socket.java:536)
    at java.net.Socket.connect(Socket.java:492)
    at java.net.Socket.<init>(Socket.java:389)
    at java.net.Socket.<init>(Socket.java:203)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(
RMIDirectSocketFactory.java:40)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(
RMIMasterSocketFactory.java:146)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216
)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:340)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Naming.java:177)
    at ChatServer.main(ChatServer.java:24)


What can be done to run ChatServer? Please help...

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Regards

Rosemary J Thomas
http://purplewakanda.googlepages.com/
-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en

Reply via email to