[LF7.4] Liferay doesn't start as windows service

Tinfo Tinfo, modified 2 Years ago. New Member Posts: 14 Join Date: 5/14/20 Recent Posts

Hello,

today i was trying to configure a clean Liferay 7.4 portal to start as a service on Windows Server 2022, i followed the same steps used to configure Liferay 6.2.5 and generic Tomcat servers as a service, and while the latters start without problems, Liferay 7.4 won't start showing the following error:

I used this command to install the service:

C:\Portals\liferay-ce-portal-7.4.3.59-ga59_clean\tomcat-9.0.68\bin>service.bat install liferay74_59_clean
Installing the service 'liferay74_59_clean' ...
Using CATALINA_HOME:    "C:\Portals\liferay-ce-portal-7.4.3.59-ga59_clean\tomcat-9.0.68"
Using CATALINA_BASE:    "C:\Portals\liferay-ce-portal-7.4.3.59-ga59_clean\tomcat-9.0.68"
Using JAVA_HOME:        "C:\Program Files\Java\jdk1.8.0_211"
Using JRE_HOME:         "C:\Program Files\Java\jdk1.8.0_211\jre"
Using JVM:              "C:\Program Files\Java\jdk1.8.0_211\jre\bin\server\jvm.dll"
The service 'liferay74_59_clean' has been installed.

If i try to start the portal with startub.bat in tomcat/bin folder all works without problems, so it's something relative to the launch as windows service.

Anyone have an idea of what's going wrong?

Thanks.