4 Replies Latest reply on Aug 28, 2004 5:34 PM by tony1929

    javax.naming.NameNotFoundException: StoreAccessBean not boun

    tony1929

      I am running the following tutorial :
      Tutorial for building J2EE Applications using JBOSS and ECLIPSE
      Chapter 3.

      When I run the tutorial I get the following error :
      javax.naming.NameNotFoundException: StoreAccessBean not bound

      it seems to be a common problem although no one has yet posted a solution.

      The tutorial involves a session bean calling a DAO. Calling the session bean by itself there is no problem its when it calls a the DAO method it falls over.

      As I see it there must be a bug in the XDOCLET generation.
      If you have completed this tutorial or got past chapter can u give me the fix.

      If this is unfixable please let me know and I will spend my time working on another unworkable tutorial.

      Thanks Tony

        • 1. Re: javax.naming.NameNotFoundException: StoreAccessBean not

          http://www.jboss.org/index.html?module=bb&op=viewtopic&t=36910

          Check this and hopefully will get yr solution.....

          Vishal

          • 2. Re: javax.naming.NameNotFoundException: StoreAccessBean not
            tony1929

            Thanks Vishal, but the proplem is not found in that thread.

            The problem is that the tutorial was set up for jboss-3.2.1 and I am using version jboss-3.2.5. with jboss jboss321all.server a ejbGenerate file is generated with jboss325all.server a xdoclet file is generated.

            And I have a feeling its how the DataAccessObject is accesed, if I remover the DAO tag from StoreAccessBean.java the StoreAccessBean is picked up ok.

            Do you know of any other tutorials, this is a good tutorial but I have the feeling that I will spend so much time trying to get it work that I will not get any real benefit in learning how the J2EE components work with JBoss.

            Thanks Tony

            • 3. Re: javax.naming.NameNotFoundException: StoreAccessBean not
              tony1929

              Hi Vishal,

              I started from scratch and managed to get chapter 3 up and running, but ended up with the same problem in Chapter 5.

              javax.naming.NameNotFoundException: StoreAccessBean not bound.

              I really want to get to the bottem what causes this problem, can you give me any hints on how to debug JBoss.

              The problem is without a rough idea of what causes it I am not sure of how to find out what the problem is.

              I would be grateful for any help.

              Thanks Tony

              • 4. Re: javax.naming.NameNotFoundException: StoreAccessBean not
                tony1929

                Sorted the problem

                the tag in StoreAccessBean

                @ejb.ejb-ref ejb-name="Customer"
                view-type="local"
                ref-name="CustomerLocal"


                generates the following in the ejb-jar

                <ejb-local-ref >
                <ejb-ref-name>CustomerLocal</ejb-ref-name>
                <ejb-ref-type>Entity</ejb-ref-type>
                <local-home>au.com.tusc.bmp.CustomerLocalHome</local-home>
                au.com.tusc.bmp.CustomerLocal
                <ejb-link>Customer</ejb-link>
                </ejb-local-ref>

                what I did was then add ejb in front of CustomerLocal
                <ejb-ref-name>ejb/CustomerLocal</ejb-ref-name>

                which solved the problem.

                Tony