-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Jetty start module property values with ${expr} are not being expanded #11408
Comments
There's something fishy about your configuration. Look for anything in your Can you document what steps you used to initialize your jetty.base? |
I have no To initialize, I added the modules using add-module, set up ssl and installed a webapp. |
From just starting a jetty-base:
|
Ah, you filtered the output of Let me give this a try. |
I am able to replicate. Setup fresh jetty.base directory
Show configuration
The property values are not having their
|
A smaller example ...
|
This would be a new feature, as that kind of expansion isn't being performed in Jetty 9/10/11 either.
So we either implement support for this kind of expansion, or revert the configurations in the In Jetty 12.0.6, the following mod files would need to be fixed ...
|
My workaround right now is to use use an absolute path for webdefaults-ee10.xml, the only place where this has been an issue for me so far. Could I use something better? |
as long as your
that should work, as that path would then be relative to your |
Thanks,. I prefer to start in production by adapting the script in bin/jetty.sh to authbind and change user. Things are working for me now and I'll wait for 12.0.7. |
If a property belonged to an Environment, then that property value was not expanded.
Opened PR #12169 to fix this. |
Jetty version(s)
12.0.6
Jetty Environment
ee10
Java version/vendor
(use: java -version)
openjdk version "17.0.10" 2024-01-16
OpenJDK Runtime Environment (build 17.0.10+7-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 17.0.10+7-Debian-1deb11u1, mixed mode, sharing)
OS type/version
Devuan Chimaera
Description
${jetty.base} is not expanded in ee10-deploy.ini
How to reproduce?
ee10-deploy.ini contains
jetty.deploy.defaultsDescriptorPath=${jetty.base}/etc/webdefault-ee10.xml
java -jar ../jetty-home-12.0.6/start.jar --list-config
shows jetty.base is found:But in a trace Jetty is not opening the correct file:
The text was updated successfully, but these errors were encountered: