WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Application deployment wsadmin script is not working in WAS6 (MapResRefToEJB)

  • 1.  Application deployment wsadmin script is not working in WAS6 (MapResRefToEJB)

    Posted Fri August 01, 2014 10:32 AM
    Hi Guys,

    I am trying to install a application using wsadmin script wherein I am providing following MapResRefToEJB parameter to the AdminApp.install command-

    -MapResRefToEJB',[['Disable','*','DisableCRI.war,WEB-INF/web.xml','cidDatasource','jdbc/cidDatasourceCRI','null','']]

    I dont have EJB jar in my EAR. Only a single WAR file is present.

    When I run below taskInfo command, I get output as follows -

    AdminApp.taskInfo("/DisableCRI.war","MapResRefToEJB");

    '\nMapResRefToEJB: Mapping resource references to resources\n\nEach resource reference that is defined in your application must be mapped to a resource.\n\nWASX7348I: Each element of the MapResRefToEJB task consists of the following 8 fields: "Module", "EJB", "URI", "Reference binding", "Resource type", "JNDI name", "Login Configuration Name", "Properties", \nOf these fields, the following are required and used as keys to locate the rows in the task: "Module", "EJB", "URI", "Reference binding", "Resource type". \nand the following may be assigned new values: "JNDI name" \n\nThe current contents of the task after running default bindings are:\nModule: Disable\nEJB: \nURI: DisableCRI.war,WEB-INF/web.xml\nReference binding: cidDatasource\nResource type: javax.sql.DataSource\nJNDI name: cidDatasource\nLogin Configuration Name: null\nProperties: \n\n'


    But everytime I run the script, I am getting below error -

    WASX7017E: Exception received while running file "was_deploy.py"; exception information: com.ibm.ws.scripting.ScriptingException: WASX7111E: Cannot find a match for supplied option: "[Disable, *, DisableCRI.war,WEB-INF/web.xml, cidDatasource, jdbc/cidDatasourceCRI, null, ]" for task "MapResRefToEJB"

    Can anybody help me out to get out of this error ? Its a bit urgent. Thanks!


  • 2.  Application deployment wsadmin script is not working in WAS6 (MapResRefToEJB)

    Posted Mon August 04, 2014 10:27 AM
    try this:

    -MapResRefToEJB[[DisableCRI.war "" DisableCRI.war,WEB-INF/web.xml,cidDatasource javax.sql.DataSource jdbc/cidDatasourceCRI "" "" ""]]


  • 3.  Application deployment wsadmin script is not working in WAS6 (MapResRefToEJB)

    Posted Tue August 05, 2014 10:33 AM
    Thanks Ryman. Below line worked -

    -MapResRefToEJB',[['Disable',"",'DisableCRI.war,WEB-INF/web.xml','cidDatasource','javax.sql.DataSource','jdbc/cidDatasource',"",""]]