Skip to content
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

Liberty fails to start when passing -Djava.security.manager=allow in Java 24+ #30453

Open
gjwatts opened this issue Dec 21, 2024 · 0 comments · May be fixed by #30454
Open

Liberty fails to start when passing -Djava.security.manager=allow in Java 24+ #30453

gjwatts opened this issue Dec 21, 2024 · 0 comments · May be fixed by #30454

Comments

@gjwatts
Copy link
Member

gjwatts commented Dec 21, 2024

When attempting to start the Liberty Server in Java 24+ by passing in the JVM argument -Djava.security.manager=allow, the server fails to start because the JVM fails to start.

The messages in the logs looks like:

Server failed to start.   Command used to start server was: /home/ci/Build/workspace/ebcTestRunner/dev/autoFVT/image/output/wlp/bin/server
componenttest.exception.TopologyException: Start Server error: The server did not show kernel had started. The server did not show kernel had started. The standard error was: .
 Standard out was: 
Error occurred during initialization of VM
java.lang.Error: A command line option has attempted to allow or enable the Security Manager. Enabling a Security Manager is not supported.
	at java.lang.System.initPhase3(java.base@24-ea/System.java:1947)

.
 Return code was: 22.
 Message was not found in /home/ci/Build/workspace/ebcTestRunner/dev/autoFVT/image/output/wlp/usr/servers/com.ibm.ws.security.java2sec.fat.earAppJ2SecEnblRestricPerm/logs/console.log
	at componenttest.topology.impl.LibertyServer.validateServerStarted(LibertyServer.java:2918)
	at componenttest.topology.impl.LibertyServer.startServerWithArgs(LibertyServer.java:1974)
	at componenttest.topology.impl.LibertyServer.startServerAndValidate(LibertyServer.java:1515)
	at componenttest.topology.impl.LibertyServer.startServerAndValidate(LibertyServer.java:1497)
	at componenttest.topology.impl.LibertyServer.startServerAndValidate(LibertyServer.java:1484)
	at componenttest.topology.impl.LibertyServer.startServer(LibertyServer.java:1235)
        ...
@gjwatts gjwatts self-assigned this Dec 21, 2024
@gjwatts gjwatts linked a pull request Dec 21, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant