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"; 

This is the output of EJBServer:

JOnAS Server, version 1.6, running on Jeremie.
RMISecurityManager loaded
java.security.AccessControlException: access denied
(java.net.SocketPermission 127.0.0.1:4211 accept,resolve)
        at java.security.AccessControlContext.checkPermission(Compiled
Code)
        at java.security.AccessController.checkPermission(Compiled Code)
        at java.lang.SecurityManager.checkPermission(Compiled Code)
        at java.lang.SecurityManager.checkAccept(Compiled Code)
        at java.net.ServerSocket.implAccept(Compiled Code)
        at java.net.ServerSocket.accept(Compiled Code)
        at
org.objectweb.jonathan.libs.resources.tcpip.JConnectionMgr$SrvEndPoint.newSrvConnection(Compiled
Code)
        at
org.objectweb.jonathan.libs.protocols.tcpip.TcpIpProtocol$SrvSessionFactory.run(Compiled
Code)
        at
org.objectweb.jonathan.libs.resources.JScheduler$JJob.run(Compiled Code)
sending_request()   creates request context null
JOnAS configuration error!
    error during remote invocation; nested exception is: 
        org.objectweb.jonathan.apis.presentation.EndOfMessageException:
End of stream reached
javax.naming.NamingException: registry context error: list.  Root
exception is java.rmi.RemoteException: error during remote invocation;
nested exception is: 
        org.objectweb.jonathan.apis.presentation.EndOfMessageException:
End of stream reached
org.objectweb.jonathan.apis.presentation.EndOfMessageException: End of
stream reached
        at
org.objectweb.jonathan.libs.protocols.tcpip.TcpIpChunkProvider.prepare(Compiled
Code)
        at
org.objectweb.jeremie.libs.presentation.std.StdMarshallerFactory$StdUnMarshallerD.prepare(Compiled
Code)
        at
org.objectweb.jeremie.libs.presentation.std.StdMarshallerFactory$StdUnMarshaller.readByte(Compiled
Code)
        at
org.objectweb.david.libs.protocols.giop.GIOPProtocol$ClientSession_Low.send(Compiled
Code)
        at
org.objectweb.jonathan.libs.protocols.tcpip.TcpIpProtocol$Session.run(Compiled
Code)
        at
org.objectweb.jonathan.libs.resources.JScheduler$JJob.run(Compiled Code)
-----------------------------------------------------------------------------------------
Este mensaje es confidencial y ata�e exclusivamente a las personas a las que va 
dirigido.
Cualquier opinion en el contenida, es exclusiva de su autor y no representa
necesariamente la opinion de Sema Group.
Si usted no es el destinatario de este mensaje, considerese advertido que lo ha 
recibido
por error y que cualquier uso, difusion o copia estan terminantemente prohibidos.
Si ha recibido este mensaje por error, por favor comuniquelo a Sema Group sae al
numero +34 91 4408800.

This email is confidential and intended solely for the use of the individual to whom 
it is addressed.
Any views or opinions presented are solely those of the author and do not necessarily 
represent
those of Sema Group. 
If you are not the intended recipient, be advised that you have received this email in 
error
and that any use, dissemination, forwarding, printing, or copying of this email is 
strictly prohibited.
If you have received this email in error please notify it to Sema Group sae by 
telephone on number
+34 91 4408800.
-----------------------------------------------------------------------------------------

----
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