Skip to content

LDEV-6267 relocate shaded ehcache classes to prevent OSGi ClassCastException#47

Merged
zspitzer merged 1 commit into
lucee:5.6from
zspitzer:LDEV-6267-ehcache-relocation
Apr 15, 2026
Merged

LDEV-6267 relocate shaded ehcache classes to prevent OSGi ClassCastException#47
zspitzer merged 1 commit into
lucee:5.6from
zspitzer:LDEV-6267-ehcache-relocation

Conversation

@zspitzer
Copy link
Copy Markdown
Member

Summary

  • Relocate net.sf.ehcache.* to org.lucee.extension.orm.hibernate.shaded.net.sf.ehcache.* via maven-shade-plugin relocation
  • Prevents ClassCastException when ehcache Lucee extension is also installed (both bundles loaded the same classes from different OSGi BundleClassLoaders)
  • Hibernate extension stays fully self-contained — no dependency on the ehcache extension

Test plan

  • test7.bat — 0 failures, 0 errors (Lucee 7.0)
  • test-ehcache039.bat — 0 failures, 0 errors on 6.2, 7.0, 7.1 with org.lucee:ehcache-extension:2.10.0.39 (the problematic dual-jar build) installed alongside

@zspitzer zspitzer merged commit 8d0bbfe into lucee:5.6 Apr 15, 2026
9 checks passed
@zspitzer zspitzer deleted the LDEV-6267-ehcache-relocation branch April 15, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant