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

TomEE and Java 17 compatibility issue with Windows Service Tooling

Attach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment Visibility
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 8.0.8
    • 8.0.10
    • TomEE Core Server

    Description

      Getting below error when starting TomEE with Java 17 

      [2021-12-29 15:08:48] [2021-12-29 15:08:53] [debug] ( prunsrv.c:1763) [38924] Apache Commons Daemon procrun log initialized.
      [2021-12-29 15:08:53] [info]  ( prunsrv.c:1767) [38924] Apache Commons Daemon procrun (1.2.2.0 64-bit) started.
      [2021-12-29 15:08:53] [info]  ( prunsrv.c:1677) [38924] Running Service 'TomEE'...
      [2021-12-29 15:08:53] [debug] ( prunsrv.c:1448) [25324] Inside ServiceMain...
      [2021-12-29 15:08:53] [debug] ( prunsrv.c:910 ) [25324] reportServiceStatusE: dwCurrentState = 2, dwWin32ExitCode = 0, dwWaitHint = 3000, dwServiceSpecificExitCode = 0.
      [2021-12-29 15:08:53] [info]  ( prunsrv.c:1203) [25324] Starting service...
      [2021-12-29 15:08:53] [debug] ( javajni.c:216 ) [25324] Explicit RuntimeLib specified 'C:\Program Files\Java\OpenJDK17\bin\server\jvm.dll'
      [2021-12-29 15:08:53] [debug] ( javajni.c:285 ) [25324] loading jvm 'C:\Program Files\Java\OpenJDK17\bin\server\jvm.dll'
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[0] -javaagent:C:\Program Files\TomEE\lib\openejb-javaagent.jar
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[1] -Dcatalina.base=C:\Program Files\TomEE
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[2] -Dcatalina.home=C:\Program Files\TomEE
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[3] -Djava.io.tmpdir=C:\Program Files\TomEE\temp
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[4] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[5] -Djava.util.logging.config.file=C:\Program Files\TomEE\conf\logging.properties
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[6] -Djava.awt.headless=true
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[7] -XX:MaxPermSize=256M
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[8] -XX:+HeapDumpOnOutOfMemoryError
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[9] -enableassertions
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[10] -enablesystemassertions
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[11] -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:9000
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[12] -Dcom.sun.management.jmxremote.port=8686
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[13] -Dcom.sun.management.jmxremote.ssl=false
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[14] -Dcom.sun.management.jmxremote.authenticate=false
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[15] -Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=true
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[16] -DCORDYS_HOME=C:\Program Files\OpenText\AppWorksPlatform\defaultInst
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[17] -Dfile.encoding=UTF-8
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[18] -Djava.class.path=C:\Program Files\TomEE\bin\bootstrap.jar;C:\Program Files\TomEE\bin\tomcat-juli.jar;C:\Program Files\TomEE\bin\tomcat-juli.jar
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[19] exit
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[20] abort
      [2021-12-29 15:08:53] [debug] ( javajni.c:795 ) [34808] Jvm Option[21] -Xmx4096m
      [2021-12-29 15:08:53] [error] ( javajni.c:806 ) [34808] CreateJavaVM Failed with error [-6]
      [2021-12-29 15:08:53] [error] ( javajni.c:806 ) [34808] The system cannot find the file specified.
      [2021-12-29 15:08:53] [debug] ( javajni.c:1057) [34808] Java Worker thread finished : with status = 2
      [2021-12-29 15:08:53] [error] ( prunsrv.c:1258) [25324] Failed to start Java
      [2021-12-29 15:08:53] [error] ( prunsrv.c:1611) [25324] ServiceStart returned 4.
      [2021-12-29 15:08:53] [debug] ( prunsrv.c:910 ) [25324] reportServiceStatusE: dwCurrentState = 1, dwWin32ExitCode = 1066, dwWaitHint = 0, dwServiceSpecificExitCode = 4.
      [2021-12-29 15:08:53] [info]  ( prunsrv.c:1679) [38924] Run service finished.
      [2021-12-29 15:08:53] [info]  ( prunsrv.c:1848) [38924] Apache Commons Daemon procrun finished.

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rzo1 Richard Zowalla
            9177012889 Yugandher reddy vonteddu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment