You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a hack from a WildFly contributor helping me to figure this out. The "org.jboss.modules.ModuleClassLoader" is the correct classloader to use for this case. Maybe we need to have some logic to try various classloaders from a list until we find one that correct loads the default properties file resource. There should be some default values for classloaders to try, including the jboss modules classloader, but this should probably also be something the end user can configure to add additional classloader names in case they require some other classloader, ex. if their application/framework/webserver has some other similar module-like loading system.
As seen here, for example: https://github.com/cryostatio/cryostat/pull/660/files#diff-80091271b0c4b29825c64e3803935b6ca838e5e9434a029100fb9a946f1ee19cR30
Using
MODULE_OPTS
to load the Cryostat Agent works fine and the Agent does initialize successfully, but it fails to load any of its own default configuration values from https://github.com/cryostatio/cryostat-agent/blob/main/src/main/resources/META-INF/microprofile-config.properties . Every single configuration must be supplied to the Agent, ex. by environment variable, even if just to set the value to the same as the intended default.The text was updated successfully, but these errors were encountered: