Issue calling an EJB

Hello everybody.

I have the following scenario:

I have an enterprise application with two EJB modules.

I am trying to call an EJB located at a package, from a class in the other package. In netbeans I am using the wizard "Call an enterprise bean" and it creates a lookup method which is supposed to return the interface.

When I use this method to initialize the interface field, I am getting an java.lang.NullPointerException.

A thing I do have is that the source package at the two modules is named the same. Could it cause the error?

Any hint about that?

Thanks in advance for your help.

Sergio Guti閞rez

[660 byte] By [Sgutierba] at [2007-11-27 5:10:40]
# 1
Hi ,At the first you could rename your package in the module number one and redeploy and see what happen.regards
serkolaa at 2007-7-12 10:30:52 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Hi Serkola.I did try renaming the package and still get the NullPointerException. I am not sure how to invocate the EJB from the first package. Can I use EJB annotation, or do I have to execute a conventional naming lookup?Regards.
sgutierba at 2007-7-12 10:30:52 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...