question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`javax.naming.NameNotFoundException` thrown at application startup

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cruftexcommented, Sep 4, 2019

Verison 1.2.4.Final is released now with this fix.

1reaction
cruftexcommented, Sep 4, 2019

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?

You could simply set the JNDI property org.cache2k.CacheManager.defaultName to default.

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found