Deploying an application in WAS 8 gives me an error:
Cannot find a match for supplied option: “[ejb.jar, ejbName, ejb.jar,META-INF/ibm-ejb-jar-bnd.xml, ejb/ejbName]” for task “BindJndiForEJBNonMessageBinding”
my entry in ibm-ejb-jar-bnd.xml
<session name="ejbName">
<interface class="com.manager.EJBNameManager" binding-name="ejb/ejbName"/></session>
my entry in deploy.jacl
[-BindJndiForEJBNonMessageBinding ejb.jar ejbName ejb.jar,META-INF/ibm-ejb-jar-bnd.xml ejb/ejbName]
my ejb.jar structure has META-INF/ibm-ejb-jar-bnd.xml also.
Was my entry in ibm-ejb-jar-bnd.xml correct? Please enlighten me on this one. Thanks.
Instead of providing the path to your ejb jar bindings (
ejb.jar,META-INF/ibm-ejb-jar-bnd.xml), you should be providing the path to your ejb deployment descriptor (e.g.ejb.jar,META-INF/ejb-jar.xml).In addition, you shouldn’t even need the ejb bindings file, because you are creating the binding using JACL. The
ibm-ejb-jar-bnd.xmlfile will automatically be created for you as a result of your deployment.(Also, as a side note, WAS deprecated its use of JACL in WAS 7, so you should consider using
jythonfor yourwsadminscripts instead.)