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

When ActiveJDBC cache is used, both EHcache v2 and 3 need to be on the classpath #1281

Open
ipolevoy opened this issue Apr 10, 2023 · 0 comments

Comments

@ipolevoy
Copy link
Member

if just EHcache v3 is on the classpath, it results in the exception below.

The class net/sf/ehcache/ObjectExistsException si only part of Ehcache 2.

java.lang.NoClassDefFoundError: net/sf/ehcache/ObjectExistsException

	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:375)
	at org.javalite.activejdbc.cache.QueryCache.<init>(QueryCache.java:52)
	at org.javalite.activejdbc.cache.QueryCache.<clinit>(QueryCache.java:36)
	at org.javalite.activejdbc.Registry.cacheManager(Registry.java:85)
	at org.javalite.activejdbc.cache.CacheEventSquasher.close(CacheEventSquasher.java:85)
	at org.javalite.activejdbc.Model.save(Model.java:2747)
	at org.javalite.activejdbc.Model.saveIt(Model.java:2667)
	at org.javalite.activejdbc.Model.addOne2ManyChild(Model.java:2571)
	at org.javalite.activejdbc.Model.add(Model.java:2548)
@ipolevoy ipolevoy self-assigned this Apr 10, 2023
@ipolevoy ipolevoy changed the title Whwn ActiveJDBC cache is used, botjh EHcache v2 and 3 need to be on the classpath When ActiveJDBC cache is used, botjh EHcache v2 and 3 need to be on the classpath Apr 10, 2023
@ipolevoy ipolevoy changed the title When ActiveJDBC cache is used, botjh EHcache v2 and 3 need to be on the classpath When ActiveJDBC cache is used, bot\h EHcache v2 and 3 need to be on the classpath Apr 10, 2023
@ipolevoy ipolevoy changed the title When ActiveJDBC cache is used, bot\h EHcache v2 and 3 need to be on the classpath When ActiveJDBC cache is used, both EHcache v2 and 3 need to be on the classpath Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant