[nbj2ee] Call Enterprise Bean in Maven Project - "Selected bean is not in the same module or enterprise application"

  • From: "kauedg" < >
  • To:
  • Subject: [nbj2ee] Call Enterprise Bean in Maven Project - "Selected bean is not in the same module or enterprise application"
  • Date: Mon, 08 Oct 2012 09:28:57 -0400

Solved it doing:

- Delete all entity classes;
- Delete all EJB Beans (they did not have interfaces previously, but 
ejb-lookup worked);
- Delete persistence.xml;
- Clean all projects, undeploy from Glassfish and stopped the server;
- Recreated persistence.xml;
- Recreated entity classes and EJB Beans (now with Local interfaces);
- Rebuilt all modules with dependencies;
- In the web project's @Named bean, changed the @EJB from

@EJB private TestFacade ejbFacade;
to
@EJB private TestFacadeLocal ejbFacade;

- Fixed imports;
- Save file, wait for redeploy and it worked.
- Now the (^I) -> "Call enterprise bean" sees all beans and no longer shows 
the ""Selected bean is not in the same module or enterprise application" 
message.

Don't know wich exaclty step fixed it...






[nbj2ee] Call Enterprise Bean in Maven Project - "Selected bean is not in the same module or enterprise application"

kauedg 10/08/2012

[nbj2ee] Call Enterprise Bean in Maven Project - "Selected bean is not in the same module or enterprise application"

kauedg 10/08/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close