Auto start weblogic 11gR1 as windows service?

I have installed Weblogic Server 11gR1 and created a domain with only one server (Administration Server).
I wonder if I can configure to run as windows service, in case of windows update and auto restart

Copy this to a new file called createSvc.cmd and put it in the \wlserver_10.3\server\bin
echo off
SETLOCAL
set DOMAIN_NAME=ADFDomain
set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\ADFDomain
set SERVER_NAME=AdminServer
set PRODUCTION_MODE=false
set JAVA_VENDOR=Sun
set JAVA_HOME=C:\Oracle\Middleware\jdk160_18
set MEM_ARGS=-Xms256m -Xmx512m
call "C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd"
ENDLOCAL
you will have to edit the DOMAIN_NAME to match yours
and the USERDOMAIN_HOME as well. This is pretty much a default install of the WLS 10.3 - though I changed the domain name.
I assume you used the default admin server name.
Go to the command prompt and set the current directory to the \wlserver_10.3\server\bin directory.
execute the createsvc.cmd and it should be done.

Similar Messages

  • Start WebLogic Server as windows service !

    hello,
    How can setup WebLogic 8.1 to start as a windows service in win2000?

    Please see this link:
    http://e-docs.bea.com/wls/docs81/adminguide/winservice.html#1190977
    Thanks,
    Vishwas

  • Starting oracle weblogic server as windows Service

    hi dear friends,
    i am working with oracle Weblogic server 10.3 and oracle Jdeveloper 11g
    i have an Ear file and deployed it on weblogic server and that work truly
    now,i want to start my server with windows Services
    for this goal i read some of the documents and created a windows service for my server
    when i started windows Service of the server just console of weblogic is start
    when i used debug mode for checking errors
    i saw bottom errors:
    java.lang.ClassNotFoundException: oracle.dms.wls.DMSStartup
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    Truncated. see log file for complete stacktrace
    >
    <Jul 26, 2009 9:09:32 AM IRDT> <Critical> <WebLogicServer> <BEA-000286> <Failed to invoke startup class "ODL-Startup", java.lang.ClassNotFoundException: oracle.core.ojdl.weblogic.ODLConfiguration
    java.lang.ClassNotFoundException: oracle.core.ojdl.weblogic.ODLConfiguration
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    Truncated. see log file for complete stacktrace
    >
    <Jul 26, 2009 9:09:32 AM IRDT> <Critical> <WebLogicServer> <BEA-000286> <Failed to invoke startup class "JPS Startup Class", java.lang.ClassNotFoundException: oracle.security.jps.wls.JpsWlsStartupClass
    java.lang.ClassNotFoundException: oracle.security.jps.wls.JpsWlsStartupClass
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    Truncated. see log file for complete stacktrace
    >
    <Jul 26, 2009 9:09:32 AM IRDT> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddi was not deployed. Error: [Deployer:149158]No application files exist at 'C:\NEWORA~1\MIDDLE~1\WLSERV~1.3\server\lib\uddi.war'.>
    <Jul 26, 2009 9:09:32 AM IRDT> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddiexplorer was not deployed. Error: [Deployer:149158]No application files exist at 'C:\NEWORA~1\MIDDLE~1\WLSERV~1.3\server\lib\uddiexplorer.war'.>
    <Jul 26, 2009 9:09:33 AM IRDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Jul 26, 2009 9:09:33 AM IRDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Jul 26, 2009 9:09:34 AM IRDT> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'requestEar' due to error weblogic.management.DeploymentException: .
    weblogic.management.DeploymentException:
    at weblogic.application.internal.flow.BaseLifecycleFlow$CreateListenerAction.run(BaseLifecycleFlow.java:171)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.application.internal.flow.BaseLifecycleFlow$BaseAction.invoke(BaseLifecycleFlow.java:99)
    at weblogic.application.internal.flow.HeadLifecycleFlow.createListener(HeadLifecycleFlow.java:117)
    Truncated. see log file for complete stacktrace
    java.lang.ClassNotFoundException: oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
    Truncated. see log file for complete stacktrace
    >
    how do solve their?

    hi
    i used your recommendation and set %WL_HOME%\common\bin\*commEnv.cmd to my path
    in this case when i am starting service of my server from windows Service console
    and then checked Deployment Files on my server
    i saw my EAR File could not start and it state was failed
    when i started from weblogic console
    it had error deploying time
    that error was :
    weblogic.common.ResourceException: weblogic.common.ResourceException:
    Could not create pool connection. The DBMS driver exception was: Locale not recognized
    how do i solve it
    regards
    aghaluie

  • How i can Start OC4J Instance as window service

    hi ,
    How i can Start OC4J Instance as window service ?
    Regards
    Omar

    Omar,
    check
    http://www.taltech.com/TALtech_web/support/sw_tricks/NTService.htm
    Frank

  • Start and Stop a Windows Service From Java

    Is there any way to start and stop a Windows service from Java? The only post I found on it (http://forum.java.sun.com/thread.jspa?threadID=647509) had a link to one of the many aps that allow Java programs to be services, which is not what I am interested in doing.
    I am attempting to get data from performance counters from the Windows Performance Monitor into a Java ap without using JNI. I can get the data from C++ or a .net language pretty easily and was going to create a service that would listen for socket requests and feed back the data. However, I'd like to start and stop that service when my java code starts and stops. Is this possible? Would it make more sense to just use a .exe and Runtime.exec()?

    If it's only to start or stop a service then you could use the net command without any need for JNI.import java.io.*;
    public class MsWinSvc {
        static final String CMD_START = "cmd /c net start \"";
        static final String CMD_STOP = "cmd /c net stop \"";
        public static int startService(String serviceName) throws Exception {
            return execCmd(CMD_START + serviceName + "\"");
        public static int stopService(String serviceName) throws Exception {
            return execCmd(CMD_STOP + serviceName + "\"");
        static int execCmd(String cmdLine) throws Exception {
            Process process = Runtime.getRuntime().exec(cmdLine);
            StreamPumper outPumper = new StreamPumper(process.getInputStream(), System.out);
            StreamPumper errPumper = new StreamPumper(process.getErrorStream(), System.err);
            outPumper.start();
            errPumper.start();
            process.waitFor();
            outPumper.join();
            errPumper.join();
            return process.exitValue();
        static class StreamPumper extends Thread {       
            private InputStream is;
            private PrintStream os;
            public StreamPumper(InputStream is, PrintStream os) {
                this.is = is;
                this.os = os;
            public void run() {
                try {
                    BufferedReader br = new BufferedReader(new InputStreamReader(is));
                    String line;
                    while ((line = br.readLine()) != null)
                        os.println(line);
                catch (Exception e) {
                    e.printStackTrace();
    }Regards

  • How To Run OIM Under Weblogic As A Windows Service?

    Hi
    does anyone know how to run OIM under Weblogic as a windows service?
    Many thanks in advance,
    Evanela

    Hi
    Does anyone know how to run OIM under Weblogic as a windows service?
    I have used "Setting Up a WebLogic Server Instance as a Windows Service" (http://download.oracle.com/docs/cd/E12839_01/web.1111/e13708/winservice.htm#START143), but It doesn't work because OIM use the xlStartWLS.cmd file and not startWebLogic.cmd.
    thanks!
    Edited by: user13082223 on Sep 29, 2010 9:09 AM

  • How to start OC4J as a Windows service?

    I installed OC4J standalone version 10.1.3.4.0 so I can configure Apache FOP. The startup/shutdown process is manual and my Windows customers are not liking it at all. Is there a way to make it a Windows service so it starts automatically when the system boots? Otherwise, the system has to stay logged in and the command window that started the process needs to remain open. Windows folks don't like this.
    Thanks,
    Denise

    I had an example here of doing this, way back when I was a young lad:
    [http://radio.weblogs.com/0132383/stories/2004/04/28/oc4jAsAWindowsService.html|http://radio.weblogs.com/0132383/stories/2004/04/28/oc4jAsAWindowsService.html]
    Don't know if the utility even exists any more but there's likely to be something else that has taken its place if not.
    -steve-

  • OBIEE 11g Start all compenents as Windows Services

    Hi Attached link to document for OBIEE 11g Start as windows Services.
    http://deliverbi.blogspot.com/2010/10/obiee-11g-auto-start-all-with-windows.html
    Cheers
    Shahed

    I have made a change to the scripts so they allow a new rpd to be loaded without errors... Beware Metalink scripts are incorrect for embedding OBIEE 11g windows services..
    cheers
    shahed

  • Starting weblogic server as NT Service.

    Hi,
    When I start weblogic server at cmdline our classes generate many
    messages like "Server started successfully" etc as console output. But
    when I start it as a service I dont see any of these. Can I specify an
    output file for all the messages when starting the server? If so what is
    the exact syntax?
    Regards,
    Billo

    Hi.
    Most of these messages are also in the weblogic.log file. Is this what you
    are looking for?
    Regards,
    Michael
    Billo Thomas wrote:
    Hi,
    When I start weblogic server at cmdline our classes generate many
    messages like "Server started successfully" etc as console output. But
    when I start it as a service I dont see any of these. Can I specify an
    output file for all the messages when starting the server? If so what is
    the exact syntax?
    Regards,
    Billo--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Can we start JavaWebStart Application as Windows service

    Hi,
    Can we have JavaWebStart application as windows service?
    Thanks
    LeoSun

    Hi LeoSun,
    I dont exactly how to start this is as a window service, but if your requirement is just to start your application when the machine boots,
    then you can create a shortcut for ur webstart app, using the jnlp tag <shortcut>
    then add this shortcut to your windows startup folder.

  • Mac auto start once shutdown under windows mode in boot camp

    This is the situation:
    I run windows xp on my macbook pro. When I finished using it and perform shut down, everything is still fine. The problem occurs when I plug in my laptop to a power source when the computer is shutdown. As soon as I connect the power adapter, the computer will automatically start up itself?
    Any ideas what's wrong with it?
    Thanks for the help.

    Hi V.K., I followed the reset steps for PRAM and the problem still exist. Could this be the battery's problem? BTW, my laptop is still fairly new, got it in December.
    Thanks for your help

  • Auto Start Mac Mini in Windows 7 Pro

    I am wanting to have the mac mini start up at a specific time. I have tried scheduling a start up in Mac OSX but since I'm booting into Windows, it doesn't come on. How do you do this in Windows 7 Pro? I've read about changing the BIOS settings but wanted to know if there was a easier way to do this.

    You may want to consider something like this
    http://www.apc.com/products/resource/include/techspec_index.cfm?base_sku=SUA1000 XL&total_watts=50&tab=features&xtmc=%2520USB%2520Serial&xtcr=1
    You may also want to look at the pmset command - https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man1/pmset.1.html
    These should be passed to firmware independent of the OS on the machine.
    The Windows side has equivalent commands.
    https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ pwrmn_ups_overview.mspx?mfr=true

  • Auto start weblogic

    Hi all,
    I want to autostart the weblogic server everytime after the server
    is rebooted. Since the weblogic server is installed and run as user
    "peter". How can I do it in the solaris??
    Rgds,
    unplug

    Jesse,
    I did the following.
    make a copy of startWebLogic.sh in init.d.
    make a link of startWebLogic.sh as S99WebLogic in rc3.d
    make a link of startWebLogic.sh as K99WebLogic in rc0.d
    Are there any problems in the above actions??
    Does the initialization script run by root?? I think so.
    So is there any problems if the startWebLogic.sh is own by
    other user (not root) for the above actions??
    thanks,
    unplug
    Jesse E Tilly wrote:
    >
    [email protected] (unplug) wrote in <[email protected]>:
    Hi all,
    I want to autostart the weblogic server everytime after the server
    is rebooted. Since the weblogic server is installed and run as user
    "peter". How can I do it in the solaris??
    Rgds,
    unplugUnplug,
    This is really more of a Solaris administration question than a WebLogic
    question. I will give you a head start, but I really recommend that if
    you're going to develop or deploy on a Solaris system that you consider
    hiring a Solaris administrator or taking admin classes and certifications
    on your own if you're gonna be the admin. Solaris can be powerful, but you
    have enough rope to hang yourself and your corporation in 8 easy
    characters, "rm -Rf /".
    Solaris uses what's called SysVInit (Linux does, BSD does not). The init
    scripts are based on the system's runlevel (a number 0-7). Usually 6 is
    reserved for reboot, 0 for shutdown, 1 for single-user and 2-5 for various
    run states. One of my systems, for example, defaults to level 3. You can
    check this in /etc/inittab. Look for initdefault and the number next to
    it. Depending on the runlevel, init (the Unix initialization program) runs
    an rc script. For 3 this is rc3. This can be found at /etc/rc3. It will
    run various checks and variable settings then run the scripts found in
    /etc/rc3.d (d for directory, get it?). There is a README (or should be)
    that describes how the scripts are run, should be made, etc. In Linux,
    these scripts are soft links to another group of scripts. In Solaris,
    that's not always the case.
    Anyway, to shorten this up, you're gonna want a weblogic start script
    (S99Weblogic) for rc3.d and a kill script (K99Weblogic) for the rc0.d
    directory. Check the file names. Sblahblah means start, Kblahblah means
    kill. Do a man on "init" and read the README in rc3.d.
    Jesse

  • Problem creating a Windows Service to Start Weblogic Adminserver

    Hi, I'm having some trouble starting the windows service for weblogic.
    The creation happens succesfully but, when I try to start the service, it fails.
    Thanks
    Debugging service ....... beasvc bpm11g_A00ASRV304W08R2
    Command Line: ....... -client -Xms32m -Xmx200m -XX:MaxPermSize=128m -XX:+UseSpinning -Xverify:none -classpath ....
    Current Directory: ....... D:\Oracle\Middleware1036\user_projects\domains\bpm11g
    Path: ....... D:\Oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x64\;D:\Oracle\MIDDLE~2\WLSERV~1.3\server\bin;D:\Java\JDK17~1.0_0\jre\bin;D:\Java\JDK17~1.0_0\n
    Java Home: ....... D:\Java\JDK17~1.0_0
    Delay: ....... 0
    Thread created successfully!
    Unrecognized option: -client
    Error in java application .......
    The following line contains specific error details .......
    Unable to initialize the Java virtual machine!

    Hi,
    Remove the word "-client" from command line options. Try to start weblogic server from window services. If you are getting error please let me know.
    Now:
    Command Line: ....... -client -Xms32m -Xmx200m -XX:MaxPermSize=128m -XX:UseSpinning -Xverify:none -classpath..............+
    Changed to:
    Command Line:....... -Xms32m -Xmx200m -XX:MaxPermSize=128m -XX:+UseSpinning -Xverify:none -classpath.............
    mark if this helps you.
    Regards,
    Kishore

  • Weblogic as windows service

    I started weblogic domain as windows service as it described in http://docs.oracle.com/cd/E21764_01/web.1111/e13708/winservice.htm#i1186180.
    After that i login to administrative console and i see, that DMS application deployed state in failed. In log i see, that weblogic does not see needed classes. Also I can't deploy my enterprise application for the same reason.
    If I start weblogic domain as script, than all start successfully and I can deploy any application well.
    What classpath is absent in windows script?

    The installSvc script calls just commEnv to set the classpath
    call "%WL_HOME%\common\bin\commEnv.cmd"What you can try to do is call the setDomainEnv.cmd file instead (this also calls commEnv).
    Usually with fusion middleware components extra classpath entry are added in the setDomainEnv script.
    The setDomainEnv script is located in the <middleware-home>\user_projects\domains\domain-name\bin directory.

Maybe you are looking for

  • Records not showing in Report

    Hi All, I'am facing peculair issue, We have an issue where inventory is showing in -ve. From 2LIS_03_BF we are loading the data to DSO, from DSO again to Cube. I can see Reocrds in Cube for a certian Plant , Storage Location and Material combinations

  • Voip application for windows phone 8.1 fails store submission

    A voip application with the new 8.1 architecture based on a separate process for the voip server is not accepted by the store. Voip architecture is based on 8.1 sample: https://code.msdn.microsoft.com/windowsapps/ChatterBox-VoIP-WP81-64921ad4 Errors

  • Bluetooth keyboard will not connect after upgrading to 10.9.2

    I upgraded mavericks to 10.9.2 bluetooth keyboard will not connect my blutooth mouse will connect my trackpad will connect but not my keyboard. Keeps saying it cannot pair . I reset the VRAM and keyboard  still will not connect

  • Can not login to my EA4500 router's web based setup page

    Hello All-I have a EA4500 router. I attempted to login to my router' web based  setup page late last year using my IE11 browser.I received an error message stating that I cannot login with that browser. I need an updated   IE,Google Chrome or Mozilla

  • HP Monitor to Mini Display Port

    My 3 year old 24" Cinema Display died and I'm looking to replace it with this HP Monitor: http://www.macmall.com/p/HP-Monitors/product~dpno~8907838~pdp.gjdeebd First of all is anyone familiar with this monitor? It is very well reviewed and seeme like