Install and start Ubisecure SSO Tomcat and Accounting Service as Windows Services gives error

Install and start Ubisecure SSO Tomcat and Accounting Service as Windows Services gives error

Problem

When installing SSO9 , install.cmd prints error: “A service specific error occurred: 4”

Run install.cmd script to install the Ubisecure SSO Tomcat as a service. Since v. SSO 8.4 install.cmd also installs Accounting Service as Windows service.

cd "C:\Program Files\Ubisecure\ubilogin-sso\ubilogin\config\tomcat" .\install.cmd

Error

The UbisecureAccounting service is starting. The UbisecureAccounting service could not be started. A service specific error occurred: 4. More help is available by typing NET HELPMSG 3547. UbisecureAccounting updated at https://localhost:8442/accounting/ The UbiloginServer service is starting. The UbiloginServer service could not be started. A service specific error occurred: 4. More help is available by typing NET HELPMSG 3547. UbiloginServer updated at https://localhost:8443/ubilogin/


Solution

  • When JAVA11 is installed using Eclipse Adoptium exe, it creates JAVA_HOME variable in Windows machine with \ in the end ( C:\Program Files\Eclipse Adoptium\jdk-11.0.14.9-hotspot\ )

  • For successful SSO services installation, JAVA_HOME environment variable value should not end with \

  • Go to Control Panel → System and Security → System → Advanced system settings → Environment Variables → System Variables and remove \ from end of JAVA_HOME value.

    JAVA_HOME should look like as below :