After sorting through class loader issues.. I come to the phase where Wildfly deploys e application. shuts it down then redeploys it indefinitely. I am triyng to find in the TRACE logs the reason for this. I think I am missing a key detail to how a Global DIrectory should be used.
I am currently attempting to use a Global Directory.
I am running wildfly in docker.
step 0: Starting point: I have my artifacts working properly
Step 1: Create the directoryL
mkdir /opt/jboss/wildfly/lib
Step 2:
copy the deplendecy and all of the jars the dependency requires into the global
Step 2: Configure the global directory:
bash /opt/jboss/wildfly/bin/jboss-cli.sh -c "/subsystem=ee/global-directory=globaLib:add(path=lib, relative-to=jboss.home.dir)"
Step 3: stop/start docker container
my application works
Step 4. Manually remove the jar that the application has locally that I want to be pulled from the global directory.
The artifact is started up: I can see startup operation logged. Then immediately shut down. I can see the teardown steps being logged.
I turned on trace and I see this: What I can not find is the reason the update action is found.
18:41:12,549 DEBUG [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) Deployment scan of [/opt/jboss/wildfly/standalone/deployments] found update action [{
"operation" => "full-replace-deployment",
"address" => [],
"name" => "services-integrations-1.0-SNAPSHOT.ear",
"content" => [{"url" => "file:/opt/jboss/wildfly/standalone/deployments/services-integrations -1.0-SNAPSHOT.ear"}],
"persistent" => false,
"owner" => [
("subsystem" => "deployment-scanner"),
("scanner" => "default")
],
"enabled" => true
}]
I did notice a message that I did not understand:
the result of AuthorizeAttributeReadHandler was false
18:41:12,407 TRACE [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) Final response for step handler org.jboss.as.controller.operations.global.ReadAttributeHandler$AuthorizeAttributeReadHandler@46d0d025 handling read-attribute in address [("deployment" => "services-publisher-integrations-swfactivity-1.0-SNAPSHOT.ear")] is {
"outcome" => "success",
"result" => false
}
Has anyone used global directories in this way? Am I missing a step?
When trouble shooting issues like this: Are there specific log levels that are useful to turn up: I am new to this and setting the root logger's Level to TRACE.