Elastic APM agent not getting started after adding it into Weblogic startup script

Seems to be the same issue than this one: APM Agent does not start