Jonathan Whitehead wrote:
> 
> I'm trying to switch from RMI to Jeremie and am having problems.
> 
> I set OBJECTWEB_ORB to JEREMIE, installed javacc and followed the
> instructions in
> $OBJECTWEB_HOME/README for re-compiling JOnAS. I changed my
> jonas.properties to
> 
> java.naming.provider.url        jrmi://localhost:12340
> java.naming.factory.initial
> org.objectweb.jeremie.libs.services.registry.jndi.JRMIInitialContextFactory
> 
> I added <permission java.io.SerializablePermission
> "enableSubstitution";>
> to my java policy file (because EJBServer wanted this permission). I
> recompiled my beans for good measure. I started Jeremie with "registry".
> Unlike rmiregistry this returns to the command prompt but it outputs a
> promising message and leaves some processes behind so I assume that's
> OK.
> 
> The first time I run EJBServer it throws a socket permission exception
> (even though the java policy file permits this access), then the JOnAS
> trace message "sending_request()   creates request context null". The
> second and subsequent times I just get the trace message.
> 
> Anybody understand what's going wrong? Have I forgotten to do something?
> 
> See below for the details
> 
> Thanks,
> Jonathan
> 
> I have this in my java.security.policy file:
> 
> permission java.net.SocketPermission "*:1024-65535",
> "connect,accept,resolve";
> permission java.net.SocketPermission "*:1-1023", "connect,resolve";
> 
I've only tried with this:
grant {
        // Allow everything for now
        permission java.security.AllPermission;
};
and it worked fine, for both rmi and jeremie.

-- 
Philippe Durieux  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bull S.A  - 1 rue de Provence - 38432 Echirolles Cedex France
[EMAIL PROTECTED]  http://www-frec.bull.com
-> Download our EJBServer at http://www.bullsoft.com/ejb <-
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to