I have Guava class loading issues and can resolve all issues by adding a glassfish-web.xml
as stated in the official documentation.
However I don't want to add a not backward compatible glassfish-web.xml
(deployment on Glassfish 3.1.2.2 is not working) and activate this class loading within Payara 162 itself as stated in the official documentation and the blog article to release 162.
I didn't find an exact specification on how to set this system property and as no way is working currently I simply tried all individually.
asadmin create-jvm-options --target server-config -Dfish.payara.classloading.delegate=false
asadmin create-system-properties --target domain fish.payara.classloading.delegate=false
asadmin create-system-properties --target server fish.payara.classloading.delegate=false
asadmin create-system-properties --target server-config fish.payara.classloading.delegate=false
None of this ways worked.
It's a feature, not a bug :(
As mentioned by the developer it is intended for WARs to not obey the global system setting. The only way to achieve this for WARs is to add the configuration in the glassfish-web.xml.