Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-11737

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 11.0.0.Dev05, 10.1.7.Final
    • 11.0.0.Dev04, 10.1.6.Final
    • Server
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: