Thanks Richard and Hong for looking into how we can test this for
future. I have
logged the following test enhancement to track on this.
https://glassfish.dev.java.net/issues/show_bug.cgi?id=11344
Have a good weekend :-)
Judy
Hong Zhang wrote:
> 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