Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-10794

Webapp fails to start on Java 9

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 24.0.0
    • Fix Version/s: 24.0.0
    • Component/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Epic Link:
    • Sprint:
      Horizon - March 20th 2019, Horizon - March 27th 2019

      Description

      Testing with OpenJDK 9.0.4 downloaded from: https://jdk.java.net/archive/

      Configured Java run-time using: $OPENNMS_HOME/bin/runjava -S /root/bin/jdk-9.0.4/bin/java -f

      Started OpenNMS. Webapp in unavailable.

      From jetty-server.log:

      2019-03-20 15:11:47,737 WARN  [Main] o.e.j.w.WebAppContext: Failed startup of context o.e.j.w.WebAppContext@3afe58d6{ROOT,/,file:///opt/opennms/jetty-webapps/ROOT/,UNAVAILABLE}{/opt/opennms/jetty-webapps/ROOT}
      java.nio.file.NoSuchFileException: /root/bin/jdk-9.0.4/../lib/tools.jar
              at sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) ~[?:?]
              at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]
              at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) ~[?:?]
              at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55) ~[?:?]
              at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:145) ~[?:?]
              at sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99) ~[?:?]
              at java.nio.file.Files.readAttributes(Files.java:1755) ~[?:?]
              at java.util.zip.ZipFile$Source.get(ZipFile.java:951) ~[?:?]
              at java.util.zip.ZipFile.<init>(ZipFile.java:216) ~[?:?]
              at java.util.zip.ZipFile.<init>(ZipFile.java:148) ~[?:?]
              at java.util.jar.JarFile.<init>(JarFile.java:324) ~[?:?]
              at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:103) ~[?:?]
              at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:72) ~[?:?]
              at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:84) ~[?:?]
              at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:125) ~[?:?]
              at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:92) ~[?:?]
              at org.eclipse.jetty.webapp.MetaInfConfiguration.getTlds(MetaInfConfiguration.java:438) ~[jetty-webapp-9.4.14.v20181114.jar:9.4.14.v20181114]
              at org.eclipse.jetty.webapp.MetaInfConfiguration.scanForTlds(MetaInfConfiguration.java:355) ~[jetty-webapp-9.4.14.v20181114.jar:9.4.14.v20181114]
      

        Attachments

          Activity

            People

            • Assignee:
              cpape Christian Pape
              Reporter:
              j-white Jesse White
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: