I am trying to install the Servoy application server as a Windows Service on my machine with specifications as follows:
Core i-5 64 bit 4gb Windows 7
After setting up the database and application server using IzPack, I tried running the application through servoy_server.bat. The application ran well without any errors.
To install the Application as a service, I updated the wrapper.conf and called the following batch files: install_service.bat and start_service.bat.
I saw the newly created service in the Windows Service console, which calls “<path_to_server>service\wrapper.exe” -s “<path_to_server>service\wrapper.conf”.
When I tried to start it, it threw an error, “Error 1053: The service did not respond to the start or control request in a timely fashion.”
When I checked the logs it says:
ERROR | wrapper | 2012/05/28 13:06:05 | Unable to expand “Path”: A device attached to the system is not functioning. (0x1f)
When I ran the wrapper.exe itself without the parameter -s, it worked fine.
erikd:
When I ran the wrapper.exe itself without the parameter -s, it worked fine.
What do you mean by “it worked fine”? Do you mean that it printed out to the console the arguments that it can receive or?
Did you have the DB server started before starting the service? What did you change in wrapper.conf?
The database server is already running as a service and has no problems.
I am having problems running the application server as a service. If I run the application server through servoy_server.bat, it runs well and I am able to access the http://localhost:8080/servoy-admin page. But if I use the wrapper to create a service, it throws the error.
I have used the following commands to create a service. I placed it inside the install_service.bat and start_service.bat.
CD \service
Wrapper.exe -r wrapper.conf
Wrapper.exe -i wrapper.conf
Wrapper.exe -t wrapper.conf
It should work (considering that all the “<path to …>” are correct ). The error message suggests it’s not able to find a .dll - which one, that I can’t tell.
Maybe it’s linked to what the system PATH variable lists.
(it works for me on a similar configuration)
Maybe the PATH variable is corrupt in some way? (invalid chars or contains some pattern that is not handled correctly)
Another reason I can think of is a problem accessing the Windows system registry. As I understand it, the wrapper uses the system registry to get the value of environment variables.
Thanks so much for the help! You are right, the problem was in the PATH variable. It had this value, “%PATH%”. When I removed it and restarted the service it threw “ERROR | wrapper | 2012/05/30 08:35:21 | Unable to expand “CLASSPATH”: A device attached to the system is not functioning. (0x1f).” I checked the CLASSPATH environment variables and saw this value %CLASSPATH%. I removed it and restarted the service.