Also, make sure your classpath doesn't contain any references to the IAS or Visibroker .jar files. Your lookup is seeing the Visibroker ORB which is querying OSAGENT for the proper ejbcontainer with the intention of doing a lookup in it. Clearly, it isn't even hitting JBoss. >-----Original Message----- >From: Dan Christopherson [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, March 06, 2001 2:52 PM >To: JBoss-User >Subject: Re: [jBoss-User] Looking up entity from session > > >When I was playing with IAS/Visibroker, I ran my programs >using the 'vbj' >wrapper, which set up the environment. Make sure you don't have any >legacy environment stuff from one of those wrappers. The >'System.setProperty' stuff you quote below shouldn't be >neccessary in an >EJB: EJBs should just call 'new InitialContext()' - it's the >container's >job to get the write properties to where InitialContext sees them. > >It does look an awful lot like you're running half configured for >Visibroker/IAS, though. > >Other than environmental issues like this I'd expect >JBoss<->IAS ports to >be about the easiest, as they're the most flexible containers >i've seen. > >On Tue, 6 Mar 2001, 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 >> 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(Portab >leRemoteObject.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.addCo >unty(ODOTRefBean. >> > > > > java:136) >> > > > > [ODOTRefBean] at >java.lang.reflect.Method.invoke(Native Method) >> > > > > [ODOTRefBean] at >> > > > > >> > > >> >org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.in >voke(StatelessSes >> > > > > sionContainer.java:472) >> > > > > [ODOTRefBean] at >> > > > > >> > > >> >org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invok >e(StatelessSessio >> > > > > nInstanceInterceptor.java:87) >> > > > > [ODOTRefBean] at >> > > > > >> >org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptor >CMT.java:133) >> > > > > [ODOTRefBean] at >> > > > > >> > > >> >org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIn >terceptorCMT.java >> > > > > :263) >> > > > > [ODOTRefBean] at >> > > > > >org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99) >> > > > > [ODOTRefBean] at >> > > > > >> > > >> >org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterc >eptor.java:144) >> > > > > [ODOTRefBean] at >> > > > > >org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192) >> > > > > [ODOTRefBean] at >> > > > > >> > > >> >org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSession >Container.java:27 >> > > > > 1) >> > > > > [ODOTRefBean] at >> > > > > >> > > >> >org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(J >RMPContainerInvok >> > > > > 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(TCPTra >nsport.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] >> > >-- >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]
RE: [jBoss-User] Looking up entity from session
DUBCHAK, JOHN [Non-Pharmacia/1000] Tue, 06 Mar 2001 13:35:29 -0800
- Re: [jBoss-User] Looking up en... Dan Christopherson
- [jBoss-User] How to find o... Mandar Joshi
- Re: [jBoss-User] How t... James Cook
- Re: [jBoss-User] Looking u... James Cook
- Re: [jBoss-User] Looki... Dan Christopherson
- Re: [jBoss-User] Looki... Toby Allsopp
- Re: [jBoss-User] Looki... James Cook
- Re: [jBoss-User] ... Toby Allsopp
- Re: [jBoss-Us... danch
- Re: [jBoss-Us... Toby Allsopp
- Re: [jBoss-User] Looking up entity from... DUBCHAK, JOHN [Non-Pharmacia/1000]
- Re: [jBoss-User] Looking up entity from... James Cook
