`javax.naming.NameNotFoundException` thrown at application startup
See original GitHub issueWhen creating a cache via Cache2kBuilder
, the Cache2kCoreProviderImpl
tries to register org.cache2k.CacheManager.defaultName
through JNDI and it fails with javax.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?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
KB-1083 "javax.naming.NameNotFoundException" thrown in ...
Cause. The application server is misreading a character in an expression defined in a configuration file. There are different possible reasons for the...
Read more >How to resolve a NamingException that's only thrown when ...
Use ObjectName filter on top right and search for jboss:service=JNDIView. On the bean that is found, execute list method. You'll get list of...
Read more >Error javax.naming.NameNotFoundException - IBM
Usually the external application throws javax.naming.NameNotFoundException when the name (it could be queue name or QCF name, and so on) passed ...
Read more >got javax.naming.NameNotFoundException error ab...
I try the example sportsclub with snowdrop1.1.0.GA on JBoss5.1.0.GA, but I keep getting NameNotFoundException for SpringDao the jndi name.
Read more >Help -javax.naming.NameNotFoundException: Name jdbc is ...
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context " The code: public void init(ServletConfig config) throws ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Verison 1.2.4.Final is released now with this fix.
You could simply set the JNDI property
org.cache2k.CacheManager.defaultName
todefault
.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.