[EMAIL PROTECTED] wrote:
>
> > [jape@jaguar test2]$ java
> > -Djava.rmi.server.codebase=file:/usr/home/jape/ test2.Server
> >
> > main
> > remote exception in main
> > java.rmi.ServerException: Server RemoteException; nested exception is:
> > java.rmi.AccessException: Registry.rebind
> > after main
> >
> >
>
> just wondering if yu have a java security policy file ??
>
> maybe try placing this file in your home directory :-
>
> >cat .java.policy
> /* AUTOMATICALLY GENERATED ON Wed Mar 10 20:30:42 GMT+10:30 1999*/
> /* DO NOT EDIT */
>
> grant {
> permission java.security.AllPermission;
> };
> >
Also read the RMI FAQ http://java.sun.com/products/jdk/rmi/
about starting the rmiregistry so that
it doesnot find your classes. Especially important
If you want the java.rmi.server.codebase property to work.
The rmiregistry will be then forced to use the specified codebase
to download the server stub to a connecting RMI client.
You need to do if you are going to run RMI from the web applet.
In another xterm
% unset CLASSPATH
% rmiregistry &
--
Adios
Peter
-----------------------------------------------------------------
import std.Disclaimer; // More Java for your Lava, Mate.
T H E R E D A R M Y ! ! ! http://www.manutd.com/
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]