0

I am trying to create a datasource using wlst. I am using the jython script and created a file named createDataSource.py. when i try to run this file from ant script i am getting the below error.

[wlst] Creating JDBCSystemResource with name MyDataSource
    [wlst] Traceback (innermost last):
  [wlst]   File "<iostream>", line 528, in create
    [wlst]  at weblogic.management.scripting.EditHandler.create(EditHandler.java:531)
    [wlst]  at     weblogic.management.scripting.WLScriptContext.create(WLScriptContext.java:332)
    [wlst]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [wlst]  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [wlst]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [wlst]  at java.lang.reflect.Method.invoke(Unknown Source)
    [wlst] java.lang.ClassCastException: java.lang.ClassCastException:   java.lang.reflect.InvocationTargetException cannot be cast to     weblogic.management.scripting.ScriptException
rbhawsar
  • 805
  • 7
  • 25
  • 1
    Try executing the script directly using wlst.sh (ex: /common/bin/wlst.sh ) and the issue can be sorted out to see if its your py script issue or the ant script issue. – Mani Oct 01 '12 at 09:20
  • it's not running, looks like something is wrong with my input values. – rbhawsar Oct 01 '12 at 09:22
  • its done, my password was wrong. thanks for the help. – rbhawsar Oct 01 '12 at 09:38
  • Great! Could you close the question or you can answer it yourself and close it. – Mani Oct 01 '12 at 09:43

1 Answers1

1

thanks for the useful comments from @Mani. it was my mistake i have provided the wrong password.

rbhawsar
  • 805
  • 7
  • 25