To all,

In my <jre>/lib directory I had an orb.properties file that was getting loaded.
Turns out I had the following lines in there:

org.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB
org.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORB
javax.rmi.CORBA.UtilClass=com.inprise.vbroker.rmi.CORBA.UtilImpl
javax.rmi.CORBA.StubClass=com.inprise.vbroker.rmi.CORBA.StubImpl
javax.rmi.PortableRemoteObjectClass=com.inprise.vbroker.rmi.PortableRemoteObject
Impl

I am assuming that the javax.rmi.* settings were screwinging up jBoss. Just as a
point of documentation, what are the proper settings for these properties for
jBoss? (My beans started working fine when I simply renamed this class.)

jim


----- Original Message -----
From: "James Cook" <[EMAIL PROTECTED]>
To: "JBoss-User" <[EMAIL PROTECTED]>
Sent: Tuesday, March 06, 2001 3:34 PM
Subject: Re: [jBoss-User] Looking up entity from session


> 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
> 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...
>
> jim
>
> ----- Original Message -----
> From: "Dan Christopherson" <[EMAIL PROTECTED]>
> To: "JBoss-User" <[EMAIL PROTECTED]>
> Sent: Tuesday, March 06, 2001 2:26 PM
> Subject: Re: [jBoss-User] Looking up entity from session
>
>
> > On Tue, 6 Mar 2001, James Cook wrote:
> >
> > > No, all beans are in the same jar.
> > >
> > > There are no RMI stubs generated or in the jar (AFAIK). I am assuming that
> these
> > > are somehow marshalled to the client using a codebase variable?
> > >
> > > I am using JDK 1.3.
> > Stubs are generated at runtime using the java.lang.reflect.Proxy class and
> > its ilk.
> >
> > what is happening at EJBUtil.java, line 33?
> >
> > >
> > > jim
> > >
> > > ----- Original Message -----
> > > From: "Dan Christopherson" <[EMAIL PROTECTED]>
> > > To: "JBoss-User" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, March 06, 2001 1:30 PM
> > > Subject: Re: [jBoss-User] Looking up entity from session
> > >
> > >
> > > > I take it the two beans are in different jars? Try either putting them
in
> > > > the same jar (probably best if they're closely related), putting all
> > > > interface classes (including primary keys) into a third jar which is
> > > > referenced in a Class-Path statement in the ejb-jars manifest.mf file.
> > > >
> > > > On Tue, 6 Mar 2001, James Cook wrote:
> > > >
> > > > > I can lookup my entity bean from my client and invoke methods on it,
> however
> > > I
> > > > > can't access the entity bean from a session bean. I have tried
accessing
> the
> > > > > entity bean from the session using ejb-ref properties and direct. No
> success
> > > > > either way. The exception I get appears below:
> > > > >
> > > > > thanks,
> > > > > jim
> > > > >
> > > > > When looking up the home interface, I receive:
> > > > >
> > > > > [ODOTRefBean] TRANSACTION ROLLBACK EXCEPTION:null; nested exception
is:
> > > > >         java.lang.NoClassDefFoundError
> > > > > [ODOTRefBean] java.lang.NoClassDefFoundError
> > > > > [ODOTRefBean]   at
> > > us.oh.state.dot.common.ejb.EJBUtil.getHome(EJBUtil.java:33)
> > > > > [ODOTRefBean]   at
> > > > >
> > >
>
us.oh.state.dot.common.ejb.reference.ejb.bean.ODOTRefBean.addCounty(ODOTRefBean.
> > > > > java:136)
> > > > > [ODOTRefBean]   at java.lang.reflect.Method.invoke(Native Method)
> > > > > [ODOTRefBean]   at
> > > > >
> > >
>
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSes
> > > > > sionContainer.java:472)
> > > > > [ODOTRefBean]   at
> > > > >
> > >
>
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessio
> > > > > nInstanceInterceptor.java:87)
> > > > > [ODOTRefBean]   at
> > > > >
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
> > > > > [ODOTRefBean]   at
> > > > >
> > >
>
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java
> > > > > :263)
> > > > > [ODOTRefBean]   at
> > > > >
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
> > > > > [ODOTRefBean]   at
> > > > >
> > >
> org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:144)
> > > > > [ODOTRefBean]   at
> > > > > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
> > > > > [ODOTRefBean]   at
> > > > >
> > >
>
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:27
> > > > > 1)
> > > > > [ODOTRefBean]   at
> > > > >
> > >
>
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvok
> > > > > er.java:163)
> > > > > [ODOTRefBean]   at java.lang.reflect.Method.invoke(Native Method)
> > > > > [ODOTRefBean]   at
> > > > > sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
> > > > > [ODOTRefBean]   at
sun.rmi.transport.Transport$1.run(Transport.java:142)
> > > > > [ODOTRefBean]   at java.security.AccessController.doPrivileged(Native
> > > Method)
> > > > > [ODOTRefBean]   at
> > > sun.rmi.transport.Transport.serviceCall(Transport.java:139)
> > > > > [ODOTRefBean]   at
> > > > >
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
> > > > > [ODOTRefBean]   at
> > > > >
> > >
>
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:643)
> > > > > [ODOTRefBean]   at java.lang.Thread.run(Thread.java:484)
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > --------------------------------------------------------------
> > > > > To subscribe:        [EMAIL PROTECTED]
> > > > > To unsubscribe:      [EMAIL PROTECTED]
> > > > >
> > > >
> > > > --
> > > > Dan Christopherson (danch)
> > > > nVisia Technical Architect (www.nvisia.com)
> > > >
> > > > Opinions expressed are mine and do not neccessarily reflect any
> > > > position or opinion of nVISIA.
> > > >
> > >
> > ---------------------------------------------------------------------------
> > > > If you're a capitalist and you have the best goods and they're
> > > > free, you don't have to proselytize, you just have to wait.
> > > > -Eben Moglen
> > > >
> > > >
> > > >
> > > > --
> > > > --------------------------------------------------------------
> > > > To subscribe:        [EMAIL PROTECTED]
> > > > To unsubscribe:      [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > --------------------------------------------------------------
> > > To subscribe:        [EMAIL PROTECTED]
> > > To unsubscribe:      [EMAIL PROTECTED]
> > >
> >
> > --
> > Dan Christopherson (danch)
> > nVisia Technical Architect (www.nvisia.com)
> >
> > Opinions expressed are mine and do not neccessarily reflect any
> > position or opinion of nVISIA.
> >
> > ---------------------------------------------------------------------------
> > If you're a capitalist and you have the best goods and they're
> > free, you don't have to proselytize, you just have to wait.
> > -Eben Moglen
> >
> >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
>



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]

Reply via email to