Skip to content

Update custom.properties #1769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update custom.properties #1769

wants to merge 1 commit into from

Conversation

lsiepel
Copy link
Contributor

@lsiepel lsiepel commented Jul 19, 2025

This shows what i try to achieve, but obviously it fails. I would like to add this entry into the list for the config.properties. But it looks like that file is created on the fly and we have no control over it?

So i started looking at the custom.properties file and tried to extend the exists set of values for this proeprty, but it fails. Any suggestions on how we can add this package ?

recursive variable reference: org.osgi.framework.system.packages.extra
Error occurred shutting down framework: java.lang.IllegalArgumentException: recursive variable reference: org.osgi.framework.system.packages.extra

Related to: openhab/openhab-addons#18983
Related to: openhab/openhab-addons#18986

@@ -5,6 +5,8 @@ karaf.lock.dir=${karaf.data}/tmp
karaf.shutdown.port.file=${karaf.data}/tmp/port
karaf.pid.file=${karaf.data}/tmp/karaf.pid

org.osgi.framework.system.packages.extra=${org.osgi.framework.system.packages.extra},sun.security.pkcs11
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if you use

Suggested change
org.osgi.framework.system.packages.extra=${org.osgi.framework.system.packages.extra},sun.security.pkcs11
org.osgi.framework.system.packages.extra=sun.security.pkcs11

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It overwrites the existing value (multiple packages) set in the config.properties. Karaf won’t start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting other PR Depends on another PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants