Forum Stats

  • 3,723,812 Users
  • 2,244,626 Discussions
  • 7,850,717 Comments

Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

如何将weblogic实例设置到windows service中

673652
673652 Member Posts: 23
edited December 2008 in 中间件
请高手指点,我要配置server实例在windows service中。我这有bea的网站参考,http://e-docs.bea.com/wls/docs81/adminguide/winservice.html。我的目的主要是想随着windows的启停weblogic也会随着启停。启停weblogic需要有用户名和密码才可以。
用户名密码更改、日志重定向、dump信息重定向等实际管理操作的内容、步骤也写进去。
高手请帮小弟

帖子经 user10434435编辑过

Answers

  • 656992
    656992 Member Posts: 34
    在你的域目录下有installService.cmd这么一个文件,打开这个文件根据你的实际情况更改以下参数:

    SERVER_NAME
    DOMAIN_NAME
    WLS_USER
    WLS_PW
    然后保存运行这个文件就可以了
  • 673652
    673652 Member Posts: 23
    我也是这样做的,我也加了日志,延迟启动,我验证service是安装好了,可我启动weblogic——windows service启动报错。***************************************************************************
    The WebLogic Server did not start up properly.
    Exception raised: 'weblogic.management.configuration.ConfigurationException: [Management:141137]Managed Server was attempting to boot in Managed Server Independence mode, but was unable to complete the boot process as the Managed Server was unable to locate the cached configuration file: d:\bea\user_projects\domains\abcddomain\.\msi-config.xml'
    Reason: weblogic.management.configuration.ConfigurationException: [Management:141137]Managed Server was attempting to boot in Managed Server Independence mode, but was unable to complete the boot process as the Managed Server was unable to locate the cached configuration file: d:\bea\user_projects\domains\abcddomain\.\msi-config.xml
    ***************************************************************************
  • 656992
    656992 Member Posts: 34
    你加的被管服务器作为windows服务,应该在脚本里把url加上
  • 673652
    673652 Member Posts: 23
    edited December 2008
    url我配置了,set ADMIN_URL=http://localhost:7001
    manager server是起来了,可我的admin server没有起来。
    =====================================================
    这是我的配置
    echo off
    SETLOCAL

    set DOMAIN_NAME=abcddomain
    set USERDOMAIN_HOME=d:\bea\user_projects\domains\abcddomain
    set SERVER_NAME=abcserver
    set PRODUCTION_MODE=true
    set ADMIN_URL=http://10.200.24.163:7001
    set MEM_ARGS=-Xms40m -Xmx250m

    set JAVA_OPTIONS=-Dweblogic.Stdout="d:\bea\user_projects\domains\abcddomain\stdout.txt" -

    Dweblogic.Stderr="d:\bea\user_projects\domains\abcddomain\stderr.txt"

    call "d:\bea\weblogic81\server\bin\installSvc.cmd"

    ENDLOCAL

    ===========================================
    现在出现的错误是:
    <2008-12-19 上午09时09分59秒 CST> <Warning> <Management> <BEA-141141> <Failed to connect to an admin server running at http://10.200.24.163:7001. The error message returned is null.
    java.net.SocketException: Socket Closed
    at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:177)
    at java.net.Socket.setTcpNoDelay(Socket.java:771)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:306)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:355)
    at weblogic.net.http.HttpClient.<init>(HttpClient.java:139)
    at weblogic.net.http.HttpClient.New(HttpClient.java:212)
    at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:140)
    at weblogic.management.Admin.checkAdminServerIsRunning(Admin.java:1669)
    at weblogic.management.Admin.isAdminServerRunning(Admin.java:1741)
    at weblogic.management.Admin.createInstance(Admin.java:1506)
    at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:769)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:669)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:343)
    at weblogic.Server.main(Server.java:32)

    ===================================================


    谢谢

    帖子经 user10434435编辑过
  • 656992
    656992 Member Posts: 34
    从你的报错信息看,你没有启动管理服务server,启动weblogic的顺序是先启动管理服务server当管理服务server是running状态时被管理的服务server才能启动
    656992
  • 673652
    673652 Member Posts: 23
    管理服务server和配置被管理的服务server在windows serviec上,用ADMIN_URL就可以连接它们吗?不需要配置别的吗?
    是否还要配置个依赖属性?
  • 656992
    656992 Member Posts: 34
    不需要,只要保证在启动被管理server的时候管理server是running状态就行了
  • 673652
    673652 Member Posts: 23
    在配置managed server之前先把Admin server配置好了。managed server基于Admin server起来的。
    managed server配置比Admin server多加个ADMIN_URL变量即可。
This discussion has been closed.