Running OC4J as a Windows service

Hi
Does anyone know if it is possible to run OC4J as a Windows service?
Are there any tools I could use besides Microsoft’s SVRANY?
Best regards
Ole

> Hi
>
> Does anyone know if it is possible to run OC4J as a
> Windows service?
>
> Are there any tools I could use besides Microsoft’s
> SVRANY?
>
> Best regards
> Ole
Hi
We have found the product for the job. If anyone have the same problem, you can find the program Service+ at nicoware.net
It is running OC4J as a service very well. It even logs console output to a text file. We are now using it in our production system.
Ole

Similar Messages

  • 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

  • My application doesn't start when I run the domain as windows service

    I am using weblogic 10.3.2 and i created a domain called rec_domain and i have AdminServer
    also i deployed application called myApplication to the rec_domain
    then i created windows service to run the server as a windows service
    The Script for Setting Up a Server as a Windows Service:
    echo off
    SETLOCAL
    set DOMAIN_NAME=rec_domain
    set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\rec_domain
    set SERVER_NAME=AdminServer
    set WLS_USER=usernmae
    set WLS_PW=password
    set PRODUCTION_MODE=true
    set JAVA_VM=-jrockit
    set JAVA_VENDOR=BEA
    set JAVA_HOME=C:\Oracle\Middleware\jrockit_160_05
    set MEM_ARGS=-Xms40m -Xmx250m
    call "C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd"
    ENDLOCAL
    the service was created successfully and when i restart the computer it runs the adminserver successfully
    but it doesn't start myApplication_
    does anyone know where is the problem?
    Edited by: Wael Ibrahim on 28/12/2009 05:48 ص

    Hi Wael,
    Can you please specify, What do u mean by Application Doesn't start? Is it Moving to PREPARED State Rather than ACTIVE state? Or the Application Health is not OK? Are you seeing any Warning or Error Message while starting the Server related to Deployment?
    As the Production Mode is On...So I just wanted to confirm that By Mistake have u used the AutoDeploy feature to deploy Applications...Because the AutoDeploy Feature Doesn't Work in Production_Mode=true.
    After Configuring the Windows Service Have you tried to Deploy the Application Freshly? Was it Successful?
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)
    Edited by: Jay SenSharma on Dec 29, 2009 9:11 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-

  • Error in configuring OC4J as a Windows Service

    I created a batch file and placed it in my drive C. It has the following code:
    SET PATH=C:\Program Files\Java\jdk1.6.0_01\bin
    cd C:\OracleBI\oc4j_bi\j2ee\home
    java -jar oc4j.jarWhen i double click on the batch file OC4J starts correctly. However, when i configure it as a windows service using the same batch file i get the error:
    Error 1053: The service did not respond to start or control request in a timely fashion
    I created a windows service are as follows:
    sc.exe create "Oracle BI OC4J" binPath= "c:\Start_OC4J.bat"
    Thats it. I did only this much. I feel i am missing out on some steps. I can see the service but not able to start it. The error is:
    Error 1053: The service did not respond to start or control request in a timely fashion

    Windows bit also matters and you need to use specific javaservice
    Try something like below
    Windows 64 BIT
    Download "JavaService-2.0.7.64" from http://forge.ow2.org/project/download.php
    javaservice -install "Oracle BI OC4J Service" "C:\Program Files\Java\jre6\bin\server\jvm.dll" -XX:MaxPermSize=128m -Xmx512m "-Djava.class.path=D:\OracleBI\oc4j_bi\j2ee\home\oc4j.jar" -start oracle.oc4j.loader.boot.BootStrap
    Windows 32 BIT
    Download "JavaService-2.0.10" from http://forge.ow2.org/project/download.php
    javaservice -install "Oracle BI OC4J" "D:\Java\jre7\bin\client\jvm.dll" -XX:MaxPermSize=128m -Xmx512m "-Djava.class.path=D:\OracleBI\oc4j_bi\j2ee\home\oc4j.jar" -start oracle.oc4j.loader.boot.BootStrap -out "D:\OracleBI\oc4j_bi\j2ee\home\log\oc4j.log.txt" -err "D:\OracleBI\oc4j_bi\j2ee\home\log\oc4j.err.txt" -description "Oracle BI OC4J"
    Edited by: Srini VEERAVALLI on May 20, 2013 9:13 AM

  • Run .bat file as windows service

    want to ran a .bat file as windows service kindly help me on this through step by step guide.

    Wrong forum. This one is for Forum Issues. So we could move it if you have a forum in mind.
    Thanks!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Run iTunes as a Windows service?

    There are two issues I'd like to overcome with iTunes-
    I have to be logged in for iTunes to download podcasts.
    iTunes won't wake up the computer when it's time to do a podcast download.
    Has anyone dealt with these issues? (Maybe launching iTunes as a service with one of those wrapper utilities? and or create a scheduled task that wakes up the computer at the podcast download time?)
    Also:
    Where can I set the time of day when podcast download is scheduled? I didn't see a Scheduled Task for podcast download, only Apple Software update.
    Windows   Windows XP Pro  

    Nope there isn't. And there also isn't a reason not to use 3rd party software as there is an excellent open source API to do this job: Java Service Wrapper.

  • Running Weblogic managed server as Windows service

    Hi,
    i'm using Weblogic 6.0 SP2 and i'm trying to run Managed Server as windows
    service (i'm using Win2k). I use a pretty long CLASSPATH in order to run my
    WebApplication and it looks like beasvc.exe truncates my CLASSPATH - that
    way my application wouldn't work.
    Is there any workaround to my problem ?
    Thanks alot for any help,
    Bybye.

    Windows has a command line limitation of 2K.
    Since you invoke beasvc.exe from command line, it will obviously get's
    truncated
    1)
    One work around will be to set the registry manually after invoking
    the beasvc.exe
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
    <service-name>\Parameters
    Alter cmdLine parameter to include everything. After this if you start
    the service, it should work.
    2)
    Put all the classpath in a file called C:/temp/foo.tmp (since classpath is
    long)
    Invoke beasvc.exe with cmdLine set as
    -cmdLine:... -classpath "@C:/temp/foo.tmp ...
    Since jvm pulls the classpath from the file, this should also solve your
    problem.
    Sun VM's support this feature as of 1.2 and above.
    Kumar
    Evgenya Borisenko wrote:
    Hi,
    i'm using Weblogic 6.0 SP2 and i'm trying to run Managed Server as windows
    service (i'm using Win2k). I use a pretty long CLASSPATH in order to run my
    WebApplication and it looks like beasvc.exe truncates my CLASSPATH - that
    way my application wouldn't work.
    Is there any workaround to my problem ?
    Thanks alot for any help,
    Bybye.

  • Weblogic Startup Class does not run as Windows Service

    If you know the answer, plase send me an email at [email protected]
    I'm running a weblogic startup class that starts a Thread. I need to
    run a batch program that should be running as long as WebLogic is
    running (to process new orders).
    It works fine when I run WebLogic (5.1 SP8) from a script, but causes
    problem when I'm running it as a Windows Service. It calls the
    startup class, however, the startup class never spawns the Thread
    class.
    Following is excerpts from different components:
    =============================================================
    *** weblogic.properties ***
    weblogic.system.startupClass.pdfCreatorStart=WebLogicStartupPdfCreator
    *** WebLogicStartupPdfCreator.java ***
    public class WebLogicStartupPdfCreator implements T3StartupDef {
    public String startup(String name, Hashtable args) throws
    Exception {
    Thread t = new ProductionPdfBatchRunner();
    t.start();
    return "success";
    *** ProductionPdfBatchRunner.java ***
    public class ProductionPdfBatchRunner extends Thread {
    public void run() {
    try {
    //work being done here
    this.sleep(30000);
    catch (InterruptedException ie) {               
    catch(Exception e) {
    e.printStackTrace();
    =============================================================
    Thanks for any help

    Hi,
    Ok. Few suggestions.
    1. Can you review the SAP note:
    552286  Troubleshooting for the SAP Web Dispatcher
    2. When you said: "web dispatcher does not get started ", what error you got ? Can you be more details here ?
    3. Please check the trace file dev_webdisp" that generated in the work directory. If the log entries is not abvious, increase the trace level to 2 or 3, and reproduce and re-check the trace file.
    4. What is the output of the command "sapwebdisp -v"
    5. How about sapwebdisp.pfl ? Are those settings correct ?
    Hope this helps.
    Regards,
    Vincent

  • How to get 'clover.cmd' running as Windows service?

    Right now I have the InDesign instances all running great as services so on a server reboot they start up fine. The clover/lbq part is  just the .cmd script and it's not running as a service. I looked in the documentation but haven't found any info on getting clover to run as a Windows service.
    Anyone know how to set it to do this? I'm on InDesign CS6 (server).
    thanks.

    This information is in the Install Guide that comes with EAS.Running EAS as a Windows service is an option you can select when you install it. If you did not do that, you can set it up to run as service by doing the following: (From the EAS Install Guide)----------------------------------------Adding Administration Server as a Windows ServiceYou can add Administration Server as a Windows service, even if it was not installed as a Windows service.?To add Administration Server to the list of Windows services:1. From a command prompt, navigate to the following directory: EASPATH\eas\server\bin2. Run the following command: install_service.batAdministration Services installs the Windows service as Hyperion-Essbase_Administration_Server Windows service. A message displayed in the command prompt window indicates that the service is installed.3. Start the Hyperion-Essbase_Administration_Server Windows service. See ?Starting the Administration Server Windows Service? on page 49.The Hyperion-Essbase_Administration_Server Windows service is set to start automatically each time you reboot.

  • How to run application as Windows Service

    I have developed an appl using Java Swing. I want to run the application as Windows Service. How can I do that? Along with that, I also want to start Tomcat Server as a separate Windows service. Kindly Suggest some solutino to this!!

    There is a version of Tomcat that runs as a service. (1.4 for windows?)
    As for your own app, there are several free service launchers around (Google for java service etc.) Not sure about a service with a user interface though - services are usually headless. You may have to paritiotn your app into a headless service and a user interface app which communicaes by RMI, sockets or some other RPC mechanism.

  • Different thread/memory limits when running Java via Windows Service?

    My company is developing a Java application that employs a "black-box" interface, which generates several memory-intensive threads. When we run the application via a batch file, the threads seem to run in parallel on a quad-core server. However, when we install the application as a Windows Service on the same server, it appears that we hit a hard limit of 35 threads, and the process pegs out one of the server's CPU's at 100%. Does anyone know why we don't see the parallelism when we run it as a Windows Service? Does anyone know if Windows imposes different memory or thread restrictions on services, as opposed to normal desktop applications?

    My company is developing a Java application that employs a "black-box" interface, which generates several memory-intensive threads. When we run the application via a batch file, the threads seem to run in parallel on a quad-core server. However, when we install the application as a Windows Service on the same server, it appears that we hit a hard limit of 35 threads, and the process pegs out one of the server's CPU's at 100%. Does anyone know why we don't see the parallelism when we run it as a Windows Service? Does anyone know if Windows imposes different memory or thread restrictions on services, as opposed to normal desktop applications?

  • Classic JVM hangs when running Tomcat as Windows Service

    Hi!
    I am running a Tomcat 3.2.4 application, written with Java 1.3.1_01.
    To run it as a Windows Service (W2000), I am using a slightly altered version of JavaService, which works fine so far: I can use both the "hotspot" and the "server" JVM's (by selecting the jvm.dll from the respective subfolder of the JDK/jre/bin folder).
    However, when I try to run the same application with the "classic" JVM, the service starts, inside of it Tomcat starts, the first output appears (to the stdout logfile) and after some time Tomcat simply hangs - it doesn't respond to anything anymore, 0% CPU, no output to logfiles anymore, doesn't even respond to normal Tomcat shutdown (e.g. when stopping the service, Windows waits the standard timeout then just kills it).
    Using the classic JVM in a console (e.g. not through JavaService and the classic/jvm.dll) works fine! No problems!
    Anyone here who can offer any help on this?
    Any hints why Tomcat may behave correctly in 5 out of six possible configurations (hotspot-server/client as service or console or classic as console) but hanging with 1 configuration (classic as service)?
    Also, on my W2000 box where this happens, the moment Tomcat hangs, I hear a Windows warning sound being played (the standard warning gong), like it happens when an info dialog pops up - only there is no dialog or whatever and the same moment Tomcat's CPU usage drops to 0% (although the app is still in startup and should do some more work for a few seconds).
    This also doesn't always happen at the same moment during startup, but each time at a different moment, e.g. I can not pin it down to something that is done during startup, it just happens a short while (sometimes earlier, sometimes later) after startup...
    Of course, I could simply say "forget classic, it's being phased out anyway", only: The SAME thing happens with IBM's Java 1.3 VM too (except for the gong sound, which seems to be Sun-JVM specific ;-)! And I would very much like my app to be able to run on IBM's VM (usually I'm using Sun's VMs everywhere, but we have a few stray W2000 boxes with SP2 where Sun's 1.3.1_0x VMs crash with our application [not hang like described above, but really crash, even when run as a console]) and on those boxes the IBM JVM in a console works fine - now I only have to get it working as a service too (and while researching why it hangs I saw that Sun's classic JVM hangs too, so I figured, I first find out why that happens, with the hope that the fix is applicable to IBM's JVM too...).
    Thanks already,
    Johannes

    re setting classpath when using JavaService
    for Win2k, Tomcat 3.3.1a, JDK1.2
    below is my script for creating/installing JavaService
    (based on Alexandria web site version). However, if i
    try to add .jar files to classpath (ie, CP environment
    variable), the service does not work. It only works
    when this single .jar file is there. How can .jar or
    .zip files be added to classpath for this service?
    I've not been working with Tomcar as a service, so can't help directly, but can offer some comments that might be of use (apologies if they aren't!).
    There are Tomcat scripts for V3.1, V3.2 and V4 with the JavaService code from Alexandria SC. Looks like you need one for V3.3 as well?
    In these others, there are fairly long lists of jar files in the classpath, so I would expect it to work correctly for the version you are using (unless there is a problem with the way that classloaders are involved, which is something that is known to get in the way for some app server-based programs).
    I would expect the classpath to work if changed from what you have listed to something like the following:
    set CP=%TOMCAT_HOME%\lib\tomcat.jar;%TOMCAT_HOME%\lib\jaxp.jar;%TOMCAT_HOME$\lib\other_library.jar
    Is that what you have tried to do, and found problems?
    Does this version of Tomcat bundle all of its resources into a single jar file (tomcat.jar), or is that a file you have created yourself?
    Is the problem found when loading and starting Tomcat itself, or from within your server-based application?
    Does it fail to load a 'standard' Tomcat library archive, or a jar file containing your own program code?
    set CP=%TOMCAT_HOME%\lib\tomcat.jar
    echo %CP%
    JavaService.exe -install "Jakarta-Tomcat"
    %java_home%\jre\bin\classic\jvm.dll
    -Djava.class.path=%CP% -Dtomcat.home=%TOMCAT_HOME%
    -Djava.security.policy=%TOMCAT_HOME%/conf/tomcat.policy
    -Xms128m -Xmx128m -start
    org.apache.tomcat.startup.Main -params start -stop
    org.apache.tomcat.startup.Main -params stop -out
    %TOMCAT_HOME%\logs\stdout.log -err
    %TOMCAT_HOME%\logs\stderr.log
    Regards,
    John Rutter

  • Problem with  WebLgoic running as a Windows Service

    If you know the answer, plase send me an email at [email protected]
    I'm running a weblogic startup class that starts a Thread. I need to
    run a batch program that should be running as long as WebLogic is
    running (to process new orders).
    It works fine when I run WebLogic (5.1 SP8) from a script, but causes
    problem when I'm running it as a Windows Service. It calls the
    startup class, however, the startup class never spawns the Thread
    class.
    Following is excerpts from different components:
    =============================================================
    *** weblogic.properties ***
    weblogic.system.startupClass.pdfCreatorStart=WebLogicStartupPdfCreator
    *** WebLogicStartupPdfCreator.java ***
    public class WebLogicStartupPdfCreator implements T3StartupDef {
    public String startup(String name, Hashtable args) throws
    Exception {
    Thread t = new ProductionPdfBatchRunner();
    t.start();
    return "success";
    *** ProductionPdfBatchRunner.java ***
    public class ProductionPdfBatchRunner extends Thread {
    public void run() {
    try {
    //work being done here
    this.sleep(30000);
    catch (InterruptedException ie) {               
    catch(Exception e) {
    e.printStackTrace();
    =============================================================
    Thanks for any help

    Hi.
    You can add extra path information by using the -extrapath option in your
    installNTservice.cmd script.
    Regards,
    Michael
    martin wang wrote:
    When I installed a weblogic server as a windows service using installNTservice.cmd,
    I found that the system path was not appended to the java.library.path. Here is
    the detail:
    step 1: went to ...\config\mydomain, run installNTservice.cmd, and the weblogic
    server "myServer" was installed as a NT service.
    step 2: went to Control Panel -> administrative tools -> services and started
    up the service "myserver".
    step 3: went to ...\config\mydomain\logs, open Weblogic.log and found that:
    java.library.path = C:\bea\wlserver6.0\bin;.;C:\WINNT\System32;C:\WINNT
    usually java.library.path should be the above paths plus the system path(which
    can be changed in control panel -> system ->advanced -> environment variables
    Does any one know why?--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • BPEL server as Windows Service

    Hi there,
    Can you tell me how to install the BPEL server (OC4J) as a Windows Service so that it can be started and stopped through the Windows ServiceManager.
    I cant find any documentation about this.....
    thx
    Mark

    Hallo Edwin,
    I´m also trying to install the BPEL Server as a Windows Serivce with Windows XP. Are there any samples, that show how to do that? The solution that is provided here is quite uncomfortable.
    Thanks for any help.
    Kay

Maybe you are looking for