Thanks for the reply. Sorry for the long unclear question that I brough out 
in last mail.

Actually what I want to ask is why the client program throw the "ABCHome" 
not bound exception when it try to lookup the "ABCHome". What I can see 
buring the JBoss start up is, everything is fine and it even shown that 
"ABCHome" bounded. But I just can't lookup the object that I want to. I 
event changed my code which try to lookup the Account, Customer, Bank and so 
on.... which that EJBBeans came with the JBoss 2.0. It doesn't work. All 
thrown me the same exception said that object not bound.

Please help me how to get it work and I feel like crazy as I totaly have no 
ideal how to get it work. I beleaved some one out there did faced the same 
problem before and able to solve the problem. Please help up....

Thanks...

Coco


>From: Rickard �berg <[EMAIL PROTECTED]>
>Reply-To: "jBoss" <[EMAIL PROTECTED]>
>To: jBoss <[EMAIL PROTECTED]>
>Subject: [jBoss-User] Re: [jBoss-User]
>Date: Wed, 14 Jun 2000 10:34:50 +0200
>
>Hi!
>
>coco Cambol wrote:
> > I'm a new to JBoss (not really)....and been try to use it since a month 
>ago.
> > But still can't get it works for me. The very first problem that I faced 
>was
> > I got the wrong version of JDK to run JBoss. It suppose to use JDK1.3 
>but I
> > use JDK1.2.2 . Anyway, now the server is working I mean JBoss is working
> > once I swich to JDK1.3 beta(Linux).
>
>You can use JDK 1.2.2 but you must make sure that you configure your
>beans to use the JDK 1.2.2 containerinvoker plugin and not the 1.3 one.
>
> > Now I got another problem which is I can't get the client connect to the
> > JBoss. May be it's connected but I get the error exception said that the
> > HomeObject I lookuped was not found...
> >
> > Actuall message :
> >
> > javax.naming.NameNotFoundException: ABCHome not bound
>
>It's in the details. "ABCHome" is not bound.
>
> > [Container factory] Bound ABCBean to ABCBean
>
>But "ABCBean" is. ABCHome != ABCBean. Make sure you look up the same
>name you bind to.
>
> > Below is the code of my client program....
> >
> > try {
> >         Properties prop = /*System.getProperties();//*/new Properties();
> > 
>prop.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
>
>This isn't necessary. Put this in jndi.properties, and make that file
>available through JNDI.
>
> > try {
> >         ctx = new InitialContext(prop);
> >         System.out.println("Got context........");
> > } catch (NamingException nme) {
> >         System.out.println("Can't get context...");
> >         nme.printStackTrace();
> > }
> >
> > try {
> >         System.out.println("Find home");
> > //                      home = (ConverterHome)
> > javax.rmi.PortableRemoteObject.narrow(ctx.lookup("ConverterBean"));
> >         home = (ConverterHome)  ctx.lookup("ConverterHome");
> >         System.out.println("Found home");
> >         } catch (Exception e) {
> >                 System.out.println("Can't lookup ConverterHome...");
> >                 e.printStackTrace();
> > }
> >
> > As you see from the code, I event try to lookup the "ABCHome" by using 
>the
> > rmi.lookup method. But it doesn't work.
>
>You're not looking up "ABCHome" at all. You're looking for
>"ConverterHome". What are you talking about???
>
> > Please help me and .... I also wondering about the JBoss which I have to 
>run
> > the clinet program at the director where JNDI.properties (and those 
>files in
> > the /conf) located. If I don't run the client in the directory which has
> > those files I get the error exception said that
> >
> > Actuall message :
> >
> > javax.naming.ServiceUnavailableException: rmi.  Root exception is
> > java.net.UnknownHostException: rmi
> >         at java.net.InetAddress.getAllByName0(InetAddress.java:571)
> >         at java.net.InetAddress.getAllByName0(InetAddress.java:540)
> >         at java.net.InetAddress.getByName(InetAddress.java:449)
> >         at java.net.Socket.<init>(Socket.java:100)
> >         at 
>org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:503)
> >         at 
>org.jnp.interfaces.NamingContext.lookup(NamingContext.java:159)
> >         at 
>org.jnp.interfaces.NamingContext.lookup(NamingContext.java:152)
> >         at javax.naming.InitialContext.lookup(InitialContext.java:350)
> >         at ConverterBeanClient.main(ConverterBeanClient.java:31)
> >
> > I know it's quite a long message but I just want to show clearly about 
>the
> > problem that I facing.
>
>You should add the files in /client to your clients classpath.
>
> > Please help me and thanks in advance....
>
>We will be working on getting easy examples working.
>
>Hang in there ;-)
>
>regards,
>   Rickard
>
>--
>Rickard �berg
>
>@home: +46 13 177937
>Email: [EMAIL PROTECTED]
>http://www.telkel.com
>http://www.jboss.org
>http://www.dreambean.com
>
>
>--
>--------------------------------------------------------------
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>Problems?:           [EMAIL PROTECTED]
>

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com



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

Reply via email to