JEE/JSF-Error: NPE with EjbBundleValidator

Recently I got te following error:

SEVERE: Exception while deploying the app [BreakEven]
SEVERE: The log message is null.
java.lang.NullPointerException
at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:801)
...

The deployment of my project didn’t work anymore (NB 7.0, GF 3.1.1) . Fortunately I found the following forum entry:

http://forums.netbeans.org/post-91282.html

The solution was easy. NB is looking for non-existent EJBs referred in web.xml. So I had to remove the following entry from web.xml

</pre>
<ejb-local-ref>
<ejb-ref-name>ProductFacade</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<ejb-link>BreakEven-ejb.jar#ProductFacade</ejb-link>
</ejb-local-ref>
<pre>

Afterwards it worked smoothly again.

Thank you theshowmecanuck and jsy

This entry was posted in glassfish, JEE, JSF. Bookmark the permalink.

Leave a comment