I'm running Websphere 184.108.40.206 on Redhat Linux 5.1. The example below is from a standalone version not ND.
I'm trying to get an automated installed working for our ear file deployment using jython but I cannot get past the MapResRefToEJB option.
Here is the taskinfo information for the ear with MapResRefToEJB
The current contents of the task after running default bindings are:
Module: COMP Application
Resource Reference: jdbc/secref
Resource type: javax.sql.DataSource
Target Resource JNDI Name: jdbc/secref
Login configuration name: null
Results in :
WASX7015E: Exception running command: "AdminApp.install('/home/user/app_6.4.17-C2-27.0.13.ear', ['-MapResRefToEJB',["COMP Application","comp.war,WEB-INF/web.xml","jdbc/appref", "javax.sql.DataSource","jdbc/db2foapp"]])"; exception information:
java.lang.ClassCastException: java.lang.ClassCastException: java.lang.String incompatible with java.util.List
Does anyone know the correct syntax for this, the example on the IBM website was not much use and it doesnt use javax.sql.datasource.
I only found a couple of examples via google using sql.datasource but ended up more confused.
I also get the cast exception if I only include a single option for -MapResRefToEJB.
I'm a complete begineer with jython and only have a little java (it's not my app, I'm just a linux admin) so any pointers will be appreciated.
I didnt include the secref section in this one because I was trying to simplify it as much as possible but I have tried it and got the same error.