Skip to content

docs: document license-check Java prefs workaround#5585

Open
mcollovati wants to merge 1 commit into
mainfrom
docs/document-java-preferences-issue-in-protected-envs
Open

docs: document license-check Java prefs workaround#5585
mcollovati wants to merge 1 commit into
mainfrom
docs/document-java-preferences-issue-in-protected-envs

Conversation

@mcollovati
Copy link
Copy Markdown
Contributor

The Vaadin license checker uses the Java Preferences API during license validation. In hardened environments where the JVM user has no writable home directory -- for example, a locked-down Tomcat service user on Linux -- the JVM repeatedly logs "Could not lock User prefs" warnings.

Add a troubleshooting entry under the License documentation that describes the symptom and the standard JVM workaround: setting the -Djava.util.prefs.userRoot system property to a writable directory. The entry also notes that Windows and macOS use different backing stores and aren't affected.

The Vaadin license checker uses the Java `Preferences` API during
license validation. In hardened environments where the JVM user has
no writable home directory -- for example, a locked-down Tomcat
service user on Linux -- the JVM repeatedly logs "Could not lock
User prefs" warnings.

Add a troubleshooting entry under the License documentation that
describes the symptom and the standard JVM workaround: setting the
`-Djava.util.prefs.userRoot` system property to a writable directory.
The entry also notes that Windows and macOS use different backing
stores and aren't affected.
@github-actions
Copy link
Copy Markdown

Preview Deployment

This PR has been deployed for preview.

URL: https://docs-preview-pr-5585.fly.dev

Built from e6e0fe1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: 🔎Iteration reviews

Development

Successfully merging this pull request may close these issues.

2 participants