Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.7.0
-
None
-
All
Description
I am getting a NullPointerException on trying to deploy an MDB. The error occurs due to a ClassCastException in EjbJarUtils.
This is because in the code a MessageDrivenBean is tried to be cast as a SessionBean. Fixing this reveals a lot of other errors because I guess the MDB container impl is incomplete . I am attaching two patches. mdb.patch is from <openejb3 home>\itests\openejb-itests-beans\src\main\java\org\apache\openejb\test directory while ejb-jar.patch is from
<openejb3 home>\itests\openejb-itests-beans\src\main\resources\META-INF directory. Deploying this bean causes these errors.