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

TOMEE-4189 - java.lang.ClassNotFoundException: org.apache.openejb.loader.SystemInstance #1025

Merged
merged 1 commit into from Mar 17, 2023

Conversation

rzo1
Copy link
Contributor

@rzo1 rzo1 commented Feb 27, 2023

What does this PR do?

The classpath for the version command of ./catalina[.sh|.bat] does only contain

 -classpath "$CATALINA_HOME/lib/catalina.jar"  org.apache.catalina.util.ServerInfo

Thus, our reflection code introduced with 7ce518e and 14a034c will fail with a ClassNotFoundException as openejb-core isn't available in the given classpath.

However, this is the only occurence within ./catalina[.sh|.bat] , so it should be ok to adjust the classpath for the given command only.

Copy link
Contributor

@cesarhernandezgt cesarhernandezgt left a comment

Choose a reason for hiding this comment

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

Thank you @rzo1 .
I tested the PR and tested ./bin/catalina.sh version and now no java.lang.ClassNotFoundException were found.

@cesarhernandezgt cesarhernandezgt merged commit 58e02f2 into apache:tomee-8.x Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants