On Tue, Mar 06, 2001 at 03:34:48PM -0500, James Cook wrote:
> Thanks for the followup Dan.
>
> I'm simply narrowing the Stub.
>
> public static Object getHome(String name, Class clazz) throws
> NamingException {
> Object o = getInitialContext().lookup(name);
> return PortableRemoteObject.narrow(o, clazz);
> }
>
> I am migrating a bean (that works fine) from Borland App Server to jBoss as a
> test. I think the problem is that I haven't set the:
>
> System.setProperty("java.naming.factory.initial",
> "org.jnp.interfaces.NamingContextFactory");
> System.setProperty("java.naming.provider.url", "localhost:1099");
>
> in the server VM yet. (Actually I just tested this and it is part of my
You don't need or want to do that within JBoss. What were these properties
set to before you changed them?
> problem). I am now getting this Exception:
>
> [ODOTRefBean] java.lang.ExceptionInInitializerError: org.omg.CORBA.INITIALIZE:
> cannot instantiate com.inprise.vbroker.rmi.CORBA.UtilImpl minor code: 0
> completed: No
> [ODOTRefBean] at javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:308)
> [ODOTRefBean] at javax.rmi.CORBA.Util.<clinit>(Util.java:53)
> [ODOTRefBean] at
> javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.ja
> va:182)
>
> Apparently, I have to set some other system property to get the visibroker stuff
> out of there, but I'm not sure which ones need to be set...
This sounds very similar to the problem Ricky (or wt or something) was having
with using PortableRemoteObject inside JBoss. My current theory is that
JBuilder or some other Borland thing messes with orb.properties in your
JDK installation. Try checking for an orb.properties somewhere that specifies
com.inprise.something.
Toby.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]