quality@glassfish.java.net

Re: Nasty null pointer exception on deploy

From: Hong Zhang <Hong.Zhang_at_Sun.COM>
Date: Sat, 19 Dec 2009 12:55:04 -0500

Hi, Richard

>> Adding a SessionBean fixes the problem.
>> I added this to the issue.
>
> Thanks for trying this! Yes, you need to have at least one EJB in
> an ejb jar. :-)
> I will work on providing a better error message for the negative case.
>
>
> Great, thanks.
> Can I humbly suggest a unit test for this.
> Not sure if you can check error messages from the deploy in the unit test.

No, the current deployment unit test framework does not support this
kind of negative testing...

Thanks,

- Hong