【问题标题】:Using WLST script how to create DbAdapter EIS Connection Factory (remotely)使用 WLST 脚本如何创建 DbAdapter EIS 连接工厂(远程)
【发布时间】:2013-09-19 14:13:16
【问题描述】:

我正在尝试使用 WLST 脚本在管理服务器中创建 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?

【问题讨论】:

    标签: jython soa weblogic11g business-process-management wlst


    【解决方案1】:

    苏万卡,

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

    【讨论】:

    • 不..我已经检查过了。技术上是否可以从远程将 DbAdapter.rar 加载到系统内存中?
    • 可以通过AdminServer添加DbAdapter。希望您修复它...请分享最终结果,以便其他人受益
    • 对不起,我无法修复它。
    【解决方案2】:

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

    【讨论】:

    • yes !loadApplication() 不支持将应用程序远程加载到内存中。
    • 那么你怎么能从远程 wlst 脚本创建一个 DbAdapter 连接工厂?
    • @Robert3452 不可能
    • 感谢您确认这是不可能的。它让我想知道如何设置 CI 服务器来远程设置我的 DbAdapter 连接工厂。我想我可以建立一个到管理服务器的 ssh 连接,复制所有 python 脚本,然后从那里运行 WLST,但这看起来很复杂。我认为这就是 WLST 远程连接的用途 :(
    猜你喜欢
    • 2021-09-23
    • 1970-01-01
    • 2011-12-08
    • 1970-01-01
    • 1970-01-01
    • 2019-01-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多