-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
ClassNotFoundException when using custom appenders in OSGi projects #72
Comments
simonzn
added a commit
to simonzn/reload4j
that referenced
this issue
Mar 13, 2024
Adds the buddy policy 'registered' to the manifest so that custom appenders provided by OSGi bundles can be loaded via buddy class loading. The providing bundle must define a corresponding Eclipse-RegisterBuddy header. Closes qos-ch#72
simonzn
added a commit
to simonzn/reload4j
that referenced
this issue
Mar 13, 2024
Adds the buddy policy 'registered' to the manifest so that custom appenders provided by OSGi bundles can be loaded via buddy class loading. The providing bundle must define a corresponding Eclipse-RegisterBuddy header. Closes qos-ch#72
simonzn
added a commit
to simonzn/reload4j
that referenced
this issue
Apr 16, 2024
Adds the buddy policy 'registered' to the manifest so that custom appenders provided by OSGi bundles can be loaded via buddy class loading. The providing bundle must define a corresponding Eclipse-RegisterBuddy header. Closes qos-ch#72 Signed-off-by: Simon Zilliken <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Due to classpath separation in OSGi based projects, loading of custom Appenders fails with e.g.
The manifest should define a buddy policy to enable buddy class loading, as described in Context Class Loader Enhancements.
I'd suggest to add
Eclipse-BuddyPolicy: registered
. Then, the issue above is fixed by addingEclipse-RegisterBuddy: org.apache.log4j
to the bundle that provides the custom appender.The text was updated successfully, but these errors were encountered: