LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   javax.naming.NameNotFoundException: Name bbbb is not bound in this Context (https://www.linuxquestions.org/questions/linux-newbie-8/javax-naming-namenotfoundexception-name-bbbb-is-not-bound-in-this-context-930943/)

threezerous 02-23-2012 04:34 PM

javax.naming.NameNotFoundException: Name bbbb is not bound in this Context
 
This would typically be a Tomcat issue and I would be posting in a different forum. However, there seems to be environmental issue for reasons described below...hence looking for any insights from the OS Gurus.

We have two identical servers with same configuration. We ran a middleware audit application (Opsware) to confirm that the applications and configurations on both the boxes are same. These are active/passive failover servers.

The tomcat application runs fine on one of the servers, but as soon as we start the tomcat on the other, we get the error below in tomcat logs.

javax.naming.NameNotFoundException: Name bbbb is not bound in this Context

We have confirmed that DB connectivity, context.xml , web.xml and server.xml are consistent across both the servers. We did stop the services on active server when we brought the second one.

Could there be some OS library/configuration missing which could be causing this? Our audit runs only at application level.

Any ideas/suggestions are highly appreciated.

Thanks in advance.

ButterflyMelissa 02-24-2012 02:57 PM

The word that poked my eyes (not really :) of course) is context. What are you guys running? RedHat/Fedora/CentOS? Maybe it could be a selinux problem.

If so, try to read up on the chcon command, made for selinux, and aimed to help change the context of stuff within selinux.

Good luck

Thor

threezerous 02-28-2012 07:27 AM

We are running RHEL 5.4. Though I could not find the root cause, the issue resolved by itself, after we copied the tomcat folder and configration files from the working server. Maybe our audit run did not catch some discrepancies or there was some file corrupt, not identifiable through standard audit check.

Thanks much for sharing your thoughts.

ButterflyMelissa 02-29-2012 02:59 AM

No problem! Glad it worked out for you. :)

In case this happens again, try to be prepared with some knowledge about Selinux...just a hint!

Thor


All times are GMT -5. The time now is 12:49 AM.