-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
javax.naming.NameNotFoundException
thrown at application startup
#130
Comments
The purpose of the JNDI property is to set a different cache manager name, in case you run multiple applications with cache2k within one tomcat instance. When nothing is set, this should be ignored. Seems like you found a bug. Sorry for that. Will correct that ASAP. |
You could simply set the JNDI property I will do an update, so this gets silently ignored. Maybe I drop JNDI in the futures, since I think not many are using this. |
Ok, thanks. Yeah, I think you can simply catch |
Trying to release but unfortunately, I am getting timeouts from Sonatype for the Maven central upload at the moment. |
Verison 1.2.4.Final is released now with this fix. |
Excellent, thanks for the crazy fast response |
Bumped cache2k to latest version to avoid stacktrace at application startup (bug fixed in 1.2.4) cache2k/cache2k#130
Bumped cache2k to latest version to avoid stacktrace at application startup (bug fixed in 1.2.4) cache2k/cache2k#130
Bumped cache2k to latest version to avoid stacktrace at application startup (bug fixed in 1.2.4) cache2k/cache2k#130 (cherry picked from commit 2260eff)
Bumped cache2k to latest version to avoid stacktrace at application startup (bug fixed in 1.2.4) cache2k/cache2k#130 (cherry picked from commit 2260eff)
Bumped cache2k to latest version to avoid stacktrace at application startup (bug fixed in 1.2.4) cache2k/cache2k#130 (cherry picked from commit 2260eff)
When creating a cache via
Cache2kBuilder
, theCache2kCoreProviderImpl
tries to registerorg.cache2k.CacheManager.defaultName
through JNDI and it fails withjavax.naming.NameNotFoundException: Name [org.cache2k.CacheManager.defaultName] is not bound in this Context. Unable to find [org.cache2k.CacheManager.defaultName].
The application is running within Tomcat.
The application starts up without issues, but I would like to avoid having a stack trace at start time. Is there a way to disable this behaviour?
The text was updated successfully, but these errors were encountered: