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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to