Details
Description
TomEE 7.0.6 Windows service created using the included bin/service.bat fails to start when using a 32-bit JVM.
Steps to reproduce:
- Download TomEE plus 7.0.6 ZIP (21 Jun 2019) from http://tomee.apache.org/download-ng.html
- Extract ZIP to C:\
- Open command prompt as administrator
- cd to C:\apache-tomee-plus-7.0.6\bin
- In command prompt, enter the following, one by one, in order.
- SET JAVA_HOME=<path to 32-bit JDK>, e.g., SET JAVA_HOME=C:\Program Files (x86)\jdk1.8.0_212
- SET PROCESSOR_ARCHITECTURE=X86
(forces use of TomEE.x86.exe instead of TomEE.amd64.exe for the Windows service) - service.bat install
- Open Windows services and try to start the "Apache TomEE" service created by the previous step. The following error appears.
There is no substantial information in the Windows system event log.
The same steps work fine to create and start the TomEE Windows service in the same exact environment for all of the following scenarios:
- 64-bit JVM instead of 32-bit
- TomEE 7.0.5 plus instead of 7.0.6
- If TomEE.x86.exe is replaced with the same file from TomEE 7.0.5 plus (implies the issue is with this file)