• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

wsadmin Install problems with MapResRefToEJB - jython

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm running Websphere 6.1.0.27 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
EJB:
URI: comp.war,WEB-INF/web.xml
Resource Reference: jdbc/secref
Resource type: javax.sql.DataSource
Target Resource JNDI Name: jdbc/secref
Login configuration name: null
Properties:

Module: COMP Application
EJB:
URI: comp.war,WEB-INF/web.xml
Resource Reference: jdbc/appref
Resource type: javax.sql.DataSource
Target Resource JNDI Name: jdbc/appref
Login configuration name: null
Properties:

I've tried various combos to get AdminApp.install to work but I always get an error:
It's been weeks now and I'm no further along.

example:

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"]])

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.

Thanks in advance.

Jlyons
reply
    Bookmark Topic Watch Topic
  • New Topic