ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Process Server (WID/WPS/WAS+) » Error using MapResRefToEJB in Jython script

Post new topic  Reply to topic
 Error using MapResRefToEJB in Jython script « View previous topic :: View next topic » 
Author Message
anveshita
PostPosted: Fri Feb 19, 2010 7:44 am    Post subject: Error using MapResRefToEJB in Jython script Reply with quote

Master

Joined: 27 Sep 2004
Posts: 254
Location: Jambudweepam

I am trying to deploy an EJB on WAS 6.1 using jython script.

I am getting the following exception when I map the Resource References to Data Sources
WASX7111E: Cannot find a match for supplied option:

Following is the output from AdminApp.taskInfo('myEAR.ear','MapResRefToEJB')

Module: myEAR-EJB
EJB: myEAR
URI: myEAR-EJB.jar,META-INF/ejb-jar.xml
Resource Reference: jdbc/myEARDatasource
Resource type: javax.sql.DataSource
Target Resource JNDI Name: jdbc/myEARDB
Login configuration name: DefaultPrincipalMapping
Properties: 'node_name'/superuser

where node_name is the actual node_name and superuser is the user that I have created a J2C Auth Entry for accessing the Database.

Following are the application deployment options that I have given:
The only place I am getting exception is the MapResRefToEJB for the DataSource

=================App Options=============

Code:
['-MapModulesToServers', [['myEAR-EJB', 'myEAR-EJB.jar,META-INF/ejb-jar.xml', 'WebSphere:cell=xxxxxNode02Cell,node=xxxxxNode02,server=server1']],
 
'-MapWebModToVH', [['myEARAdmin-Web', 'myEARAdmin-Web.war,WEB-INF/web.xml', 'default_host']], '-BindJndiForEJBMessageBinding', [['myEAR-EJB',
 
'RequestListener', 'myEAR-EJB.jar,META-INF/ejb-jar.xml', '', 'eis/myEARRequestListener']], '-BindJndiForEJBMessageBinding', [['myEAR-EJB', 'HL7Listener',
 
'myEAR-EJB.jar,META-INF/ejb-jar.xml', '', 'eis/myEARListener']], '-MapResRefToEJB', [['myEAR-EJB', 'myEAR', 'myEAR-EJB.jar,META-INF/ejb-jar.xml',
 
'url/myEARConfigProperties', 'java.net.URL', 'url/myEARProperties']], '-MapResRefToEJB', [['myEAR-EJB', 'myEARNanny', 'myEAR-EJB.jar,META-INF/ejb-jar.xml',
 
'url/myEARConfigProperties', 'java.net.URL', 'url/myEARProperties']], '-MapResRefToEJB', [['myEAR-EJB', 'myEARListener',
 
'myEAR-EJB.jar,META-INF/ejb-jar.xml', 'jms/ConnectionFactory', 'javax.jms.ConnectionFactory', 'jms/DefaultMessaging_CF']], '-MapResRefToEJB',
 
[['myEAR-EJB', 'myEARNanny', 'myEAR-EJB.jar,META-INF/ejb-jar.xml', 'jms/ConnectionFactory', 'javax.jms.ConnectionFactory', 'jms/DefaultMessaging_CF']],
 
'-MapResRefToEJB', [['myEAR-EJB', 'RequestListener', 'myEAR-EJB.jar,META-INF/ejb-jar.xml', 'jms/ConnectionFactory', 'javax.jms.ConnectionFactory',
 
'jms/DefaultMessaging_CF']], '-MapResRefToEJB', [['myEAR-EJB', 'myEARFacade', 'myEAR-EJB.jar,META-INF/ejb-jar.xml', 'jms/ConnectionFactory',
 
'javax.jms.ConnectionFactory', 'jms/DefaultMessaging_CF']], '-MapResRefToEJB', [['myEAR-EJB', 'DestinationManagerFacade',
 
'myEAR-EJB.jar,META-INF/ejb-jar.xml', 'jms/ConnectionFactory', 'javax.jms.ConnectionFactory', 'jms/DefaultMessaging_CF']], '-MapResRefToEJB',
 
[['myEARAdmin-Web', '', 'myEARAdmin-Web.war,WEB-INF/web.xml', 'jms/ConnectionFactory', 'javax.jms.ConnectionFactory', 'jms/DefaultMessaging_CF']],
 
'-MapResRefToEJB', [['myEAR-EJB', 'myEARFacade', 'myEAR-EJB.jar,META-INF/ejb-jar.xml', 'mail/myEmailSession', 'javax.mail.Session', 'mail/General']],
 
'-MapResRefToEJB', [['myEAR-EJB', 'myEARListener', 'myEAR-EJB.jar,META-INF/ejb-jar.xml', 'jdbc/myEARDataSource', 'javax.sql.DataSource', 'jdbc/myEARDB']],
 
'-MapRolesToUsers', [['SUPERUSER', 'No', 'Yes', '', '']], '-nopreCompileJSPs', '-distributeApp', '-nouseMetaDataFromBinary', '-nodeployejb']

=================End App Options=============

WASX7017E: Exception received while running file "deployAppScript.py"; exception information: com.ibm.ws.scripting.ScriptingException: WASX7111E: Cannot

find a match for supplied option: "[myEAR-EJB, myEARListener, myEAR-EJB.jar,META-INF/ejb-jar.xml, jdbc/myEARDataSource, javax.sql.DataSource,


jdbc/myEARDB]" for task "MapResRefToEJB"

The statements I have an issue are the ones where I am trying to map the Resource References to Data Sources. For eg:



Code:
*
 -MapResRefToEJB', [['myEAR-EJB', 'myEARListener', 'myEAR-EJB.jar,META-INF/ejb-jar.xml', 'jdbc/myEARDataSource', 'javax.sql.DataSource', 'jdbc/myEARDB']],
 
*



I have googled all links available on the Web, but could not find one that would work for me.
I appreciate if anyone could give me some leads...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Process Server (WID/WPS/WAS+) » Error using MapResRefToEJB in Jython script
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.