Start Apache as windows service

Hi
I want to start the below command as service in windoes 2003 server.
apache -D SSL
If I start this process in command line and log out of remote desktop, the process stop after few min.
I want this process to run all time.
Thanks in advance.
Sree

Hello
You wrote:
I added the following to jserv.properties:
wrapper.bin.parameters=-Xdebug
wrapper.bin.parameters=-Xrunjdwp:transport=dt_socket,address=2930,suspend=n,server=y
and it ran the servlet okay.Fine so far. This means your debugee VM is started and running. The "suspend=n" means it
will start running without waiting for a debugger to attach... so you can attach later whenever you
decide to debug. Note that 'later' could be weeks later, or possibly never.
Now: Time to attach jdb to the victim/debugee process you started above.
You wrote:
But I get the following when I try to start jdb:
jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=2930 org.apache.jserv.JServServletManager
gives:
Cannot specify command line with connector:
com.sun.jdi.SocketAttach:hostname=localhost,port=2930,
and
jdb -attach localhost:2930 org.apache.jserv.JServServletManager
gives:
Cannot specify command line with connector: com.sun.jdi.SharedMemoryAttach:name=localhost:2930,The problem here is that you are trying to supply too much information to jdb.
When you are using the attach connectors, all you need to supply is the
host name and socket (for the socket connectors), or the name of the shared memory
area (for the shared memory connector). The connectors you tried above are throwing
an error because you are trying to supply something extra (the class name).
When doing an attach, the debugee VM is already launched. The debugger will
attach to it and inspect the classes loaded.
If you are still running with the wrapper.bin.parameters you listed above,
then all you need to connect with jdb is:
  jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=2930 You should get a jdb prompt, and you will be able to inspect the debugee
