Service Desk Practitioners Forum
cancel

SD Application Server doesn't start as a service

SOLVED
Go to solution
Highlighted
Simone Grandine
Honored Contributor.

SD Application Server doesn't start as a service

Hi everybody,
i've a strange problem.

I've SD4.5 SP16 installed on a Windows 2000 server.I used installservice.bat file include in bin directory.

If i try to start AS from Services, it doesn't start...but if i try to start it directly from command line executing startserver.bat included in bin directory it starts!!

Error message is "Error 193: %1 is not a valid Win32 application"

Any ideas ?

Thanks
8 REPLIES
Michel SILVA SO
Outstanding Contributor.

Re: SD Application Server doesn't start as a service

Hello Simone,

did you try to uninstall (uninstallservice.bat) and perform a new installation?

Rgds,
Michel
Simone Grandine
Honored Contributor.

Re: SD Application Server doesn't start as a service

Yes...i tried to uninstall and install yet... but it still doesn't work :-(
JaS_4
Acclaimed Contributor.

Re: SD Application Server doesn't start as a service

Did you change anything in the installservice.bat ?

If it's unchanged and you are using DEFAULT in installservice.bat, run java -version and check in the registry that your java matches it.
Also check in your registry settings that sd service parameter and current dir keys looked right. On common mistake is when people start changing the installservice.bat and causes syntax error and the service creation does not handle parameters correctly. Eg. long file names has to be enclosed in double quotes. One way to check is run a dos box and run installservice.bat and see whether the parameters looks right or whether it is chopped in the wrong spot.
Simone Grandine
Honored Contributor.

Re: SD Application Server doesn't start as a service

Hi JaS,
i didn't change installservice.bat

I tried to reinstall ApplicationServer too, but it still doesn't work....

What do you mean with "run java -version and check in the registry that your java matches it" ? which key i have to look for in registry ?

Thanks,
bye bye
Wilfried Riegel
Respected Contributor.
Solution

Re: SD Application Server doesn't start as a service

I had a similar problem in SD5.
The cause was strange:

Check, whether there exist a file c:\program.
In this case there was an error with resolving pathname "c:\program files\....
Delete this file.

If this is not the case, check the registry, whether there is the original servicename
"hp Openview service desk 4.5 server".
If there is any pathname in imagepath like "c\program files\ ...bin\sd_serverservice.exe"
enclose this pathname in " ".

I don't know, whether this helps in 4.5, but in 5.0 it did (and changing some scripts, but they are not available in 4.5).

Regards
Wilfried

JaS_4
Acclaimed Contributor.

Re: SD Application Server doesn't start as a service

In the registry, check HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment, it will have CurrentVersion as eg. 1.3.1_08 same as "java -version" and it will have another key HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.3.1_08. Check that the JavaHome path and RuntimeLib path exist.
If the java side looks correct, now check the installservice.bat side but if you haven't change it, that should be fine and the key to check is HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\hp OpenView service desk 4.5 server.
If it's a java issue, you may want to uninstall and reinstall your java.
JaS_4
Acclaimed Contributor.

Re: SD Application Server doesn't start as a service

Hi Simone,

I found this in a old forum posting. Same error message but not sure whether it's the same cause.
http://support.microsoft.com/default.aspx?scid=kb;en-us;812486
Simone Grandine
Honored Contributor.

Re: SD Application Server doesn't start as a service

Thank you guys

solution was putting all service line command enclosed in ""


Thank you all