facebook

EJB not boung

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #244691 Reply

    cirdec
    Member

    I make a struts application with EJB. I deploy it but i’ve got an error in my Action file :
    javax.naming.NameNotFoundException: com.cirdec.ejbsessions.EjbClientHome not bound

    Here is my Action file :

    public ActionForward execute(
            ActionMapping mapping,
            ActionForm form,
            HttpServletRequest request,
            HttpServletResponse response) {
            ClientListForm clientListForm = (ClientListForm) form;
            
            try{
                EjbClientHome home = EjbClientUtil.getHome();
                EjbClient bean = home.create();
                
                clientListForm.setClients(bean.getAllClient());
                
                return mapping.findForward("success");
            }catch(Exception e){
                System.out.println("[DEBUG]-> "+e);
                return mapping.findForward("error");
            }
            
        }

    May someone help me? It’s for a school project.

    #244698

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    #256072

    wilkerd1
    Member

    Not sure if this the right place to post this but here’goes…

    I was having the ejb not bound naming issue with my beans and I WAS using the XDoclet generated util objects. The comp names that are generated are wrong. I looked in Jboss and my beans were there under the global JNDI but not under comp.

    The short answer is add the following to the top of your bean: @ejb.util generate=”physical” …This will have the util object’s methods geared for using the JNDI name instead of the COMP name.

    This one bit me for quite a few hours and several Advil tablets. Plus, no where on the web was there a straight forward, rock solid answer. This solved my issue and I hope this post can be read by others to help them too! 😉

    Regards,
    dw

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: EJB not boung

You must be logged in to post in the forum log in