[infinispan-issues] [JBoss JIRA] (ISPN-11737) Server Loader will not load the additional (user) libs if the server-root is set

Wolf-Dieter Fink (Jira) issues at jboss.org
Tue Apr 28 09:56:18 EDT 2020


Wolf-Dieter Fink created ISPN-11737:
---------------------------------------

             Summary: Server Loader will not load the additional (user) libs if the server-root is set
                 Key: ISPN-11737
                 URL: https://issues.redhat.com/browse/ISPN-11737
             Project: Infinispan
          Issue Type: Bug
            Reporter: Wolf-Dieter Fink


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




--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list