I have a Maven EJB project that is meant to be installed on a WAS8.5 server. Everything compiles up to the EAR fine, however, when I try to deploy the application the MDB mappings are not auto-filled in. I extract the jar (inside the ear) and I see…
--META-INF
----ejb-jar.xml
----ibm-ejb-jar-bnd.xml
So why isn’t the mapping being picked up? Is there a configuration I need in my Plugin?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb-plugin</artifactId>
<version>2.2</version>
<configuration>
<ejbVersion>3.0</ejbVersion>
<generateClient>true</generateClient>
<archive>
<manifest>
<!-- generate manifest file properly -->
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>
UPDATE:
This looks like it is more of a problem with ibm-web-bnd.xml. I have confirmed that is in the final war.
Update for question…
I am using activation spec, as far as I can tell these are delcared fine in the ibm-ejb-bnd.xml of the ejb project. I can see them there in the ear. However, it still doesn’t work. Also, I have an ear built by the old system and here and I have found no real differences in the following files…
- application.xml
- ibm-web-bnd.xml
- ibm-ejb-jar-bnd.xml
I have also glanced over the web.xml and MANIFEST files and don’t see anything.
Finally another weird note is when I try to install the maven generated one I see…

However, when I try to upload the Ant (previous build) one I see these options

UPDATE: Per comment
I added these files to a folder called new and one called old.
~/My Documents/tmp/file
$ ls old/
application.xml ibm-ejb-jar-bnd.xml ibm-web-ext.xml
ejb-jar.xml ibm-web-bnd.xml
I then diffed the two folders, here is the outcome…
diff new/application.xml old/application.xml
5c5
< <module id="Module_1352494482335">^M
---
> <module id="Module_1276803943498">^M
I played around with so many things my resolution was unscientific. However, this SEEMED to work for me….