Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-2570

TomEE Windows service does not start with 32-bit JVM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 7.0.6
    • 7.0.7, 7.1.2, 8.0.1
    • None
    • None
    • #1:
      Windows 10 Enterprise 64-bit version 1803
      Oracle JDK 1.8.0_212 32-bit
      TomEE plus 7.0.6
      ----------------
      #2:
      Windows Server 2019 64-bit
      Oracle JDK 1.8.0_211 32-bit
      TomEE plus 7.0.6

    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:

      1. Download TomEE plus 7.0.6 ZIP (21 Jun 2019) from http://tomee.apache.org/download-ng.html
      2. Extract ZIP to C:\
      3. Open command prompt as administrator
      4. cd to C:\apache-tomee-plus-7.0.6\bin
      5. In command prompt, enter the following, one by one, in order.
        1. SET JAVA_HOME=<path to 32-bit JDK>, e.g., SET JAVA_HOME=C:\Program Files (x86)\jdk1.8.0_212
        2. SET PROCESSOR_ARCHITECTURE=X86
          (forces use of TomEE.x86.exe instead of TomEE.amd64.exe for the Windows service)
        3. service.bat install
      6. 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)

      Attachments

        1. TomEE_32bit_win_service_error.PNG
          5 kB
          Ronak Patel
        2. TomEE.2019-07-12_nodebug.log
          2 kB
          Ronak Patel
        3. TomEE.2019-07-12_debug.log
          3 kB
          Ronak Patel
        4. TomEE_prunsrv_32bit_win_service_error.PNG
          5 kB
          Ronak Patel
        5. TomEE.2019-07-16_prunsrv_nodebug.log
          1 kB
          Ronak Patel

        Activity

          People

            jgallimore Jonathan Gallimore
            ronak.a.patel Ronak Patel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: