Thanks John, that fixed it!
I tried option one and it works fine - seems like the deploy generates these
stubs which are then later needed for JNDI lookup - with Weblogic and BAS,
JBuilder generates the stubs for you directly in the EJB jar file - might be
a good idea for the next version of Jrun.
About option two could you be more specific about creating a new RMI
security manager - could you attach some example code.
Thanks again,
Noam
----------
From: John Zhao [SMTP:[EMAIL PROTECTED]]
Sent: 27 September 2001 15:31
To: JRun-Talk
Subject: RE: NamingException: Failed to unmarshal proxy
It seems to be a problem with loading home stub. There are two ways
to get
the home stub class on the client side.
1) you can add ejipt_exports.jar under your server deploy directory
into the
client classpath. You may open that jar file to verify if the
btest2.TestHomeObject_Stub is in there.
or
2) using dynamic class loading. create a new RMI security manager
in the
client code and also add a security policy file as a java arg when
you start
the client, such as
-Djava.security.policy=path/somepolicyfile.policy. You
may use jrun.policy as a sample.
Hope this helps.
Regards,
John
-----Original Message-----
From: BOROVOY Noam [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 27, 2001 9:14 AM
To: JRun-Talk
Subject: NamingException: Failed to unmarshal proxy
I know this is an old theme yet I've checked in the archives for an
answer
and didn't find one.
I'm getting the following error:
javax.naming.NamingException: Failed to unmarshal proxy. Root
exception is
java.lang.ClassNotFoundException: btest2.Test1HomeObject_Stub (no
security
manager: RMI class loader disabled)
on the lookup call:
Object ref =
ctx.lookup("java:comp/env/ejb/int.eu.oami.btest2.Test1");
My ejb-jar.xml:
<ejb-name>int.eu.oami.btest2.Test1</ejb-name>
<home>btest2.Test1Home</home>
<remote>btest2.Test1</remote>
<ejb-class>btest2.Test1Bean</ejb-class>
<session-type>Stateless</session-type>
.
It works fine with Weblogic and BAS with
Object ref = ctx.lookup("int.eu.oami.btest2.Test1");
But they have proprietary xml files which register the JNDI lookup
name...
Any ideas welcome.
Thanks,
Noam
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists