使用WLST脚本如何创建DbAdapter EIS连接工厂(远程)

时间:2013-09-19 14:13:17

标签: jython soa weblogic11g bpm wlst

我正在尝试使用WLST sript在管理服务器中创建Create DbAdapter。

def createDbAdapter():
    connect('weblogic', 'welcome1','t3://asdf-pdm:7001')
    edit()

    startEdit()
    planPath = get('/AppDeployments/DbAdapter/PlanPath') 
       #D:\Oracle\Middleware\home_ps2\Oracle_SOA1\soa\connectors\Plan.xml
    appPath = get('/AppDeployments/DbAdapter/SourcePath') 
       # D:/Oracle/Middleware/home_ps2/Oracle_SOA1/soa/connectors/DbAdapter.rar

    wpPlan=loadApplication(appPath, planPath) # got exception here
        ...
        ...
        ...

当我尝试使用 Plan.xml 加载内存 DbAdapter.rar 时,会抛出以下错误

wls:/base_domain/serverConfig> loadApplication(appPath, planPath)
Loading application from D:/Oracle/Middleware/home_ps2/Oracle_SOA1/soa/connectors/DbAdapter.rar ...
Plan for your application will be written to D:\Oracle\Middleware\home_ps2\Oracle_SOA1\soa\connectors\Plan.xml
Traceback (innermost last):
  File "<console>", line 1, in ?
  File "<iostream>", line 290, in loadApplication
Use dumpStack() to view the full stacktrace
        at weblogic.management.scripting.ExceptionHandler.handleException(ExceptionHandler.java:59)
        at weblogic.management.scripting.WLSTUtils.throwWLSTException(WLSTUtils.java:181)
        at weblogic.management.scripting.JSR88DeployHandler.loadApplication(JSR88DeployHandler.java:196)
        at weblogic.management.scripting.WLScriptContext.loadApplication(WLScriptContext.java:787)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)

weblogic.management.scripting.ScriptException: weblogic.management.scripting.ScriptException: Error occured while performing loadApplication : Could not read confi
guration. : Exception in AppMerge flows' progression

基本上它会尝试从运行它的文件系统加载这些文件,而不是它连接的位置。 当我从服务器控制台(本地)做同样的事情时,一切正常。

所以,此时我想知道,是否可以远程更新DbAdapter?

2 个答案:

答案 0 :(得分:1)

Suvankar,

使用'\'而不是'/'的Plan.xml可能存在路径问题。请检查并恢复。

答案 1 :(得分:1)

我也面临同样的问题,看起来像loadApplication()不支持将应用程序远程加载到内存中。奇怪的是,在文档的任何地方都没有提到它