title: spring jndi NamingException: Name [spring.liveBeansView.mbeanDomain] is not bound in this Context
body: <p>My webapp with spring 3.2.4 is running fine. But when I start up it, I will get debug infos:</p>
  
  <pre><code>2014-05-20 11:11:47 DEBUG JndiTemplate:150 - Looking up JNDI object with name [java:comp/env/spring.liveBeansView.mbeanDomain]
  2014-05-20 11:11:47 DEBUG JndiLocatorDelegate:101 - Converted JNDI name [java:comp/env/spring.liveBeansView.mbeanDomain] not found - trying original name [spring.liveBeansView.mbeanDomain]. javax.naming.NameNotFoundException: Name [spring.liveBeansView.mbeanDomain] is not bound in this Context. Unable to find [spring.liveBeansView.mbeanDomain].
  2014-05-20 11:11:47 DEBUG JndiTemplate:150 - Looking up JNDI object with name [spring.liveBeansView.mbeanDomain]
  2014-05-20 11:11:47 DEBUG JndiPropertySource:87 - JNDI lookup for name [spring.liveBeansView.mbeanDomain] threw NamingException with message: Name [spring.liveBeansView.mbeanDomain] is not bound in this Context. Unable to find [spring.liveBeansView.mbeanDomain].. Returning null.
  2014-05-20 11:11:47 DEBUG PropertySourcesPropertyResolver:81 - Searching for key 'spring.liveBeansView.mbeanDomain' in [systemProperties]
  2014-05-20 11:11:47 DEBUG PropertySourcesPropertyResolver:81 - Searching for key 'spring.liveBeansView.mbeanDomain' in [systemEnvironment]
  2014-05-20 11:11:47 DEBUG PropertySourcesPropertyResolver:103 - Could not find key 'spring.liveBeansView.mbeanDomain' in any property source. Returning [null]
  2014-05-20 11:11:47 DEBUG DispatcherServlet:533 - Published WebApplicationContext of servlet 'spring' as ServletContext attribute with name [org.springframework.web.servlet.FrameworkServlet.CONTEXT.spring]
  </code></pre>
  
  <p>I don't know what the infos mean. I use <code>c3p0</code> as my <code>dataSource</code>, and the configuration is:</p>
  
  <pre><code>&lt;bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
          &lt;property name="locations"&gt;
              &lt;list&gt;
                  &lt;value&gt;/WEB-INF/config/jdbc.properties&lt;/value&gt;
              &lt;/list&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
      &lt;bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"&gt;
          &lt;property name="driverClass" value="${jdbc.driverClassName}" /&gt;
          &lt;property name="jdbcUrl" value="${jdbc.url}" /&gt;
          &lt;property name="user" value="${jdbc.username}" /&gt;
          &lt;property name="password" value="${jdbc.password}" /&gt;
          &lt;property name="autoCommitOnClose" value="true"/&gt;
          &lt;property name="checkoutTimeout" value="${cpool.checkoutTimeout}"/&gt;
          &lt;property name="initialPoolSize" value="${cpool.minPoolSize}"/&gt;
          &lt;property name="minPoolSize" value="${cpool.minPoolSize}"/&gt;
          &lt;property name="maxPoolSize" value="${cpool.maxPoolSize}"/&gt;
          &lt;property name="maxIdleTime" value="${cpool.maxIdleTime}"/&gt;
          &lt;property name="acquireIncrement" value="${cpool.acquireIncrement}"/&gt;
          &lt;property name="maxIdleTimeExcessConnections" value="${cpool.maxIdleTimeExcessConnections}"/&gt;
      &lt;/bean&gt;
  
      &lt;bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate"&gt;
          &lt;property name="dataSource" ref="dataSource" /&gt;
      &lt;/bean&gt;
      &lt;bean id="simpleJdbcTemplate" class="org.springframework.jdbc.core.simple.SimpleJdbcTemplate"&gt;
          &lt;constructor-arg ref="jdbcTemplate" /&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>I cant't find where <code>JNDI</code> is used in. I have search some questions about this exception. But they are always associated with <code>@Profile</code> or <code>@Configuration</code>. There is no <code>@Profile</code> or <code>@Configuration</code> in my code.</p>
  
  <p>In my bean class, there is no <code>@Bean</code> annotation. Are the infos related to this? But I don't need spring inject my bean class.</p>