Can't start Servoy Server as a service

Windows 2003 Server, logged in as an administrator
Servoy 3.1
Java SE 6

I can start Server manually from the command prompt but when I try starting it manually as a service it fails and I get this in the service_log:

STATUS | wrapper | 2007/01/24 12:11:20 | Launching a JVM…
INFO | jvm 2 | 2007/01/24 12:11:20 | Wrapper (Version 3.1.2) http://wrapper.tanukisoftware.org
INFO | jvm 2 | 2007/01/24 12:11:20 |
INFO | jvm 2 | 2007/01/24 12:11:20 | 0 [WrapperSimpleAppMain] INFO com.servoy.j2db.util.Debug - Loading servoy.properties from C:\Program Files\Servoy\servoy.properties
INFO | jvm 2 | 2007/01/24 12:11:20 |
INFO | jvm 2 | 2007/01/24 12:11:20 | WrapperSimpleApp: Encountered an error running main: java.lang.NoClassDefFoundError: javax/crypto/Cipher
INFO | jvm 2 | 2007/01/24 12:11:20 | java.lang.NoClassDefFoundError: javax/crypto/Cipher
INFO | jvm 2 | 2007/01/24 12:11:20 | at com.servoy.j2db.util.Settings.load(Unknown Source)
INFO | jvm 2 | 2007/01/24 12:11:20 | at com.servoy.j2db.util.Settings.load(Unknown Source)
INFO | jvm 2 | 2007/01/24 12:11:20 | at com.servoy.j2db.server.ApplicationServer.main(Unknown Source)
INFO | jvm 2 | 2007/01/24 12:11:20 | at java.lang.reflect.Method.invoke(Native Method)
INFO | jvm 2 | 2007/01/24 12:11:20 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:136)
INFO | jvm 2 | 2007/01/24 12:11:20 | at java.lang.Thread.run(Unknown Source)
STATUS | wrapper | 2007/01/24 12:11:22 | on_exit trigger matched. Restarting the JVM. (Exit code: 1)

Anyone know what’s going on?

Are you sure the services that is created on your Windows 2003 machine is created by Servoy 3.1? and not by a previous version of Servoy?

you can install or uninstall the services again, by looking into the folder: Servoy\service

create a install batch-file:

"C:\Programs\Servoy\service\Wrapper.exe" -i "C:\Programs\Servoy\service\wrapper.conf"
pause

create a un-install batch-file:

"C:\Programs\Servoy\service\Wrapper.exe" -r "C:\Programs\Servoy\service\wrapper.conf"
pause

adjust the path to your own Servoy folder.
Hope this helps

javax/crypto/Cipher is for sure present in Java 6, but are you sure you run with Java 6? is Java 6 the only install?

Thank you all for your help. This was indeed due to an older version of Java lurking in the Oracle directory on the server, however there’s a twist.

I had noticed this older java directory was present in the path. I used the path command on the command line to remove that directory from the path but still the Servoy Service still failed to start up, giving the error cited above.

It was only when I modified the path environment var in the System Properties and restarted the server that the Servoy Service started correctly.