[WLS]WebLogic Server Window Service에 등록하는 방법


    ※ 싱글 서버 등록 순서(AdminServer만 운영시)
    1. svc_admin.cmd 생성 2. svc_admin.cmd 실행
    ※ 멀티 서버 등록 순서(ManagedServer와 같이 운영시)
    1. svc_admin.cmd 생성 2. install_Svc_admin.cmd 수정 3. svc_admin.cmd 수정 4. svc_admin.cmd 실행
    5. svc_managed.cmd 생성 6. install_Svc_managed.cmd 수정 7. svc_admin.cmd 수정 8. svc_managed_cmd 실행
    9. beasvc -debug로 정상적으로 생성되었는지 확인 10. 윈도우 재부팅 11. 로그파일 확인 하여 정상적으로 서버가 작동중인지 확인

     



    AdminServer 윈도우 서비스에 등록

    1. DOMAIN_HOME 밑에 Text File을 하나 만든다.
    2. Text File을 오픈한뒤 아래 내용을 추가 한뒤 서버정보에 맞는 내용으로 수정되 파일 이름을 지정해 주고 실행파일(.cmd)로 만든다.

     

     svc_admin.cmd
      SETLOCAL
     set DOMAIN_NAME=NewDomain
     set USERDOMAIN_HOME=C:\bea\user_projects\domains\NewDomain
     set SERVER_NAME=AdminServer
     set WLS_USER=weblogic
     set WLS_PW=weblogic
     set JAVA_OPTIONS= -Dweblogic.Stdout="C:\bea\user_projects\domains\NewDomain\logs\admin-stdout.txt" -Dweblogic.Stderr="C:\bea\user_projects\domains\NewDomain\logs\admin-stderr.txt"
     call "C:\bea\wlserver_10.3\server\bin\installSvc.cmd"
     ENDLOCAL

    3. svc_admin.cmd를 실행 하면 서비스에 등록이 된다.
    4. Windows Service에서 등록된 서버 명을 찾아서 시작 시키다.
    5. Stdout Log를 확인하여 정상적으로 올라 갔는지 확인 한다.


    ManagedServer Script 생성

    1. DOMAIN_HOME 밑에 Text File을 하나 만든다.
    2. Text File을 오픈한뒤 아래 내용을 추가 한뒤 서버정보에 맞는 내용으로 수정되 파일 이름을 지정해 주고 실행파일(.cmd)로 만든다.

     svc_managed.cmd
     SETLOCAL
     set DOMAIN_NAME=NewDomain
     set USERDOMAIN_HOME=C:\bea\user_projects\domains\NewDomain
     set SERVER_NAME=managed
     set WLS_USER=weblogic
     set WLS_PW=weblogic
     set ADMIN_URL=t3://localhost:7001
     set JAVA_OPTIONS= -Dweblogic.Stdout="C:\bea\user_projects\domains\NewDomain\logs\managed-stdout.txt" -Dweblogic.Stderr="C:\bea\user_projects\domains\NewDomain\logs\managed-stderr.txt"
     call "C:\bea\user_projects\domains\NewDomain\installSvc_managed.cmd"
     ENDLOCAL



    AdminServer 시작시 ManagedServer 같이 시작

    1. 윈도우 서비스 등록 파일인 installSvc.cmd 복사

     C:\bea\wlserver_10.3\server\bin\installSvc.cmd을 %DOMAIN_HOME% 으로 복사

    2. installSvc.cmd 수정

     -delay:delay_milliseconds 
      서버가 시작후 서버 상태가 STARTED로 바꾸기 전에 wait하는 시간으로
      AdminServer가 start하는데 필요한 시간을 설정하면 된다. (여기서는 30초로 설정 하였다)
      "%WL_HOME%\server\bin\beasvc" -install -svcname:"%DOMAIN_NAME%_%SERVER_NAME%"   -delay:30000 -javahome:"%JAVA_HOME%" -execdir:"%USERDOMAIN_HOME%" -maxconnectretries:"%MAX_CONNECT_RETRIES%" -host:"%HOST%" -port:"%PORT%" -extrapath:"%EXTRAPATH%" -password:"%WLS_PW%" -cmdline:%CMDLINE% -log:"C:\bea\user_projects\domains\NewDomain\logs\myWLSserver-stdout.txt"

    3. installSvc.cmd 를 다른 이름으로 저장 

     수정한 installSvc.cmd 파일을 installSvc_admin.cmd로 다른 이름 저장 한다.

    4. svc_admin.cmd 파일 수정

    윈도우 서비스 등록하는 Script를 사용자가 수정한 installSvc_admin.cmd로 사용하겠다
    call "C:\bea\wlserver_10.3\server\bin\installSvc.cmd" 을
    call "C:\bea\user_projects\domains\NewDomain\installSvc_admin.cmd" 로 변경 한다.
     

    5. svc_admin.cmd 실행

    svc_admin.cmd를 실행하면 AdminServer가 윈도우 서비스에 등록 된다.

     C:\bea\user_projects\domains\NewDomain>SETLOCAL

    C:\bea\user_projects\domains\NewDomain>set DOMAIN_NAME=NewDomain

    C:\bea\user_projects\domains\NewDomain>set USERDOMAIN_HOME=C:\bea\user_projects\domains\NewDomain

    C:\bea\user_projects\domains\NewDomain>set SERVER_NAME=AdminServer

    C:\bea\user_projects\domains\NewDomain>set WLS_USER=weblogic

    C:\bea\user_projects\domains\NewDomain>set WLS_PW=weblogic

    C:\bea\user_projects\domains\NewDomain>set JAVA_OPTIONS= -Dweblogic.Stdout="C:\bea\user_projects\domains\NewDomain\logs\admin-stdout.txt" -Dwebl
    tderr="C:\bea\user_projects\domains\NewDomain\logs\admin-stderr.txt"

    C:\bea\user_projects\domains\NewDomain>call "C:\bea\user_projects\domains\NewDomain\installSvc_admin.cmd"

    C:\bea\user_projects\domains\NewDomain>set CLASSPATH=C:\bea\patch_wlw1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patc
    030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;
    \patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\JROCKI~1\lib\tools.jar;C:\bea\WLSERV~1.3\server\lib\weblogic_sp.
    \bea\WLSERV~1.3\server\lib\weblogic.jar;C:\bea\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\bea\WLSERV~1.3\server\lib\webservices.ja
    ea\modules\ORGAPA~1.5/lib/ant-all.jar;C:\bea\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Program Files\Altova\xmlspy\XMLSpyInterface.jar
    ***************************************************
    *  To start WebLogic Server, use the password     *
    *  assigned to the system user.  The system       *
    *  username and password must also be used to     *
    *  access the WebLogic Server console from a web  *
    *  browser.                                       *
    ***************************************************

    C:\bea\user_projects\domains\NewDomain>rem *** Set Command Line for service to execute within created JVM

    C:\bea\user_projects\domains\NewDomain>set CMDLINE="-jrockit -Xms128m -Xmx256m  -Dweblogic.Stdout="C:\bea\user_projects\domains\NewDomain\logs\a
    tdout.txt" -Dweblogic.Stderr="C:\bea\user_projects\domains\NewDomain\logs\admin-stderr.txt"  -Xverify:none -classpath \"C:\bea\patch_wlw1030\pro
    default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_j
    1\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\b
    CKI~1\lib\tools.jar;C:\bea\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\bea\WLSERV~1.3\server\lib\weblogic.jar;C:\bea\modules\features\weblogic.serv
    ules_10.3.0.0.jar;C:\bea\WLSERV~1.3\server\lib\webservices.jar;C:\bea\modules\ORGAPA~1.5/lib/ant-all.jar;C:\bea\modules\NETSFA~1.0_1/lib/ant-con
    ar;C:\Program Files\Altova\xmlspy\XMLSpyInterface.jar\" -Dweblogic.Name=AdminServer -Dweblogic.management.username=weblogic -Dweblogic.Productio
    nabled= -Djava.security.policy=\"C:\bea\WLSERV~1.3\server\lib\weblogic.policy\" weblogic.Server"

    C:\bea\user_projects\domains\NewDomain>rem *** Set up extrapath for win32 and win64 platform separately

    C:\bea\user_projects\domains\NewDomain>if "true" == "true" set EXTRAPATH=C:\bea\WLSERV~1.3\server\native\win\32;C:\bea\WLSERV~1.3\server\bin;C:\
    OCKI~1\jre\bin;C:\bea\JROCKI~1\bin;C:\bea\WLSERV~1.3\server\native\win\32\oci920_8

    C:\bea\user_projects\domains\NewDomain>if "false" == "true" set EXTRAPATH=C:\bea\WLSERV~1.3\server\native\win\64\;C:\bea\WLSERV~1.3\server\bin;C
    JROCKI~1\jre\bin;C:\bea\JROCKI~1\bin;C:\bea\WLSERV~1.3\server\native\win\64\oci920_8

    C:\bea\user_projects\domains\NewDomain>if "false" == "true" set EXTRAPATH=C:\bea\WLSERV~1.3\server\native\win\x64\;C:\bea\WLSERV~1.3\server\bin;
    \JROCKI~1\jre\bin;C:\bea\JROCKI~1\bin;C:\bea\WLSERV~1.3\server\native\win\x64\oci920_8

    C:\bea\user_projects\domains\NewDomain>rem *** Install the service

    C:\bea\user_projects\domains\NewDomain>"C:\bea\WLSERV~1.3\server\bin\beasvc" -install -svcname:"NewDomain_AdminServer" -delay:30000 -javahome:"C
    JROCKI~1" -execdir:"C:\bea\user_projects\domains\NewDomain" -maxconnectretries:"" -host:"" -port:"" -extrapath:"C:\bea\WLSERV~1.3\server\native\
    ;C:\bea\WLSERV~1.3\server\bin;C:\bea\JROCKI~1\jre\bin;C:\bea\JROCKI~1\bin;C:\bea\WLSERV~1.3\server\native\win\32\oci920_8" -password:"weblogic"
    ne:"-jrockit -Xms128m -Xmx256m  -Dweblogic.Stdout="C:\bea\user_projects\domains\NewDomain\logs\admin-stdout.txt" -Dweblogic.Stderr="C:\bea\user_
    ts\domains\NewDomain\logs\admin-stderr.txt"  -Xverify:none -classpath \"C:\bea\patch_wlw1030\profiles\default\sys_manifest_classpath\weblogic_pa
    r;C:\bea\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_jdev1111\profiles\default\sys_manifest_classpath\
    ic_patch.jar;C:\bea\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\JROCKI~1\lib\tools.jar;C:\bea\WLSERV~1.3\serv
    \weblogic_sp.jar;C:\bea\WLSERV~1.3\server\lib\weblogic.jar;C:\bea\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\bea\WLSERV~1.3\server
    ebservices.jar;C:\bea\modules\ORGAPA~1.5/lib/ant-all.jar;C:\bea\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Program Files\Altova\xmlspy\XMLSpyIn
    e.jar\" -Dweblogic.Name=AdminServer -Dweblogic.management.username=weblogic -Dweblogic.ProductionModeEnabled= -Djava.security.policy=\"C:\bea\WL
    .3\server\lib\weblogic.policy\" weblogic.Server" -log:"C:\bea\user_projects\domains\NewDomain\logs\myWLSserver-stdout.txt"
    NewDomain_AdminServer installed.

    C:\bea\user_projects\domains\NewDomain>ENDLOCAL

    C:\bea\user_projects\domains\NewDomain>ENDLOCAL

    정상적으로 등록된 화면 이다

    6. installSvc.cmd 수정

     -depend:Administration-Server-service-name 추가
       ManagedServer는 AdminServer의 Configuration정보를 받아와야 하므로
       AdminServer가 구동되는 서비스이름을 managedServer에 설정하면 된다.
      "%WL_HOME%\server\bin\beasvc" -install -svcname:"%DOMAIN_NAME%_%SERVER_NAME%"   -depend:"NewDomain_AdminServer" -javahome:"%JAVA_HOME%" -execdir:"%    USERDOMAIN_HOME%" -maxconnectretries:"%MAX_CONNECT_RETRIES%" -host:"%HOST%" -port:"%PORT%" -extrapath:"%EXTRAPATH%" -password:"%WLS_PW%" -cmdline:%CMDLINE% -log:"C:\bea\user_projects\domains\NewDomain\logs\myWLSmanaged-stdout.txt"

    7. installSvc.com 를 다른 이름으로 저장

     수정한 installSvc.cmd 파일을 installSvc_managed.cmd로 다른 이름 저장 한다.

    8. svc_managed.cmd 파일 수정

    윈도우 서비스 등록하는 Script를 사용자가 수정한 installSvc_managed.cmd로 사용하겠다
     call "C:\bea\user_projects\domains\NewDomain\installSvc_managed.cmd" 로 변경한다.

    9. svc_managed.cmd 실행

    svc_managed.cmd를 실행하면 ManagedServer가 윈도우 서비스에 등록 된다.

     C:\bea\user_projects\domains\NewDomain>svc_managed.cmd

    C:\bea\user_projects\domains\NewDomain>SETLOCAL

    C:\bea\user_projects\domains\NewDomain>set DOMAIN_NAME=NewDomain

    C:\bea\user_projects\domains\NewDomain>set USERDOMAIN_HOME=C:\bea\user_projects\domains\NewDomain

    C:\bea\user_projects\domains\NewDomain>set SERVER_NAME=managed

    C:\bea\user_projects\domains\NewDomain>set WLS_USER=weblogic

    C:\bea\user_projects\domains\NewDomain>set WLS_PW=weblogic

    C:\bea\user_projects\domains\NewDomain>set ADMIN_URL=t3://localhost:7001

    C:\bea\user_projects\domains\NewDomain>set JAVA_OPTIONS= -Dweblogic.Stdout="C:\bea\user_projects\domains\NewDomain\logs\managed-stdout.txt" -Dweblogic
    .Stderr="C:\bea\user_projects\domains\NewDomain\logs\managed-stderr.txt"

    C:\bea\user_projects\domains\NewDomain>call "C:\bea\user_projects\domains\NewDomain\installSvc_managed.cmd"

    C:\bea\user_projects\domains\NewDomain>set CLASSPATH=C:\bea\patch_wlw1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_wls1
    030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea
    \patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\JROCKI~1\lib\tools.jar;C:\bea\WLSERV~1.3\server\lib\weblogic_sp.jar;C:
    \bea\WLSERV~1.3\server\lib\weblogic.jar;C:\bea\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\bea\WLSERV~1.3\server\lib\webservices.jar;C:\b
    ea\modules\ORGAPA~1.5/lib/ant-all.jar;C:\bea\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Program Files\Altova\xmlspy\XMLSpyInterface.jar
    ***************************************************
    *  To start WebLogic Server, use the password     *
    *  assigned to the system user.  The system       *
    *  username and password must also be used to     *
    *  access the WebLogic Server console from a web  *
    *  browser.                                       *
    ***************************************************

    C:\bea\user_projects\domains\NewDomain>rem *** Set Command Line for service to execute within created JVM

    C:\bea\user_projects\domains\NewDomain>set CMDLINE="-jrockit -Xms128m -Xmx256m  -Dweblogic.Stdout="C:\bea\user_projects\domains\NewDomain\logs\managed
    -stdout.txt" -Dweblogic.Stderr="C:\bea\user_projects\domains\NewDomain\logs\managed-stderr.txt"  -Xverify:none -classpath \"C:\bea\patch_wlw1030\profi
    les\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_jde
    v1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea
    \JROCKI~1\lib\tools.jar;C:\bea\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\bea\WLSERV~1.3\server\lib\weblogic.jar;C:\bea\modules\features\weblogic.server
    .modules_10.3.0.0.jar;C:\bea\WLSERV~1.3\server\lib\webservices.jar;C:\bea\modules\ORGAPA~1.5/lib/ant-all.jar;C:\bea\modules\NETSFA~1.0_1/lib/ant-contr
    ib.jar;C:\Program Files\Altova\xmlspy\XMLSpyInterface.jar\" -Dweblogic.Name=managed -Dweblogic.management.username=weblogic -Dweblogic.management.serv
    er=\"t3://localhost:7001\" -Dweblogic.ProductionModeEnabled= -Djava.security.policy=\"C:\bea\WLSERV~1.3\server\lib\weblogic.policy\" weblogic.Server"


    C:\bea\user_projects\domains\NewDomain>goto finish

    C:\bea\user_projects\domains\NewDomain>rem *** Set up extrapath for win32 and win64 platform separately

    C:\bea\user_projects\domains\NewDomain>if "true" == "true" set EXTRAPATH=C:\bea\WLSERV~1.3\server\native\win\32;C:\bea\WLSERV~1.3\server\bin;C:\bea\JR
    OCKI~1\jre\bin;C:\bea\JROCKI~1\bin;C:\bea\WLSERV~1.3\server\native\win\32\oci920_8

    C:\bea\user_projects\domains\NewDomain>if "false" == "true" set EXTRAPATH=C:\bea\WLSERV~1.3\server\native\win\64\;C:\bea\WLSERV~1.3\server\bin;C:\bea\
    JROCKI~1\jre\bin;C:\bea\JROCKI~1\bin;C:\bea\WLSERV~1.3\server\native\win\64\oci920_8

    C:\bea\user_projects\domains\NewDomain>if "false" == "true" set EXTRAPATH=C:\bea\WLSERV~1.3\server\native\win\x64\;C:\bea\WLSERV~1.3\server\bin;C:\bea
    \JROCKI~1\jre\bin;C:\bea\JROCKI~1\bin;C:\bea\WLSERV~1.3\server\native\win\x64\oci920_8

    C:\bea\user_projects\domains\NewDomain>rem *** Install the service

    C:\bea\user_projects\domains\NewDomain>"C:\bea\WLSERV~1.3\server\bin\beasvc" -install -svcname:"NewDomain_managed" -depend:"NewDomain_AdminServer" -ja
    vahome:"C:\bea\JROCKI~1" -execdir:"C:\bea\user_projects\domains\NewDomain" -maxconnectretries:"" -host:"" -port:"" -extrapath:"C:\bea\WLSERV~1.3\serve
    r\native\win\32;C:\bea\WLSERV~1.3\server\bin;C:\bea\JROCKI~1\jre\bin;C:\bea\JROCKI~1\bin;C:\bea\WLSERV~1.3\server\native\win\32\oci920_8" -password:"w
    eblogic" -cmdline:"-jrockit -Xms128m -Xmx256m  -Dweblogic.Stdout="C:\bea\user_projects\domains\NewDomain\logs\managed-stdout.txt" -Dweblogic.Stderr="C
    :\bea\user_projects\domains\NewDomain\logs\managed-stderr.txt"  -Xverify:none -classpath \"C:\bea\patch_wlw1030\profiles\default\sys_manifest_classpat
    h\weblogic_patch.jar;C:\bea\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_jdev1111\profiles\default\sys_manife
    st_classpath\weblogic_patch.jar;C:\bea\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\JROCKI~1\lib\tools.jar;C:\bea\WL
    SERV~1.3\server\lib\weblogic_sp.jar;C:\bea\WLSERV~1.3\server\lib\weblogic.jar;C:\bea\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\bea\WLSE
    RV~1.3\server\lib\webservices.jar;C:\bea\modules\ORGAPA~1.5/lib/ant-all.jar;C:\bea\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Program Files\Altova\xm
    lspy\XMLSpyInterface.jar\" -Dweblogic.Name=managed -Dweblogic.management.username=weblogic -Dweblogic.management.server=\"t3://localhost:7001\" -Dwebl
    ogic.ProductionModeEnabled= -Djava.security.policy=\"C:\bea\WLSERV~1.3\server\lib\weblogic.policy\" weblogic.Server" -log:"C:\bea\user_projects\domain
    s\NewDomain\logs\myWLSmanaged-stdout.txt"
    NewDomain_managed installed.

    C:\bea\user_projects\domains\NewDomain>ENDLOCAL

    C:\bea\user_projects\domains\NewDomain>ENDLOCAL


    10. 정상적으로 생성 되었는지 확인

     C:\bea\wlserver_10.3\server\bin>beasvc -debug NewDomain_AdminServer

    Debugging service ....... NewDomain_AdminServer

    Command Line: ....... -jrockit -Xms128m -Xmx256m  -Dweblogic.Stdout=C:\bea\user_projects\domains\NewDomain\logs\admin-stdout.txt -Dweblogic.Stderr=C:\
    bea\user_projects\domains\NewDomain\logs\admin-stderr.txt  -Xverify:none -classpath "C:\bea\patch_wlw1030\profiles\default\sys_manifest_classpath\webl
    ogic_patch.jar;C:\bea\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_jdev1111\profiles\default\sys_manifest_cla
    sspath\weblogic_patch.jar;C:\bea\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\JROCKI~1\lib\tools.jar;C:\bea\WLSERV~1
    .3\server\lib\weblogic_sp.jar;C:\bea\WLSERV~1.3\server\lib\weblogic.jar;C:\bea\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\bea\WLSERV~1.3
    \server\lib\webservices.jar;C:\bea\modules\ORGAPA~1.5/lib/ant-all.jar;C:\bea\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Program Files\Altova\xmlspy\X
    MLSpyInterface.jar" -Dweblogic.Name=AdminServer -Dweblogic.management.username=weblogic -Dweblogic.ProductionModeEnabled= -Djava.security.policy="C:\b
    ea\WLSERV~1.3\server\lib\weblogic.policy" weblogic.Server

    Current Directory: ....... C:\bea\user_projects\domains\NewDomain

    Path: ....... C:\bea\WLSERV~1.3\server\native\win\32;C:\bea\WLSERV~1.3\server\bin;C:\bea\JROCKI~1\jre\bin;C:\bea\JROCKI~1\bin;C:\bea\WLSERV~1.3\server
    \native\win\32\oci920_8;C:\oracle\product\ohs\bin;C:\oracle\product\DATABASE\10.2.0\db_1\bin;C:\bea\jdk160_05\bin;C:\Program Files\PC Connectivity Sol
    ution\;C:\Oracle BPA Suite10.1.3.4\BPServer\JDK\bin;C:\Oracle BPA Suite10.1.3.4\BPServer\OLITE;C:\Program Files\Common Files\NetSarang;C:\windows\syst
    em32;C:\windows;C:\windows\System32\Wbem;C:\Program Files\ESTsoft\ALZip;;C:\Oracle BPA Suite10.1.3.4;C:\oracle\product\FMW\WLS10_3_1\Oracle_IDM1\bin;C
    :\oracle\product\WebTier\as_1\bin;C:\oracle\product\WebTier\as_1\opmn\bin;C:\oracle\product\WebTier\as_1\opmn\lib;C:\oracle\product\WebTier\as_1\perl\
    bin;C:\Program Files\ESTsoft\ALZip;C:\Program Files\IDM Computer Solutions\UltraEdit\;C:\Program Files\UniUSB\Common;C:\Program Files\ESTsoft\ALSee;C:
    \Program Files\ESTsoft\ALSee;C:\Program Files\ESTsoft\ALSee

    Java Home: ....... C:\bea\JROCKI~1

    Delay: ....... 30000

    sArgs.args[j] before merging tokens = C:\bea\patch_wlw1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_wls1030\profiles\de
    fault\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_cie660\p
    rofiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\JROCKI~1\lib\tools.jar;C:\bea\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\bea\WLSERV~1.3
    \server\lib\weblogic.jar;C:\bea\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\bea\WLSERV~1.3\server\lib\webservices.jar;C:\bea\modules\ORGA
    PA~1.5/lib/ant-all.jar;C:\bea\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Program
    strtToken before merging tokens = Files\Altova\xmlspy\XMLSpyInterface.jar"
    sArgs.args[j] after merging tokens = C:\bea\patch_wlw1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_wls1030\profiles\def
    ault\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_cie660\pr
    ofiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\JROCKI~1\lib\tools.jar;C:\bea\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\bea\WLSERV~1.3\
    server\lib\weblogic.jar;C:\bea\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\bea\WLSERV~1.3\server\lib\webservices.jar;C:\bea\modules\ORGAP
    A~1.5/lib/ant-all.jar;C:\bea\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Program Files\Altova\xmlspy\XMLSpyInterface.jar"
    Thread created successfully!

     C:\bea\wlserver_10.3\server\bin>beasvc -debug NewDomain_managed

    Debugging service ....... NewDomain_managed

    Command Line: ....... -jrockit -Xms128m -Xmx256m  -Dweblogic.Stdout=C:\bea\user_projects\domains\NewDomain\logs\managed-stdout.txt -Dweblogic.Std
    :\bea\user_projects\domains\NewDomain\logs\managed-stderr.txt  -Xverify:none -classpath "C:\bea\patch_wlw1030\profiles\default\sys_manifest_class
    weblogic_patch.jar;C:\bea\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_jdev1111\profiles\default\sys_man
    _classpath\weblogic_patch.jar;C:\bea\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\JROCKI~1\lib\tools.jar;C:\bea
    RV~1.3\server\lib\weblogic_sp.jar;C:\bea\WLSERV~1.3\server\lib\weblogic.jar;C:\bea\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\bea\W
    ~1.3\server\lib\webservices.jar;C:\bea\modules\ORGAPA~1.5/lib/ant-all.jar;C:\bea\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Program Files\Altova
    py\XMLSpyInterface.jar" -Dweblogic.Name=managed -Dweblogic.management.username=weblogic -Dweblogic.management.server="t3://localhost:7001" -Dwebl
    ProductionModeEnabled= -Djava.security.policy="C:\bea\WLSERV~1.3\server\lib\weblogic.policy" weblogic.Server

    Current Directory: ....... C:\bea\user_projects\domains\NewDomain

    Path: ....... C:\bea\WLSERV~1.3\server\native\win\32;C:\bea\WLSERV~1.3\server\bin;C:\bea\JROCKI~1\jre\bin;C:\bea\JROCKI~1\bin;C:\bea\WLSERV~1.3\s
    \native\win\32\oci920_8;C:\oracle\product\ohs\bin;C:\oracle\product\DATABASE\10.2.0\db_1\bin;C:\bea\jdk160_05\bin;C:\Program Files\PC Connectivit
    ution\;C:\Oracle BPA Suite10.1.3.4\BPServer\JDK\bin;C:\Oracle BPA Suite10.1.3.4\BPServer\OLITE;C:\Program Files\Common Files\NetSarang;C:\windows
    em32;C:\windows;C:\windows\System32\Wbem;C:\Program Files\ESTsoft\ALZip;;C:\Oracle BPA Suite10.1.3.4;C:\oracle\product\FMW\WLS10_3_1\Oracle_IDM1\
    :\oracle\product\WebTier\as_1\bin;C:\oracle\product\WebTier\as_1\opmn\bin;C:\oracle\product\WebTier\as_1\opmn\lib;C:\oracle\product\WebTier\as_1\
    bin;C:\Program Files\ESTsoft\ALZip;C:\Program Files\IDM Computer Solutions\UltraEdit\;C:\Program Files\UniUSB\Common;C:\Program Files\ESTsoft\ALS
    \Program Files\ESTsoft\ALSee;C:\Program Files\ESTsoft\ALSee

    Java Home: ....... C:\bea\JROCKI~1

    Delay: ....... 0

    sArgs.args[j] before merging tokens = C:\bea\patch_wlw1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_wls1030\profil
    fault\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_cie
    rofiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\JROCKI~1\lib\tools.jar;C:\bea\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\bea\WLSER
    \server\lib\weblogic.jar;C:\bea\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\bea\WLSERV~1.3\server\lib\webservices.jar;C:\bea\modules
    PA~1.5/lib/ant-all.jar;C:\bea\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Program
    strtToken before merging tokens = Files\Altova\xmlspy\XMLSpyInterface.jar"
    sArgs.args[j] after merging tokens = C:\bea\patch_wlw1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_wls1030\profile
    ault\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_cie6
    ofiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\JROCKI~1\lib\tools.jar;C:\bea\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\bea\WLSERV
    server\lib\weblogic.jar;C:\bea\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\bea\WLSERV~1.3\server\lib\webservices.jar;C:\bea\modules\
    A~1.5/lib/ant-all.jar;C:\bea\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Program Files\Altova\xmlspy\XMLSpyInterface.jar"
    Thread created successfully!



    10. 윈도우 재부팅을 하게되면 정상적으로 두개의 서버가(AdminServer, ManagedServer)동시에
    시작함을 확인 할 수 있다.



    AdminServer & managed 삭제

    1. DOMAIN_HOME 밑에 Text File을 하나 만든다.
    2. Text File을 오픈한뒤 아래 내용을 추가 한뒤 서버정보에 맞는 내용으로 수정되 파일 이름을 지정해 주고 실행파일(.cmd)로 만든다.

     rm_svc_admin.cmd
      SETLOCAL
     set DOMAIN_NAME=NewDomain
     set SERVER_NAME=AdminServer
     call "C:\bea\wlserver_10.3\server\bin\uninstallSvc.cmd"
     ENDLOCAL
     rm_svc_managed.cmd
     SETLOCAL
    set DOMAIN_NAME=NewDomain
    set SERVER_NAME=managed
    call "C:\bea\wlserver_10.3\server\bin\uninstallSvc.cmd"
    ENDLOCAL
    3. rm_svc_admin.cmd 실행 전에 서버이름이 틀리게 되면 삭제가 안되니 확인후 실행한다.

    Error msg)OpenService failed - 지정된 서비스가 설치된 서비스로는 없습니다. (0x424)

    4. rm_svc_admin.cmd, rm_svc_managed.cmd를 실행 하면 정상적으로 삭제 된다.

     C:\bea\user_projects\domains\NewDomain>rm_svc_admin.cmd

    C:\bea\user_projects\domains\NewDomain>SETLOCAL

    C:\bea\user_projects\domains\NewDomain>set DOMAIN_NAME=NewDomain

    C:\bea\user_projects\domains\NewDomain>set SERVER_NAME=AdminServer

    C:\bea\user_projects\domains\NewDomain>call "C:\bea\wlserver_10.3\server\bin\uninstallSvc.cmd"
    NewDomain_AdminServer removed.

    C:\bea\user_projects\domains\NewDomain>rm_svc_managed.cmd

    C:\bea\user_projects\domains\NewDomain>SETLOCAL

    C:\bea\user_projects\domains\NewDomain>set DOMAIN_NAME=NewDomain

    C:\bea\user_projects\domains\NewDomain>set SERVER_NAME=managed

    C:\bea\user_projects\domains\NewDomain>call "C:\bea\wlserver_10.3\server\bin\uninstallSvc.cmd"
    NewDomain_managed removed.


    5. Windows Service에서 등록된 서버가 제거 되었는지 확인 한다.

    댓글

    Designed by JB FACTORY