Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-3767

Server Loader will not load the additional (user) libs if the server-root is set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • RHDG 8.0.1 GA
    • RHDG 8.0 GA
    • Server
    • None
    • DataGrid Sprint #44

      The Loader class will set the classpath for the server to load the provided classes from $ISPN_HOME/lib and $ISPN_HOME/<server-root>/lib for additional.
      This works if the default is used and not overriden with the 's' or '-server-root' command line option.
      If a different server-root is used the additional classes are still loaded unexpected from server/lib.
      As well the start will fail with an exception if the 'server' directory is moved to a different name or server/lib does not exists

      $ rm -fr server/lib
      $ bin/server.sh -n node2 -o 100 -s myNode
      Exception in thread "main" java.lang.RuntimeException: java.nio.file.NoSuchFileException: /srv/infinispan/11.0.0/node2/server/lib
      at org.infinispan.server.loader.Loader.classLoaderFromPath(Loader.java:91)
      at org.infinispan.server.loader.Loader.run(Loader.java:50)
      at org.infinispan.server.loader.Loader.main(Loader.java:39)
      Caused by: java.nio.file.NoSuchFileException: /srv/infinispan/11.0.0/node2/server/lib
      at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
      at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
      at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
      at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
      at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144)
      at sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
      at java.nio.file.Files.readAttributes(Files.java:1737)
      at java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:219)
      at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
      at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322)
      at java.nio.file.FileTreeIterator.<init>(FileTreeIterator.java:72)
      at java.nio.file.Files.walk(Files.java:3574)
      at java.nio.file.Files.walk(Files.java:3625)
      at org.infinispan.server.loader.Loader.classLoaderFromPath(Loader.java:67)
      ... 2 more

              ttarrant@redhat.com Tristan Tarrant
              rhn-support-wfink Wolf Fink
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: