javax.naming.NamingException: No naming context bound to this class loader

Atlassian JIRA | NGS Webmaster | 5 months ago
  1. 0

    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.

    Atlassian JIRA | 5 months ago | NGS Webmaster
    javax.naming.NamingException: No naming context bound to this class loader
  2. 0

    Eclipse Tomcat java.lang.NoClassDefFoundError LogFactory

    Stack Overflow | 2 years ago | railser
    javax.naming.NamingException: No naming context bound to this class loader
  3. 0

    unable to start tomcat 8 in kepler eclipse adding resource tags in server.xml

    Stack Overflow | 2 years ago | Lettisha
    javax.naming.NamingException: No naming context bound to this class loader
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    tomcat wont start from within eclipse after stripping project

    Stack Overflow | 2 years ago
    javax.naming.NamingException: No naming context bound to this class loader

    71 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.naming.NamingException

      No naming context bound to this class loader

      at org.apache.naming.ContextBindings.getClassLoader()
    2. Web Container Naming Utilities
      ContextBindings.getClassLoader
      1. org.apache.naming.ContextBindings.getClassLoader(ContextBindings.java:258)
      1 frame
    3. Glassfish Core
      NamingResourcesImpl.stopInternal
      1. org.apache.catalina.deploy.NamingResourcesImpl.cleanUp(NamingResourcesImpl.java:992)
      2. org.apache.catalina.deploy.NamingResourcesImpl.stopInternal(NamingResourcesImpl.java:975)
      2 frames