节点管理器通过 WLST 在 Weblogic 10.3.4 中调用 startWeblogic.cmd [英] Does Node Manager through WLST in Weblogic 10.3.4 call startWeblogic.cmd

查看:37
本文介绍了节点管理器通过 WLST 在 Weblogic 10.3.4 中调用 startWeblogic.cmd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 weblogic 10.3.4 并且有一个 WLST 脚本,它执行以下操作1. 创建域2.创建JDBC3. 启动节点管理器4. 连接到节点管理器5. 并部署我的应用

I am using weblogic 10.3.4 and have a WLST script which does the following 1. Creates a Domain 2. Create JDBC 3. Start NodeManager 4. Connect to Nodemanager 5. And Deploy my App

以下是我的脚本的相关部分

Below are the relevant sections of my script

      templatehome = domainhome + "/wlserver/common/templates/domains/wls.jar"
      readTemplate(templatehome)
      create('MyDomain', 'Domain')
      cd('/Security/MyDomain/User/weblogic')
      cmo.setName(domainuserid)
      cmo.setUserPassword(domainpwd)    
      writeDomain(domainlocation + '/'+ domainname)
      ---Some other code related to JDBC
      closeTemplate()
      ---- Updating setDomainEnv.cmd
        f = open(domainlocation+ '/' + domainname +'/bin/setDomainEnv.cmd', "a+")
f.write("set CLASSPATH=%DOMAIN_HOME%\lib\javax.el-api-2.2.4.jar;%DOMAIN_HOME%\lib\com.sun.el_2.2.0.v201105051105-com.sun.el_2.2.0.v201105051105.jar;%CLASSPATH%")
f.close()


      startNodeManager()
      nmConnect(domainuserid, domainpwd, 'localhost', '5556', 'MyDomain','D:/MyLoc/Tools/Weblogic/user_projects/domains/MyDomain')
      nmStart('AdminServer')
       connect()
      deploy('myapp','my-war-location')

请注意,我正在更新 WLST 代码中的 SetDomainEnv.cmd.

Please note that i am updating the SetDomainEnv.cmd in the WLST code itself.

当我运行这个脚本时,域被创建,节点管理器被启动并且应用程序被部署.但是服务器启动不会通过 startWEblogic.cmd 发生,并且不会调用我更新的 SetDomainEnv.cmd.所以问题是 NodeManager 是否使用 startWEBlogic.cmd 来启动服务器?如果是,那么为什么我的代码中没有发生?

When i run this script the domain gets created, the node manager gets started and the application gets deployed. But the Server start does not happen through startWEblogic.cmd and my updated SetDomainEnv.cmd is not called. So the question is does NodeManager use startWEblogic.cmd to start a Server? If yes then why is it not happening in my code?

推荐答案

检查 nodemanager.properties 中的 StartScriptEnabled 和 StartScriptName 属性(例如:wlserver_10.3/common/nodemanager/nodemanager.properties)

Check StartScriptEnabled and StartScriptName properties in nodemanager.properties (ex: wlserver_10.3/common/nodemanager/nodemanager.properties)

StartScriptEnabled 应设置为 true,StartScriptName 应设置为 startWebLogic.cmd.默认情况下,这些值已设置,如果未设置,请设置它们并重新启动 nodemanager 以使更改生效.

StartScriptEnabled should be set to true and StartScriptName should be set to startWebLogic.cmd. By default these values are set, if they are not then please set them and restart nodemanager for the changes to take effect.

如果上述修复不起作用,请使用 nodemanager.log 内容更新问题.

If the above fix doesn't work, then please update the question with the nodemanager.log content.

参考:http://docs.oracle.com/cd/E24329_01/web.1211/e21050/java_nodemgr.htm#i1068413

这篇关于节点管理器通过 WLST 在 Weblogic 10.3.4 中调用 startWeblogic.cmd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