From: Raphael V. <rv_...@os...> - 2005-09-29 21:49:31
|
Hi, thanks for your reply. >>[o(Exception):"java.lang.Exception: Invoke failed: >> > > [c:javax.rmi.PortableRemoteObject]->narrow((java.lang.Object)o(CDRInputStream_1_0$1):"com.sun.corba.se.internal.iiop.CDRInputStream_1_0$1:IOR: > > I have just tried this with the sun j2ee sample > server, narrow correctly returns the stub there: > [o(_DocumentHome_Stub):"IOR:00000000..."] > > So this problem seems to be oc4j specific. I have > tried to deploy the sample.jar into oracle but I have > given up for the moment because this AS doesn't accept > plain .jar files; I think I'll have to create a .ear > first. My first test was with the Sun AS (Version 8.1_02 (build b06-fcs)). I followed the tutorial step by step. Which mode do you use for the JavaBridge? Does it run in an AS or standalone? This is the only difference I could imagine. For this example I have used the j2ee.jar from sun which was delivered with the Application Server. > This ClassCastException rings a bell, however. Do you > use the j2ee.jar from oracle or from sun? > > > >>Seems so as if the Bridge has problems to cast the >>EJB to the home interface. > > > I think this is a oracle specific problem and doesn't > have anything to do with the bridge. -- If I remember > correctly, this error appears if one mixes the j2ee > jar files from different vendors. We have wasted > several hours, but I cannot remember how we solved > this problem. For the Test with the OC4j Container I used the oc4j.jar which has a own implementation of the necessary classes and interfaces. > I will check this, asap. Please see PR1308217 for > details: > http://sourceforge.net/tracker/index.php?func=detail&aid=1308217&group_id=117793&atid=679233 Thanks for your support! Regards, Raphael |