-
Notifications
You must be signed in to change notification settings - Fork 713
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
fitnesse.slim.instructions.SystemExitSecurityManager
triggers NoClassDefFoundError
issue
#1386
Comments
Can you share a sample On a side note: can you give some background why you create a sprint-boot application including FitNesse? In my understanding sprint-boot is a tool to easily create a Java command line application or web application with server. And FitNesse already is a standalone application that you can either use as a command line tool to run tests or as a web server. Why not put that directly in a docker container, what does sprint-boot add? |
Thank you for your response. It is a requirement for the organization's platform that all apps are build from a specific docker image in CI/CD pipeline. The app contains a The I am fine with closing this ticket. The ticket will serve as a note for future reference. |
If I recall correctly sprint boot uses a special/custom classloader. I suspect something goes wrong in the interactions between the FitNesse and Spring classloading. |
Describe the bug
fitnesse.slim.instructions.SystemExitSecurityManager
triggersNoClassDefFoundError
issues in a dockerized spring-bootSlimServer
on JDK11.Thanks to the
prevent.system.exit=false
system property, there is a workaround.Fitnesse is included as maven dependency in my spring-boot app.
Workaround
In my docker build, I have the option to add an environment variable
JAVA_OPTS -Dprevent.system.exit=false
to skip
fitnesse.slim.instructions.SystemExitSecurityManager
.Or else dynamic class loading fails with
NoClassDefFoundError
in a dockerized spring-boot SlimServer.Stack Trace
The text was updated successfully, but these errors were encountered: