Skip to Content
avatar image
Former Member

sapstartsrv.exe returned with '-1'

Hello, i'm trying to install was preview (j2ee stack) and i get the following errors:

WARNING 2005-12-19 11:40:40

CJSlibModule::writeWarning_impl()

Execution of the command "C:\usr\sap\J2E\SCS01\exe\sapstartsrv.exe -r -q -p C:\usr\sap\J2E\SYS\profile\START_SCS01_LOCALMACHINE -s J2E -n 01 -U LOCALMACHINE\SAPServiceJ2E -P XXXXXX -e LOCALMACHINE\j2eadm" finished with return code -1. Output:

Cannot register COM interface.

RegisterServer failed: 80070005

Access is denied.

ERROR 2005-12-19 11:40:40

CJSlibModule::writeError_impl()

MOS-01011 'C:\usr\sap\J2E\SCS01\exe/sapstartsrv.exe' returned with '-1'.

I have no idea how to solve this frustrating error.

Anyone?

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Dec 19, 2005 at 05:30 PM

    Hi:

    Different factors could be causing this -1 error; for instance, you wrote that error description is "Access Denied" It seems to me that the current user being used to install the system doesnÂ’t have Administrator rights ?

    Or, it can be that the user account selected as the "Service Account" has a password with spaces; you should have no spaces (" ") in the service account when registering the service with sapstartsrv.exe otherwise -1 error is thrown.

    Hope this helps!

    Best Regards,

    Federico G. Babelis

    NetWeaver Certified Consultant

    http://www.gazum.com

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi federico

      even i have the same kind of problem. i am not able to see sap instance in sap mmc console.so i am trying to run sapstartsrv.exe file but when when i am giving the entries it says that"account name is invalid or does not exist or the password is invalid for the account specified".

      i have logged with <sid>adm user .

      please find some time to help me out with this

      regards

      siddharth

  • avatar image
    Former Member
    Dec 24, 2005 at 06:48 PM

    Is this problem resolved, If so How?

    I would appreciate if any one could help me out with the similar problem. I have tried with all the possible solutions discussed on the forums, including trying to do it manually,giving permissions to user accounts. Still I get the same error.

    Two main errors while installing Web AS Java SP11

    ERROR 2005-12-23 01:36:35

    FSL-06002 Error 1060 (The specified service does not exist as an installed service.) in execution of a 'OpenService' function, line (255), with parameter SAPJ2E_00).

    ERROR 2005-12-23 13:47:32

    FSL-06002 Error 1060 (The specified service does not exist as an installed service.) in execution of a 'OpenService' function, line (255), with parameter (SAPJ2E_01).

    ERROR 2005-12-23 13:48:50

    MOS-01011 'C:\usr\sap\J2E\SCS01\exe/sapstartsrv.exe' returned with '-1'.

    Thanks

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi

      I have got the same problem while installing the Java Sneak Preview on my windows xp machine.

      =====================================================

      WARNING 2006-01-11 18:45:35

      Execution of the command "C:\usr\sap\J2E\SCS01\exe/sapstartsrv.exe '-r' '-q' '-p' 'C:\usr\sap\J2E\SYS\profile\START_SCS01_ceyhan' '-s' 'J2E' '-n' '01' '-U' 'ceyhan\SAPServiceJ2E' '-P' 'XXXXXX' '-e' 'ceyhan\j2eadm'" finished with return code -1. Output: Cannot register COM interface.

      ERROR 2006-01-11 18:45:35

      MOS-01011 'C:\usr\sap\J2E\SCS01\exe/sapstartsrv.exe' returned with '-1'.

      =======================================================

      What can be the solution for this error message?? Thanks for your help.

      merakshi

  • avatar image
    Former Member
    Mar 05, 2006 at 04:50 AM

    I've got this exact same problem as discussed in this thread. I noticed no one ever came to any solution. Is there no solution to this problem?

    I tried manually running sapstartsrv.exe and entering all the fields correctly. I added j2eadm, SAPServiceJ2E as well as the userid used to perform the installation to the usr/sap share with full control and this made absolutely no difference (all were already members of Administrators group which had full control).

    I still get the error "Access Denied" as mentioned in this thread. Can someone please post a solution if such has been arrived at? Thanks. Shibli

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 05, 2006 at 04:38 PM

    I was finally able to resolve this problem and after 1 week of struggling with it I think there is only one true resolution to this.

    Basically, if your first install attempt fails (which mine did...it hung and then crashed) then there is absolutely NO true way to uninstall your failed install. NONE of the tricks mentioned will remove the install enough to evade the irritating problem described in this thread. I had run uninstall, cleanup, edited the registry, manually deleted folders and files...nothing worked.

    Finally, what I did is a did a Systen Restore (Accessories -> System Tools -> System Restore) back to one week ago before I had ever installed the Sneak Preview. I ran the install...and it installed without a hiccup.

    All of you who have had this same problem, please try doing a System Restore to a date BEFORE you ever tried to install the Sneak Preview. Then run the install (make sure your prerequisites are intact such as the correct JSDK/JRE versions, etc) and sigh in relief.

    Please let us know if it works for you. Thanks --Shibli

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi, coincidentally my first installation failed, the thing is that i can't restore because it was in december! too much ago!

      There must be something to be done to simmulate what restore does, but only applied to this...

      If anyone knows help would be appreciated...

      Thanks in advance,

      Unknown.

  • avatar image
    Former Member
    Dec 10, 2007 at 04:07 PM

    1. go to windows service panel ( control panel -> admin tool -> services )

    2. if any service exists with name SAP<SID>01, try restarting it manually and see the error message. if message comes like "Access denied ", then you need to make sure that the user associated with the service is in Administrator group or have the appropriate permissions.

    --- to add the user in the admin group

    a. right click on "My Computer " -> go to manage -> Local Users and group

    b. select the user name associate with the service and right click -> go to properties > select "member of " tab and add it to " administrators " group

    c. restart the service the again

    3. if error message comes while you are in installation phase,

    a. make sure the service user is in the administrators group or follow the above steps.

    b. Open command window, go to C:\usr\sap\<SID>\SCS01\exe and run sapstartsrv manually from the command line.

    c. unistall the service by selecting Uninstall option and by giving <SID> and number 00 or 01

    d. Installation phase will recreate and start the service automatically

    4. if the error message is not in the installation phase

    a. Uninstall the service ( as mentioned above)

    b Install service ( same procedure with sapstartsrv )

    c. if you need help with the parameters, type sapstartsrv -help at the command line

    Add comment
    10|10000 characters needed characters exceeded