wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes javax. naming .Name NotFoundException: StoreAccessBean not bound (common error) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "javax. naming .Name NotFoundException: StoreAccessBean not bound (common error)" Watch "javax. naming .Name NotFoundException: StoreAccessBean not bound (common error)" New topic
Author

javax. naming .Name NotFoundException: StoreAccessBean not bound (common error)

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 573
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 :
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
Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 573
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>
<local>au.com.tusc.bmp.CustomerLocal</local>
<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
Ken Loh
Ranch Hand

Joined: Feb 16, 2005
Posts: 190
The solution that you've mentioned however requires the same modification each time xdoclet is run. This is very unproductive as far as developer's effort is concerned.

If you follow the bugtrack #674, #690 and #901 in http://opensource.atlassian.com/projects/xdoclet/browse/XDT-690, you would, like I, have the impression that the bug has been fixed.

However, I do not know how to integrate the fixes in XDoclet into my Lomboz in my Eclipse.

Any help in whatever kind will certainly lessen my misery.

Originally posted by Tony Evans:
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>
<local>au.com.tusc.bmp.CustomerLocal</local>
<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
 
wood burning stoves
 
subject: javax. naming .Name NotFoundException: StoreAccessBean not bound (common error)
 
Similar Threads
what causes error bean not bound
Transaction EJB session bean
Help needed with ejbs+jboss!!!
BMP transaction in DAO
JBoss Newbie