cancel
Showing results for 
Search instead for 
Did you mean: 

sapstartsrv.exe returned with '-1'

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

No, i stil lhaven't figured out how to solve this...

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hello, first of all thanks for replying.

I'm running the installation using the "administrator" user. And none of my passwords have spaces.

Any other ideas?

thanks in advance.

Former Member
0 Kudos

Hi:

I will assume that the following users have no blank space on their respective passwords:

- SAPServiceJ2E

- j2eadm

That's correct?

Then, the error is triggering an Access Denied when trying to execute the sapstartsrv.exe. Can you confirm that under directory C:\usr\sap your administrator account as well as the above mentioned users has FULL CONTROL over every file and directory?

I think that could be the error...

Best Regards,

Federico

Former Member
0 Kudos

Yes, the users you mentioned have full access and there's no space in the passwods. Still not working...

Any other Ideas?

Thanks in advance.

Former Member
0 Kudos

Hi:

Try to register the COM Object manually; execute sapstartsrv.exe and complete the fields; then hit OK.

You should see an confirmation box if registration was successful !

Regards,

Federico

Former Member
0 Kudos

I'm sorry but i had problems entering sdn last couple of days. I executes sapstartsrv.exe but, Could you give me an insight on the parameters? i'm not sure what it's asking for...

thanks in advance.

Former Member
0 Kudos

Hi:

Let's do the following, send me an email to federico@gazum.com with the screenshot in .JPG and I will send you what must be complete for each parameter that sapstartsrv.exe is asking for.

Best Regards,

Federico

Former Member
0 Kudos

I just sent it to your mail.

Thanks.

Former Member
0 Kudos

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