payara / Payara

Payara Server is an open source middleware platform that supports reliable and secure deployments of Java EE (Jakarta EE) and MicroProfile applications in any environment: on premise, in the cloud or hybrid.
http://www.payara.fish
Other
883 stars 306 forks source link

Bug Report: Can't set values for configs.config.server-config.ejb-container by postboot comand file/FISH-5784 #5428

Open ehurmuzov opened 3 years ago

ehurmuzov commented 3 years ago

Description


Can't set values for configs.config.server-config.ejb-container by postboot comand file. This works with asadmin comands. Not working with payara/server-full:5.2021.7-jdk11, payara/server-full:5.2021.7, payara/server-full:5.2021.6-jdk11 too.

Expected Outcome

configs.config.server-config.ejb-container.pool-resize-quantity=2 configs.config.server-config.ejb-container.max-pool-size=120 configs.config.server-config.ejb-container.steady-pool-size=10

Current Outcome

Boot Command set failed PlainTextActionReporterFAILURENo configuration found for configs.config.server-config.ejb-container

Steps to reproduce

Dockerfile

FROM payara/server-full:5.2021.7-jdk11 COPY commands.asadmin $POSTBOOT_COMMANDS

commands.asadmin

set configs.config.server-config.ejb-container.pool-resize-quantity=2 set configs.config.server-config.ejb-container.max-pool-size=120 set configs.config.server-config.ejb-container.steady-pool-size=10

docker build

docker build -t rs/cashier:1.0.0-jdk11 .

docker run

docker run -it -p 8080:8080 -p 4848:4848 rs/cashier:1.0.0-jdk11

Environment

shub8968 commented 3 years ago

Hi @ehurmuzov, I am able to reproduce this issue. I have raised an internal issue with JIRA FISH-5784. Thanks. It may take a while to fix the issue. You are free to submit a PR to fix this issue if you feel confident to do so.

Netskeh commented 1 year ago

Update: This still exists in:

I only tested the most recent payara 6 server. I assume it would be the same for previous versions.

Has someone found a solution / workaround to this? What I tried so far, is setting the values into the default-config, in hopes of them being used as a reference. That was not the case.