VM by entering commands such as threads and classes. Typically
the next thing would be to set some breakpoints (stop in package.class.method,
or stop at package.class:line. Then restart the debugee with a resume.

Similar Messages

  • Problem with SJAS EE 9.1 start and stop (Windows Service Mode)

    Hi
    Thank you for reading my post
    Sun Java application server enterprise edition 9.1 (SJAS EE 9.1+HADB) asks for admin password each time windows try to start it as windows service.
    Also HADB asks for password on start.
    Is there any way to make it automatic without requiring password?
    Thanks

    You need to add a password.txt file to your app server path. See the section Security for Automatic Restarts in the administration guide for details.
    You may also need to recreate the service to use the passwordfile option.  If it is prompting you for a master password also you may need to have your domain and node agents created with the savemasterpassword option. I believe you will have to recreate the node agents, but you can use the asadmin command change-master-password for the domain and specify the --savemasterpassword option.
    I have not used the service for the HADB yet, but I believe the procedure is probably similar.

  • Start and stop windows service for multiple remote computers

    Hello,
    Can someone show me how to Start and Stop windows service for multiple remote computers using Command Prompt or PowerShell or even Java?
    Thank you

    You asked a pure Windows related question at a pure Java related forum. We have advised you to look for a Windows related forum to post the question. Nothing special. It's like asking a car mechanican to help you with your migraine, he would advise you to look for a general practitioner.
    But why are you so surprised and negative about this answer after all? Don't we have to help you? Don't you appreciate help? So be it then, but please stay away then if you keep this attitude.

  • Install http apache 2 Windows service

    I installed Oracle HTTP Apache 2 in the same server (Windows 2003) with the Oracle database software installation. I tried to follow the following artical to install a Windows service but failed to start the service afterward. I ran the following command in command prompt to create the Windows service and, when I tried to start it, it said "Error 1053: The service did not respond to the start or control request in a timely fashion".
    Thanks.
    Andy
    <pre>
    sc create OracleHTTPServerProcessManager binPath= "f:\ora_http_v2\opmn\bin\opmn.exe -s" DisplayName= "OracleHTTPServerProcessManager" start= "auto"
    </pre>
    Here is the article that I read:
    http://ora-00001.blogspot.com/2008/04/adventures-with-apex-part-two-setting.html

    Had exactly the same problem, then I noticed the capital S after opmn, it is casesensitive see metalink doc id 428131.1
    So this should work
    sc create OracleHTTPServerProcessManager binPath= "f:\ora_http_v2\opmn\bin\opmn.exe -S" DisplayName= "OracleHTTPServerProcessManager" start= "auto"
    Regards, André
    Edited by: Andre R on Dec 22, 2009 5:19 AM
    Edited by: Andre R on Dec 22, 2009 5:20 AM
    Edited by: Andre R on Dec 22, 2009 5:20 AM

  • Setting up OIM to start as a Windows Service running under Weblogic 10.3.2

    Hi,
    On recommendation from our Oracle Rep. we have begun migrating our existing OIM installation on Oracle AS to a Weblogic Application Server. As such we are looking for a way to get the OIM application to run as a service in windows - so we dont have to start it manually after a reboot and so that system monitoring can alert us if/when the application crashes for some reason.
    I have asked Oracle support - which basically said that no such howto/documentation exists and that "One needs to debug on their own when face any issue." (whatever the h*** that means).
    I was thinking that we werent the first customers trying to get the OIM webapplication to start automatically under weblogic and that someone must have figured out a way to accomplish this ?
    Any advice on how to do this will be greatly appreciated.
    Thank you in advance.
    /Jacob

    Hi Jacob,
    See this post that I answered few time ago. Re: Keeping Remote Manager running - Windows
    Our OIM is running as a Windows Service.
    REnato

  • Welogic failed to start as a Windows services

    I have installed Weblogic 816 and I am able to start it from command line. I also install it as a Windows 2003 Service but failed to start. The error is "Could not start the beasvc myserver service on local computer Error 1067: The process terminated unexpectedly"
    What am I missing and how to debug it?
    Thanks

    See if you are following these steps given below URL while creating weblogic server instance as windows service.
    http://ananthkannan.blogspot.com/2009/10/how-to-create-weblogic-server-as.html

  • New install cant 'see' infoview etc when Tomcat starts as a windows service

    Post Author: sdimb
    CA Forum: Deployment
    Help, we are a new site trying to install BOXI R2 SP2 on a windows server.  We have installed as per all instructions including Tomcat but when we try to 'use' Infoview we get a blank page.  If we stop Tomcat and restart it via the command prompt we can use Infoview but we need to have this working as a windows service.  We have tried re-installing several times and always get the same result.  does anyone have any ideas as to what we have done wrong please.

    Post Author: mewdied
    CA Forum: Deployment
    Running tomcat as a service may be running under a different user context than when running it via the command prompt.  This may be causing your issue.

  • Starting NodeManager in Windows Services

    The installmgrsvc.cmd do not start, may be an error,
    i need self starting NodeManager and then ManagedServers, AdminServer Also,
    Kindly,
    im using windows 7 ultimat 32-bit
    wls 10.3.5 11g.

    Hi Kashif
    After running the cmd for creating this service you can set it to run at start up using msconfig..please check before that you wil have to create a service for this.
    @ BEA_Home\wlserver_10.3\server\bin
    you will have to run
    "installSvc" and "installNodeMgrSvc" for starting the node manager.
    Keep on posting ... :)

  • Script to Stop/Start Oracle Apps windows services

    Hello,
    I am trying to script 2 batch files, one to stop services and one to
    start services.
    So far I have the folloing for the stop script:
    Stop services:
    set ORACLE_HOME=e:\oracle\<sid>ora\8.0.6
    set ORACLE_SID=<SID>
    NET STOP "Oracle Reports Server [Rep60_HPP1]"
    NET STOP OracleApacheServerHPP1_spud
    NET STOP OracleFulfillmentServerHPP1_spud
    NET STOP OracleMetricsClientHPP1_spud
    NET STOP OracleMetricsServerHPP1_spud
    NET STOP OracleConcMgrHPP1_spud
    NET STOP OracleHPP1Ora806_1TNSListener80APPS_HPP1
    However sometimes the concurrent manager fails to stop correctly and I
    have to issue a 2nd command to forcefully shut it down. Does anyone
    know how I can write this into my script? before it moves onto the
    Apps Listener?
    Any advise would be appreciated.
    Thank you
    Sarah

    The error we sometimes get is that the concurrent manager was unable to stop we have to then use the following command to shut them down:
    CONCSUB.EXE APPS/appspassword@PROD SYSADMIN "System Administrator" SYSADMIN WAIT=Y CONCURRENT FND ABORT
    I was trying to use net stop in the script and if this didn't work, the script would issue the command above.
    Thank you

  • Failing to start Weblogic as Windows Service

    I've seen this support case:
    http://support.bea.com/application?namespace=askbea&origin=ask_bea_answer.jsp&event=link.view_answer_page_solution&answerpage=solution&page=jrock/S-26582.htm
    Is this still an issue on Windows 2000 with WebLogic Platform 8.1 sp3 because I've struggeled getting the WLS server starting.
    ----- Trond

    Hi Jit,
    Rename the boot.properties to boot.properties_back,
    Now are u able to start the Admin Server with direct StartAdmin.sh script???
    If yes, what were the credentials used during startup,were they weblogic/weblogic???
    If you have forgotten your username and password
    Follow the steps provided in the below link for resetting the password
    http://middlewaremagic.com/weblogic/?p=323
    Once you follow the above steps
    Try login to console with the new username and password.
    Now changes needs to be done in installSvc_iw.cmd
    set WLS_USER=weblogic
    set WLS_PW=weblogic Regards
    Fabian

  • Unable to start Latitude Studio as a Windows Service

    I installed endeca-portal-2.2.2 on 64 bit windows server.
    It is working fine if I manually start the portal's Tomcat instance.
    But I am unable to start as a Windows Service.
    I followed the directions in "Running Latitude Studio as a Windows Service" in the Installation Guide.
    But I am getting the following error.
    [2012-09-20 06:18:27] [info] Commons Daemon procrun (1.0.2.0) started
    [2012-09-20 06:18:27] [info] Running Service...
    [2012-09-20 06:18:27] [info] Starting service...
    [2012-09-20 06:18:27] [206 javajni.c] [error] %1 is not a valid Win32 application.
    [2012-09-20 06:18:27] [985 prunsrv.c] [error] Failed creating java D:\Endeca\Latitude\2.2.2\Studio\endeca-portal\tomcat-6.0.29\jre1.6.0_21\win\bin\server\jvm.dll
    [2012-09-20 06:18:27] [1280 prunsrv.c] [error] ServiceStart returned 1
    [2012-09-20 06:18:27] [info] Run service finished.
    Any help will be greatly appreciated.

    What version of the Apache tomcat zip did you extract the service.bat, tomcat6.exe and tomcat6w.exe? It looks like you are using the default java install, and the services is trying to start using the 64bit tomcat.exe.
    Pete

  • Start Oracle BI 11.1.1.5 as Windows service.

    I have the Simple Installation of Oracle BI 11.1.1.5 on Windows 2003. It's mean that only AdminServer there is in Weblogic. I've found sollution for BI installed as another server in Weblogic (AdminServer and bi_server1). Also I can start Weblogic as Windows service but BI doesn't start. Is it possible to set BI as Windows service?

    Hi, Deepak!
    Thank you for link but I have only one server in weblogic - Admin_server.

  • 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

  • Start / Stop Window services

    Hi,
    I would like to start and stop window services on remote computer.
    Do you know if there is a package API in java to do it?
    How can I do it?
    Thanks,
    Anat

    Look for www.jscape.com
    you can ftp or telnet to the computer, then start the command for that service
    this is the code for ftp
    * FtpExample.java
    * Created on 01 March 2007, 10:30
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package testing;
    * @author Administrator
    import com.jscape.inet.ftp.*;
    import java.io.*;
    import java.util.Enumeration;
    public class FtpExample extends FtpAdapter {
        private String hostname;
        private String username;
        private String password;
        public FtpExample(String hostname, String username, String password) {
            this.hostname = hostname;
            this.username = username;
            this.password = password;
        // print out directory listing
        public void getListing() throws FtpException {
            Ftp ftp = new Ftp(hostname,username,password);
            //capture Ftp related events
            ftp.addFtpListener(this);
            ftp.connect();
             ftp.setDir("www");
            String results = ftp.getDirListingAsString();
            System.out.println(results);
            ftp.disconnect();
        // captures connect event
        public void connected(FtpConnectedEvent evt) {
            System.out.println("Connected to server: " + evt.getHostname());
        // captures disconnect event
        public void disconnected(FtpDisconnectedEvent evt) {
            System.out.println("Disconnected from server: " + evt.getHostname());
        public static void main(String[] args) {
            String hostname;
            String username;
            String password;
            try {
                FtpExample example = new FtpExample("ftplocation e.g 192.168.0.1","username","password");
                example.getListing();
            }catch(Exception e) {
                e.printStackTrace();
    }

  • Windows service doesn't start at boot

    When our Xserve starts up, the Windows service does not start.
    I've got SMBSERVER=-YES- in /etc/hostconfig.
    Once the xserve is running, clicking on the Start Service button for Windows in Server Admin starts the service with no problems. Once it's running, it's fine. The server has no other problems that I'm aware of.
    Any suggestions would be greatly appreciated.
    Xserve   Mac OS X (10.4.6)  

    I have exactly the same problem. Did you ever find a solution?

Maybe you are looking for

  • How do you change the direction of a Tween Wipe effect

    Hi all, Completely new to the forums and I hopefully my query is straight forward.  How do you change the direction in the pre-built tween effects available within Flash CS3 (primarily the Wipe effect).  Example code: var Animate_Box:Tween = new Twee

  • SMTP error from remote mail service

    I am receiving a error that states"SMTP error from remote mail service" This is my work e-mail that is a out look e-mail service--but was put on my laptop in mozilla. If I test send e-mails to my gmail, aol and the work e-mail the work e-mail goes th

  • Cannot download itunes

    even though it says i succesfully downloaded itunes when i try to run it i get an error message that says itunessetup.exe is not a valid win32 application - i have windowns xp - not sure what i'm doing wrong

  • How do I bring an element layer to the front

    I want to use code to bring elements to the front. The same way I would do in flash by using addChild where it brings that symbol on top of others? How would I do that with codes?

  • Empty tabs in BAM Active Studio (SOA Suite 11.1.1.3)

    Hi all, I experienced an issue with BAM Active Studio and the SUN jdk 1.60_18 in SOA Suite 11.1.1.3. When I click "edit view" in a report, the "Data" tabs are all empty. The issue only occurs with the bundled SUN jdk 1.60_18 (under Windows 7). It doe