Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Application Deployment using wsadmin

618 views
Skip to first unread message

hemagovi...@rediffmail.com

unread,
Mar 10, 2008, 8:24:28 AM3/10/08
to
Hi All,<br />
Am deploying MDB Application in WAS using wsadmin command which is as below. Here am unable to bind the datasource and Queues. Can anyone tell how to go about it. I tried the following but its giving. Please help me in resolving this issue.<br />
<br />
<h6>Command:</h6>
wsadmin&gt;AdminApp.install('MDB_Bean.ear','[-nopreCompileJSPs -deployejb -appna<br />
me MDB_Bean -createMBeansForResources -noreloadEnabled -nodeployws -validatei<br />
nstall warn -noprocessEmbeddedConfig -BindJndiForEJBMessageBinding [[MDB_Bean<br />
jar MDB_Bean MDB_Bean.jar,META-INF/ejb-jar.xml MDB_LISTENER ejb/MDB<br />
_Bean]]-DataSourceFor20EJBModules[[MDB_Bean.jar MDB_Beann MDB_Bean.jar,<br />
META-INF/ejb-jar.xml ejb/DATASOURCENAME]]]')<br />
<br />
<h6>Error:</h6>
WASX7015E: Exception running command: "AdminApp.install('MDB_Bean.ear','[-nop<br />
reCompileJSPs -deployejb -appname MDB_Bean -createMBeansForResources -noreloa<br />
dEnabled -nodeployws -validateinstall warn -noprocessEmbeddedConfig -BindJndiFor<br />
EJBMessageBinding [[MDB_Bean.jar MDB_Bean MDB_Bean.jar,META-INF/ejb-jar<br />
xml MDB_LISTENER ejb/MDB_Bean]]-DataSourceFor20EJBModules[[MDB_Bean.ja<br />
r MDB_Beann MDB_Bean.jar,META-INF/ejb-jar.xml ejb/GW_EJB_Bean]]]')"; exception<br />
information:<br />
com.ibm.ws.scripting.ScriptingException: WASX7109E: Insufficient data for insta<br />
ll task "MapResRefToEJB<br />
<br />
ADMA0007E: A Validation error occurred in task Mapping resource references to re<br />
sources. The Java Naming and Directory Interface (JNDI) name is not specified f<br />
or reference binding QCF in module MDB_Bean.jar.<br />
ADMA0007E: A Validation error occurred in task Mapping resource references to re<br />
sources. The Java Naming and Directory Interface (JNDI) name is not specified f<br />
or reference binding DATASOURCE in module MDB_Bean.jar."

hemagovi...@rediffmail.com

unread,
Mar 11, 2008, 1:01:57 AM3/11/08
to
Hi All,<br />
Can anybody please help me on this

Ben_

unread,
Mar 11, 2008, 3:15:53 AM3/11/08
to
(...)
> WASX7109E: Insufficient data for install task "MapResRefToEJB"
(...)
> (JNDI) name is not specified for reference binding QCF in module
> MDB_Bean.jar.
(...)
> (JNDI) name is not specified for reference binding DATASOURCE in module
> MDB_Bean.jar.

Seems you have arguments missing in the call to "MapResRefToEJB".

Here is the example from the InfoCenter:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/topic/com.ibm.websphere.express.doc/info/exp/ae/rxml_minstallapp.html.

HTH.

hemagovi...@rediffmail.com

unread,
Mar 11, 2008, 9:11:04 AM3/11/08
to
Hi, <br />
Thanks for the reply. I went through the url specified. It was helpful. But I need to bind my appliaction with Datasource and connection factory and queues. Am not finding any option for Queues and connection Factories. Also For datasource the one am using is giving eroor. Can you please help me with this.

Stephen Cocks

unread,
Mar 11, 2008, 11:27:41 AM3/11/08
to
Reference to Connection Factory (or Datasource)
Use a resource-ref in the deployment descriptor
Use the -MapResRefToEJB option

Reference to Queue
Use a message-destination-ref (or resource-env-ref) in the deployment
descriptor
Use the -MapMessageDestinationRefToEJB (or -MapResEnvRefToRes) options

The error suggests you have declared two resource-ref entries called QCF and
DATASOURCE which means you'll need to use the -MapResRefToEJB (yes, the name
is misleading) option. I think you probably want to use that for your
DATASOURCE and not use the -DataSourceFor20EJBModules option (which I
believe doesn't apply in your case).

I can see you are also binding an MDB to a ListenerPort which looks ok. But
I don't see any evidence of access to a Queue. If you're still having
problems perhaps you could post your full deployment descriptor here.

Have you tried running AdminApp.installInteractive operation? This will help
identify the options which are valid for your specific EAR.

Another InfoCenter page link is
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/rxml_taskoptions.html

--
Stephen Cocks
WESB/WPS Administration

<hemagovi...@rediffmail.com> wrote in message
news:1021202588.120524109...@ltsgwas009.sby.ibm.com...

Rao

unread,
Mar 24, 2008, 1:45:18 AM3/24/08
to
Hi,<br />
<p />
I am deploying EJB on WAS using jython script. <br />
<br />
WASX7015E: Exception running command: "AdminApp.install('D:/Kernel10.0/GW_EJB/build/EJB_Bean.ear', '[ -nopreCompileJSPs -distributeApp -nouseMetaDataFromBinary -deployejb -appname EJB_Bean -createMBeansForResources -noreloadEnabled -nodeployws -validateinstall warn -noprocessEmbeddedConfig -BindJndiForEJBNonMessageBinding [<a class="jive-link-external" href="http:// EJB_Bean.jar EJB_Bean EJB_Bean.jar,META-INF/ejb-jar.xml ejb/EJB_Bean]">http:// EJB_Bean.jar EJB_Bean EJB_Bean.jar,META-INF/ejb-jar.xml ejb/EJB_Bean]</a> -MapResRefToEJB [<a class="jive-link-external" href="http://EJB_Bean.jar EJB_Bean EJB_Bean.jar,META-INF/ejb-jar.xml jdbc/DataSource javax.sql.XADataSource ejb/TestDS ]]">http://EJB_Bean.jar EJB_Bean EJB_Bean.jar,META-INF/ejb-jar.xml jdbc/DataSource javax.sql.XADataSource ejb/TestDS ]]</a>')"; <br />
<br />
exception information: com.ibm.ws.scripting.ScriptingException: WASX7111E: Cannot find a match for supplied option: "<a class="jive-link-external" href="http://EJB_Bean.jar, EJB_Bean, EJB_Bean.jar,META-INF/ejb-jar.xml, jdbc/DataSource, javax.sql.XADataSource, ejb/TestDS">http://EJB_Bean.jar, EJB_Bean, EJB_Bean.jar,META-INF/ejb-jar.xml, jdbc/DataSource, javax.sql.XADataSource, ejb/TestDS</a>" for task "MapResRefToEJB"<br />
<p />
<br />
please help me. I will look forward for your reply soon ...
0 new messages