springMVC启动log4j查看有一个debug报错(jndi)

遇见77 发布于 2014/09/15 17:29
阅读 18K+
收藏 0
DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instance of singleton bean 'org.springframework.web.servlet.view.InternalResourceViewResolver#0'
DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating instance of bean 'org.springframework.web.servlet.support.SessionFlashMapManager'
DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Finished creating instance of bean 'org.springframework.web.servlet.support.SessionFlashMapManager'
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Unable to locate FlashMapManager with name 'flashMapManager': using default [org.springframework.web.servlet.support.SessionFlashMapManager@69d64f]
DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Searching for key 'spring.liveBeansView.mbeanDomain' in [servletConfigInitParams]
DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Searching for key 'spring.liveBeansView.mbeanDomain' in [servletContextInitParams]
DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Searching for key 'spring.liveBeansView.mbeanDomain' in [jndiProperties]
DEBUG [org.springframework.jndi.JndiTemplate] - Looking up JNDI object with name [java:comp/env/spring.liveBeansView.mbeanDomain]
DEBUG [org.springframework.jndi.JndiLocatorDelegate] - 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].
DEBUG [org.springframework.jndi.JndiTemplate] - Looking up JNDI object with name [spring.liveBeansView.mbeanDomain]
DEBUG [org.springframework.jndi.JndiPropertySource] - 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.
DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Searching for key 'spring.liveBeansView.mbeanDomain' in [systemProperties]
DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Searching for key 'spring.liveBeansView.mbeanDomain' in [systemEnvironment]
DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Could not find key 'spring.liveBeansView.mbeanDomain' in any property source. Returning [null]
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Published WebApplicationContext of servlet 'springmvc' as ServletContext attribute with name [org.springframework.web.servlet.FrameworkServlet.CONTEXT.springmvc]
INFO  [org.springframework.web.servlet.DispatcherServlet] - FrameworkServlet 'springmvc': initialization completed in 1543 ms


我没有用jndi,就是简单的 springMVC+mybatis , dbcp连接池. 感觉给你数据源有关.

贴一下数据库连接池的配置:

<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"> 
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
<property name="url" value="jdbc:oracle:thin:@pc-PC:1521:ZYDB"/>
<property name="username" value="zzy"/>
<property name="password" value="1"/>
<property name="maxActive" value="99"/>
</bean>


有人知道吗? 

还有,  debug输出的 这种错误, 不会影响程序的正常运行,我们有必要关注吗?

加载中
0
a
ahww520

web.xml中添加以下配置项


<context-param>

        <param-name>spring.profiles.active</param-name> 
        <param-value>dev</param-value> 
    </context-param> 
    <context-param> 
        <param-name>spring.profiles.default</param-name> 
        <param-value>dev</param-value> 
    </context-param>
    <context-param> 
        <param-name>spring.liveBeansView.mbeanDomain</param-name> 
        <param-value>dev</param-value> 
    </context-param>
TTonlyV5
TTonlyV5
正解
0
skhuhu
skhuhu
你的view 名称写错了吧 没找到页面
返回顶部
顶部