This discussion is archived
6 Replies Latest reply: Apr 12, 2013 2:15 AM by 997468 RSS

configuring weblogic server to start automatically

978623 Newbie
Currently Being Moderated
Hi, I have installed oracle weblogic server 11g, jdk/jre 7 and forms & reports 11g. i have successfully installed all softwares. I configured forms and reports domain and weblogic domain. I would like to have weblogic start automatically when i login in to comp/server. Right now i have to click on the start admin server for weblogic server domain button in domain folder and the stop admin server button. I also have to type in the username and password into the cmd promt when i click the start and stop admin server buttons.

How can i have the forms and reporst weblogic server start automatically?

how can i get past not having to enter in username and password each time it starts up and stops? (this is entering the username and password before you get to the weblogic console login screen)
  • 1. Re: configuring weblogic server to start automatically
    anjhawar - oracle Explorer
    Currently Being Moderated
    If Windows, then you can configure WLS instances as windows service:

    http://docs.oracle.com/cd/E23943_01/web.1111/e13708/winservice.htm

    If UNIX based, then you may need to consider write a custom cron job and initiate the server start-up sequence from the same.

    Regarding the password thing, you can create a boot.properties file for all the managed nodes and that should fix your requirement.

    http://docs.oracle.com/cd/E25054_01/fusionapps.1111/e21032/create_domain_im.htm#CFHGAAAA

    AJ
  • 2. Re: configuring weblogic server to start automatically
    978623 Newbie
    Currently Being Moderated
    i configured it as a windows service. i followed the instructions from the link you provided and when i finished i named the file "startweblogic.cmd." I put the file in the "WL_HOME\server\bin" directory which also has the installsvc.cmd file in and ran it as administrator.

    tHIS IS A COPY OF WHAT WAS DISPLAYED:


    C:\Windows\system32>echo off

    C:\Windows\system32>set CLASSPATH=C:\Oracle\MIDDLE~1\patch_wls1036\profiles\defa
    ult\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_ocp371\pr
    ofiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\PROGRA~1\Java\JDK17~
    1.0\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Or
    acle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\feat
    ures\weblogic.server.modules_10.3.6.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\l
    ib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Orac
    le\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.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:\Windows\system32>rem *** Set Command Line for service to execute within creat
    ed JVM

    C:\Windows\system32>set CMDLINE="-client -Xms32m -Xmx200m -XX:MaxPermSize=128m -
    XX:+UseSpinning -Dweblogic.management.server=http://hidden:hidden -Dweblo
    gic.Stdout="D:\TEMP\Svr_Logs\stdout.log" -Dweblogic.Stderr="D:\TEMP\Svr_Logs\std
    err.log" -Xverify:none -classpath \"C:\Oracle\MIDDLE~1\patch_wls1036\profiles\de
    fault\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_ocp371\
    profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\PROGRA~1\Java\JDK1
    7~1.0\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\
    Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\fe
    atures\weblogic.server.modules_10.3.6.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server
    \lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Or
    acle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;\" -Dweblogic.Name=hidden -Dweblogic.management.username=hidden -Dweblogic.management.server
    =\"http://hidden:hidden\" -Dweblogic.ProductionModeEnabled= -Djava.securi
    ty.policy=\"C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy\" weblogic.
    Server"

    C:\Windows\system32>goto finish

    C:\Windows\system32>rem *** Set up extrapath for win32 and win64 platform separa
    tely

    C:\Windows\system32>if "false" == "true" set EXTRAPATH=C:\Oracle\MIDDLE~1\WLSERV
    ~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\PROGRA~1\J
    ava\JDK17~1.0\jre\bin;C:\PROGRA~1\Java\JDK17~1.0\bin;C:\Oracle\MIDDLE~1\WLSERV~1
    .3\server\native\win\32\oci920_8

    C:\Windows\system32>if "false" == "true" set EXTRAPATH=C:\Oracle\MIDDLE~1\WLSERV
    ~1.3\server\native\win\64\;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\PROGRA~1\
    Java\JDK17~1.0\jre\bin;C:\PROGRA~1\Java\JDK17~1.0\bin;C:\Oracle\MIDDLE~1\WLSERV~
    1.3\server\native\win\64\oci920_8

    C:\Windows\system32>if "true" == "true" set EXTRAPATH=C:\Oracle\MIDDLE~1\WLSERV~
    1.3\server\native\win\x64\;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\PROGRA~1\
    Java\JDK17~1.0\jre\bin;C:\PROGRA~1\Java\JDK17~1.0\bin;C:\Oracle\MIDDLE~1\WLSERV~
    1.3\server\native\win\x64\oci920_8

    C:\Windows\system32>rem *** Install the service

    C:\Windows\system32>"C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin\beasvc" -install -
    svcname:"beasvc Hidden_hidden" -javahome:"C:\PROGRA~1\Java\JDK17~1.
    0" -execdir:"C:\Oracle\Middleware\user_projects\domains\hidden\config"
    -maxconnectretries:"3" -host:"hidden" -port:"hidden" -extrapath:"C:\Oracle\M
    IDDLE~1\WLSERV~1.3\server\native\win\x64\;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\b
    in;C:\PROGRA~1\Java\JDK17~1.0\jre\bin;C:\PROGRA~1\Java\JDK17~1.0\bin;C:\Oracle\M
    IDDLE~1\WLSERV~1.3\server\native\win\x64\oci920_8" -password:"hidden" -cmdl
    ine:"-client -Xms32m -Xmx200m -XX:MaxPermSize=128m -XX:+UseSpinning -Dweblogic.m
    anagement.server=http://HIDDEN:HIDDEN -Dweblogic.Stdout="D:\TEMP\Svr_Logs
    \stdout.log" -Dweblogic.Stderr="D:\TEMP\Svr_Logs\stderr.log" -Xverify:none -clas
    spath \"C:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\sys_manifest_classpath
    \weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sys_manifes
    t_classpath\weblogic_patch.jar;C:\PROGRA~1\Java\JDK17~1.0\lib\tools.jar;C:\Oracl
    e\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\s
    erver\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modul
    es_10.3.6.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Orac
    le\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA
    ~1.0_1/lib/ant-contrib.jar;\" -Dweblogic.Name=HIDDEN -Dweblogic.managem
    ent.username=HIDDEN-Dweblogic.management.server=\"http://HIDDEN:HIDDEN\" -Dweblogic.ProductionModeEnabled= -Djava.security.policy=\"C:\Oracle\MIDDLE
    ~1\WLSERV~1.3\server\lib\weblogic.policy\" weblogic.Server"
    CreateService failed - The specified service already exists. (0x431)

    C:\Windows\system32>ENDLOCAL

    C:\Windows\system32>pause
    Press any key to continue . . .

    Edited by: 975620 on Apr 3, 2013 11:31 AM

    Edited by: 975620 on Apr 3, 2013 11:32 AM
  • 3. Re: configuring weblogic server to start automatically
    978623 Newbie
    Currently Being Moderated
    also should nodemanager be disabled/turned off?
  • 4. Re: configuring weblogic server to start automatically
    KirandeepKaur Newbie
    Currently Being Moderated
    CreateService failed - The specified service already exists. (0x431)


    Service with this name is already installed on your windows. Check on windows services on already installed services.

    Regards,
    Kirandeep
  • 5. Re: configuring weblogic server to start automatically
    978623 Newbie
    Currently Being Moderated
    ok i did what you said and yes the service is there, but it wont start. It gives me this response when i try to start it.

    the service when i try to start it:
    http://i1281.photobucket.com/albums/a516/eortiz10/startserviceerror_zps1385d57a.png

    the service:
    http://i1281.photobucket.com/albums/a516/eortiz10/servicespic_zpsb86e3914.png

    does the node manager have anything to do with this? All i am trying to do is make the weblogic server start automatically when i log on to server. i have read and followed instructions of many articles about this. no solution yet.
  • 6. Re: configuring weblogic server to start automatically
    997468 Explorer
    Currently Being Moderated
    Hi,

    If you have configured nodemanager to start/stop/monitor both Admin server and managed servers, then enrolling weblogic domain with the nodemanager and configuring nodemanager as a service/daemon would suffice. In situation where you donot want to configure nodemanager then you will have to configure each server (admin + managed) as a service for auto-start.

    configure managed servers as windows service -
    http://middlewaremagic.com/weblogic/?p=680
    http://weblogic-wonders.com/weblogic/2011/02/01/weblogic-as-a-windows-service/

    configuring nodemanager as a service -
    http://docs.oracle.com/cd/E15051_01/wls/docs103/nodemgr/java_nodemgr.html#wp1068818

    For Unix environment you can use rc3.d scripts to configure server/nodemanager as a daemon process.

    For password less start-up enter credentials in boot.properties file @ domain / servers / <server> / security / boot.properties
    If you do not have a security folder then create one and add credentials as below and save the file. Weblogic will encrypt the file at first usage.

    username=<username>
    password=<password>

    Thanks,
    Ranjan

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points