Hi Lev, You can check to see what beans are loaded into the system and what their JNDI names are by either checking your openejb.log and looking in this output:
<openebj.log> ... DEBUG: Deployments : 20 DEBUG: Type Deployment ID DEBUG: STATEFUL client/tests/stateful/RMI-over-IIOP/EJBHome DEBUG: CMP_ENTITY client/tests/entity/cmp/EncBean DEBUG: CMP_ENTITY client/tests/entity/cmp/BasicCmpHome DEBUG: BMP_ENTITY client/tests/entity/bmp/allowed_operations/EntityHome DEBUG: STATEFUL client/tests/stateful/EncBean DEBUG: STATELESS Hello ... </openebj.log> You can see that I have the Hello bean available in my system, as well as the test suite beans. So, I could look them up like: ctx.lookup("/client/tests/stateful/EncBean"); ctx.lookup("/Hello"); Another way, which is kind of fun, is to telnet into your started Remote server and use the system command to get the list of beans and containers in your system. <shell> dblevins@Miles ~ $ telnet localhost 4200 Trying 127.0.0.1... Connected to Miles. Escape character is '^]'. OpenEJB Remote Server Console type 'help' for a list of commands [openejb]$ system Containers: Default Stateless Container Default BMP Container Default Stateful Container Default CMP Container Deployments: client/tests/stateful/RMI-over-IIOP/EJBHome client/tests/entity/cmp/EncBean client/tests/entity/cmp/BasicCmpHome client/tests/entity/bmp/allowed_operations/EntityHome client/tests/stateful/EncBean Hello client/tests/stateless/EncBean client/tests/entity/bmp/RMI-over-IIOP/EJBHome client/tests/entity/cmp/RMI-over-IIOP/EJBHome client/tests/stateless/RMI-over-IIOP/EJBHome ... </shell> If you don't see your bean there, it isn't there. This could be for one of two reasons: 1. There was a problem with your bean, in which case, look for lines in your openejb.log starting with WARN. OpenEJB will tell you if it didn't load a jar because of a problem. 2. You didn't restart the server after deploying your bean like the deploy tool told you to, in which case, shame on you ;) I suppose a third possibility is that you didn't redeploy your bean after changing it's ejb-name. Let us know how it goes. -David -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Lev Assinovsky Sent: Wednesday, October 09, 2002 2:37 PM To: David Blevins Cc: [EMAIL PROTECTED] Subject: Re: [OpenEJB-user] start_openejb.sh exception Thanks David. Your advise helped. Now I have another problem. I have: Exception in thread "main" javax.naming.NameNotFoundException: /VoteBean not found where VoteBean is a replacement of EmployeeBean in HelloWorldCMP. As you could guess the exception happens after a client tries to lookup("VoteBean"). What might be the reason of the exception and how to debug this case? No errors are in openejb.log and nothing is about my VoteBean though I have deployed it. Thanks, David Blevins wrote: Hi Lev, Sure you can, here is the documentation to start OpenEJB's Remote Server. http://openejb.sourceforge.net/start-command.html http://openejb.sourceforge.net/remote-server.html Or, you can just type: ./openejb.sh start -help That will give you info on all the start options. You can also type: ./openejb.sh start -examples That will give you working examples on how to use the different options and describes a bit about what they do. You can also run the Hello World CMP example against the Local Server just by changing your client to point to that InitialContextFactory. In this case, you're using OpenEJB as an embedded library like a JDBC driver and don't need to start anything. That is documented here: http://openejb.sourceforge.net/embedded.html Let us know if you have any trouble, David > Lev Assinovsky wrote: > > So I can't run "HelloWorld" CMP example with 0.8.3? > > David Blevins wrote: > > > > Hi Lev, > > > > No mistake, the CORBA adapter is intentionally not in the release. It > > had too many issues to be shipped or used. Apple has just contributed a > > complete rewrite of the CORBA adapter. They use RMI-IIOP to integrate > > OpenEJB into the WebObjects EOF and have been working on the new adapter > > for several months now. > > > > The new CORBA adapter was just checked into cvs yesterday in fact. We > > still need to get some documentation for it whipped up, hook it into the > > command line script, and workup some deploy support for generating stubs > > and ties. > > > > The whole thing will ship with OpenEJB 0.9. Should be a great release. > > > > -David ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ http://OpenEJB.sf.net OpenEJB-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/openejb-user -- Lev Assinovsky Aelita Sofware Corp. Programmer St. Petersburg, Russia Tel: +7 812 532-4225 ext. 208 E-mail: [EMAIL PROTECTED] ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ http://OpenEJB.sf.net OpenEJB-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/openejb-user