javax.ejb.EJBException: Impossible to create the MyEjbBean

Hi friends,

I have created an session ejb and iam calling the ejb from a message drivenbeans ejb create method it look like this

context = new InitialContext();

service= (String) context.lookup("java:comp/env/myapp/ApplicationService");

ref = context.lookup("java:comp/env/myapp/myApplicationBean");

myEjbHome = (myEjbHome) PortableRemoteObject.narrow(ref, myEjbHome.class);

myRemoteEjb= myEjbHome.create();

in my ejb-jar.xml have a reference like this

<ejb-ref>

<ejb-ref-name>myapp/myApplicationBean</ejb-ref-name>

<ejb-ref-type>Session</ejb-ref-type>

<home>it.ejb.jms.myEjbHome</home>

<remote>it.ejb.jms.myRemoteEjb</remote>

<ejb-link>MyBean</ejb-link>

</ejb-ref>

I have a description in weblogic-ejb-jar.xml

<ejb-reference-description>

<ejb-ref-name>myapp/myApplicationBean</ejb-ref-name>

<jndi-name>MyBean</jndi-name>

</ejb-reference-description>

But while invoking the ejb i get error like this

Caused by: javax.ejb.EJBException: Impossible to create the MyBean: EJB Exception:; nested exception is:

java.lang.NullPointerException

can any one sugget some solution

thanks

Message was edited by:

rafelmit

[1382 byte] By [rafelmita] at [2007-11-27 2:37:59]
# 1
Check whether the look up using the JNDI name is working. Also check whether any exceptions are thrown while depolying the bean
enigma_y2k1a at 2007-7-12 2:58:42 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...