I have an ear which contains several ejb jar and one war file. In the war file we have defined references to some ejb inside the web.xml. The problem is when I am deploying the ear into Oracle App Server its working fine but as soon as I deploy it into JBoss 5.0.1 GA it throws error. The ejb that is showing error is defined in web.xml as
The error I am getting on console is
Any help on this problem would be highly appreciated.
I asked myself the reason for this exception: The problem of "Could not dereference object" seems to appear when the JNDI name actually exists but the resource references has a broken link, ie the name points on to another name that doesn't exist. When the name doesn't exist at all in the first place we'll get the "name not bound exception".
In server.log I could see that the EJBs were actually deployed and bound to the JNDI
I tried making link using jboss.xml but still didnt get succeeded
Is here anyone who can at-least give me a hint what could be the problem?
Looks like a deployment ordering issue. Your web application .war is being deployed before the EJBs are bound to JNDI. You'll have to add a dependency on the EJB container's MBean in your jboss-web.xml.