javax.naming.NamingException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hello, We installed Bamboo with jdbc connection which is connected to oracle database. How ever we are seeing clear text pwd in bamboo.cfg.xml We have used jndi encryption and added datasource for the bamboo.cfg.xml as follows. We removed username and passwd lines and added encryption jar files in lib folder. {code:html} <property name="hibernate.connection.datasource">java:comp/env/jdbc/bambooDS</property> {code} We removed username pwd lines in this file to apply jndi encryption. <property name="hibernate.connection.password">Password</property> <property name="hibernate.connection.url">jdbc:oracle:thin:@server.xxx.xxx.gov:port:sid</property> <property name="hibernate.connection.username">Username</property> Now Bamboo is not able to detect jndi encryption and throwing error in logs as follows {code:java} 29-Jun-2016 14:46:05.090 SEVERE [main] org.apache.coyote.AbstractProtocol.destroy Failed to destroy end point associated with ProtocolHandler ["http-nio-10085"] java.lang.NullPointerException at org.apache.tomcat.util.net.NioEndpoint.releaseCaches(NioEndpoint.java:304) at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:480) 29-Jun-2016 14:46:05.099 WARNING [main] org.apache.catalina.deploy.NamingResourcesImpl.cleanUp Failed to retrieve JNDI naming context for container [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] so no cleanup was performed for that container javax.naming.NamingException: No naming context bound to this class loader at org.apache.naming.ContextBindings.getClassLoader(ContextBindings.java:258) at org.apache.catalina.deploy.NamingResourcesImpl.cleanUp(NamingResourcesImpl.java:992) at org.apache.catalina.deploy.NamingResourcesImpl.stopInternal(NamingResourcesImpl.java:975) {code} How to set up bamboo.cfg.xml so that it can detect my jndi encryption for database username and password? Please reply. Satya.
    via by NGS Webmaster,
  • Tomcat server v8 at localhost failed to start
    via Stack Overflow by Rekha
    ,
    • javax.naming.NamingException: No naming context bound to this class loader at org.apache.naming.ContextBindings.getClassLoader(ContextBindings.java:258) at org.apache.catalina.deploy.NamingResourcesImpl.cleanUp(NamingResourcesImpl.java:992) at org.apache.catalina.deploy.NamingResourcesImpl.stopInternal(NamingResourcesImpl.java:975)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    67 more bugmates