Originally created by @semistone on GitHub (Jul 8, 2024).
When we use pkl config in Java SprintBoot application
We will get error
Caused by: org.pkl.core.PklException: –– Pkl Error ––
Refusing to load module `jar:nested:/app.jar/!BOOT-INF/classes/!/config/dev.pkl` because it does not match any entry in the module allowlist (`--allowed-modules`).
it's because jar:nested isn't include in allow-modules.
we could fix it by add it into allowModules and change defaultTrustLevel, but how about add jar:nested into java default configuration?
Originally created by @semistone on GitHub (Jul 8, 2024).
When we use pkl config in Java SprintBoot application
We will get error
```
Caused by: org.pkl.core.PklException: –– Pkl Error ––
Refusing to load module `jar:nested:/app.jar/!BOOT-INF/classes/!/config/dev.pkl` because it does not match any entry in the module allowlist (`--allowed-modules`).
```
it's because jar:nested isn't include in allow-modules.
we could fix it by add it into allowModules and change defaultTrustLevel, but how about add jar:nested into java default configuration?
I used plain Pkl to load non spring configuration
and the application.jar is build by
./gradle assemble
that issue is because the pkl file is in
app.jar:!BOOT-INF/classes/
jar tfv application.jar|grep pkl
...
1429 Wed Oct 30 06:25:00 JST 2024 BOOT-INF/classes/application.pkl
396 Wed Oct 30 06:25:00 JST 2024 BOOT-INF/classes/application-local.pkl
@semistone commented on GitHub (Oct 30, 2024):
I used plain Pkl to load non spring configuration
and the application.jar is build by
./gradle assemble
that issue is because the pkl file is in
app.jar:!BOOT-INF/classes/
```
jar tfv application.jar|grep pkl
...
1429 Wed Oct 30 06:25:00 JST 2024 BOOT-INF/classes/application.pkl
396 Wed Oct 30 06:25:00 JST 2024 BOOT-INF/classes/application-local.pkl
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @semistone on GitHub (Jul 8, 2024).
When we use pkl config in Java SprintBoot application
We will get error
it's because jar:nested isn't include in allow-modules.
we could fix it by add it into allowModules and change defaultTrustLevel, but how about add jar:nested into java default configuration?
@odenix commented on GitHub (Oct 28, 2024):
@semistone Are you using https://github.com/apple/pkl-spring or plain Pkl?
@semistone commented on GitHub (Oct 30, 2024):
I used plain Pkl to load non spring configuration
and the application.jar is build by
./gradle assemble
that issue is because the pkl file is in
app.jar:!BOOT-INF/classes/