1

我正在尝试使用 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?

4

2 回答 2

1

I too have faced the same issue looks like loadApplication() doesn't support remote loading of the application into the memory . Strangely it's not mentioned anywhere in the doc

于 2013-12-30T09:05:47.920 回答
1

苏万卡尔,

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

于 2013-09-20T15:41:36.243 回答