]
Pedro Ruivo updated ISPN-11737:
-------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 10.1.7.Final
11.0.0.Dev05
Resolution: Done
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
Components: Server
Affects Versions: 11.0.0.Dev04, 10.1.6.Final
Reporter: Wolf-Dieter Fink
Assignee: Tristan Tarrant
Priority: Major
Fix For: 10.1.7.Final, 11.0.0.Dev05
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