Error starting the Servoy Application Server on Windows 7

Hi

I managed to create a service to start the Servoy application server, i. e. the java process. I did it with this in the terminal, ehh the Command Prompt, with following line of code:

sc create ServoyServer binPath= "C:\Servoy\application_server\servoy_server.bat"

Problem is, I can’t start the service, I get the error seen in the appendix. I assume it has something to do with access rights.

On the other hand, I can start the servoy_server.bat in the terminal, there seem to be no access right problems.

Regards,

PS: How to create a service other than in the terminal, i. e. is there a possibility within Windows to do that?

maybe this is the cause: http://support.microsoft.com/kb/839174 ?

I am not sure if it means that I have to install the .Net Framework? Why do I need this .Net Framework? I assume, a service is plain simple part of the OS, not part of framework. Or do I missunderstand something?

lvostinar:
maybe this is the cause: http://support.microsoft.com/kb/839174 ?

Regards,

Hi Laurian

lvostinar:
maybe this is the cause: http://support.microsoft.com/kb/839174 ?

I installed ALL Windows updates on my Windows 7, but still can’t start the service. I checked as you mentioned the .NET Framework installations and it looks like I have also everything installed up to v4 (see attached screenshot).
I assume there is someone out there who is able to successfully start the Servoy Application Server as a service, or am I wrong?

Any idea how to solve the Error 1053?

Regards,

I have the same error and problem while starting servoy_server as a service on win 7 pro sp1. I googled about the error 1053, got many results but nothing helped.
Ok, normally I don’t have a win 7 server machine for servoy_server, but this is not nice and should work.

Not sure what goes wrong, did you try to run the service as Administrator ? Maybe default user doesn’t have enough rights.

I am running the service as Administrator. I created the service as Admin as well.

lvostinar:
Not sure what goes wrong, did you try to run the service as Administrator ? Maybe default user doesn’t have enough rights.

Of course, I tried starting servoy_server as standard user, as user with Administrator rights and as System-Administrator (root). But always the same error!

for starting Servoy application-server as a service, there is a folder called: service.

there you will find the a wrapper.conf (if you have copied over that one, from an other instance, adjust the filepath’s.)

than you can create two batch-files and place them in the same folder: service.

install_windows_service.bat

cd..
"%CD%\service\Wrapper.exe" -i "%CD%\service\wrapper.conf"
pause

and uninstall_windows_service.bat

cd..
"%CD%\service\Wrapper.exe" -r "%CD%\service\wrapper.conf"
pause

In the installer of Servoy, you have also an option, to select this (Install services, or something like that)

Hi Harjo,

you are right! In the installer window of Servoy there is an option to install the Application Server Service. If I do this, the servoy application_server is running well. If I do the command prompt installation like Robert, I get the error and the Service folder in the Servoy application_server directory is missing.
So I would say a reinstall of Serrvoy with a hook at Application Server Service is the best to get the server running on Win.

Hi Harjo

In Windows 7, I can’t find a folder called service. Where is it located?

Thanks,

Harjo:
for starting Servoy application-server as a service, there is a folder called: service.

there you will find the a wrapper.conf (if you have copied over that one, from an other instance, adjust the filepath’s.)

than you can create two batch-files and place them in the same folder: service.

install_windows_service.bat

cd..

“%CD%\service\Wrapper.exe” -i “%CD%\service\wrapper.conf”
pause




and uninstall_windows_service.bat


cd…
“%CD%\service\Wrapper.exe” -r “%CD%\service\wrapper.conf”
pause




In the installer of Servoy, you have also an option, to select this (Install services, or something like that)

Robert Huber:
In Windows 7, I can’t find a folder called service. Where is it located?

Hi Robert,

the service folder would be installed and located in the Servoy/application_server/ if you install Servoy with a hook at “Application Server Service” in the installer window!