刚搭好环境。出现以下错误。麻烦大神指点
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [java:comp/env/spring.liveBeansView.mbeanDomain]
[DEBUG] 2014-05-08 15:55:08 :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] 2014-05-08 15:55:08 :Looking up JNDI object with name [spring.liveBeansView.mbeanDomain]
[DEBUG] 2014-05-08 15:55:08 :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] 2014-05-08 15:55:08 :Searching for key 'spring.liveBeansView.mbeanDomain' in [systemProperties]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.liveBeansView.mbeanDomain' in [systemEnvironment]
[DEBUG] 2014-05-08 15:55:08 :Could not find key 'spring.liveBeansView.mbeanDomain' in any property source. Returning [null]
[DEBUG] 2014-05-08 15:55:08 :Published root WebApplicationContext as ServletContext attribute with name [org.springframework.web.context.WebApplicationContext.ROOT]
[INFO ] 2014-05-08 15:55:08 :Root WebApplicationContext: initialization completed in 2755 ms
13 个解决方案
#1
你用JNDI 了吗?JNDI 查找出错了!
#2
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [java:comp/env/spring.profiles.active]
[DEBUG] 2014-05-08 15:55:08 :Converted JNDI name [java:comp/env/spring.profiles.active] not found - trying original name [spring.profiles.active]. javax.naming.NameNotFoundException: Name [spring.profiles.active] is not bound in this Context. Unable to find [spring.profiles.active].
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [spring.profiles.active]
[DEBUG] 2014-05-08 15:55:08 :JNDI lookup for name [spring.profiles.active] threw NamingException with message: Name [spring.profiles.active] is not bound in this Context. Unable to find [spring.profiles.active].. Returning null.
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.active' in [systemProperties]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.active' in [systemEnvironment]
[DEBUG] 2014-05-08 15:55:08 :Could not find key 'spring.profiles.active' in any property source. Returning [null]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [servletConfigInitParams]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [servletContextInitParams]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [jndiProperties]
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [java:comp/env/spring.profiles.default]
[DEBUG] 2014-05-08 15:55:08 :Converted JNDI name [java:comp/env/spring.profiles.default] not found - trying original name [spring.profiles.default]. javax.naming.NameNotFoundException: Name [spring.profiles.default] is not bound in this Context. Unable to find [spring.profiles.default].
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [spring.profiles.default]
[DEBUG] 2014-05-08 15:55:08 :JNDI lookup for name [spring.profiles.default] threw NamingException with message: Name [spring.profiles.default] is not bound in this Context. Unable to find [spring.profiles.default].. Returning null.
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [systemProperties]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [systemEnvironment]
[DEBUG] 2014-05-08 15:55:08 :Could not find key 'spring.profiles.default' in any property source. Returning [null]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [servletConfigInitParams]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [servletContextInitParams]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [jndiProperties]
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [java:comp/env/spring.profiles.default]
[DEBUG] 2014-05-08 15:55:08 :Converted JNDI name [java:comp/env/spring.profiles.default] not found - trying original name [spring.profiles.default]. javax.naming.NameNotFoundException: Name [spring.profiles.default] is not bound in this Context. Unable to find [spring.profiles.default].
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [spring.profiles.default]
[DEBUG] 2014-05-08 15:55:08 :JNDI lookup for name [spring.profiles.default] threw NamingException with message: Name [spring.profiles.default] is not bound in this Context. Unable to find [spring.profiles.default].. Returning null.
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [systemProperties]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [systemEnvironment]
[DEBUG] 2014-05-08 15:55:08 :Could not find key 'spring.profiles.default' in any property source. Returning [null]
[DEBUG] 2014-05-08 15:55:08 :Replacing [servletContextInitParams] PropertySource with [servletContextInitParams]
[DEBUG] 2014-05-08 15:55:08 :Replacing [servletConfigInitParams] PropertySource with [servletConfigInitParams]
[INFO ] 2014-05-08 15:55:08 :Refreshing WebApplicationContext for namespace 'springMvc-servlet': startup date [Thu May 08 15:55:08 CST 2014]; parent: Root WebApplicationContext
[DEBUG] 2014-05-08 15:55:08 :Adding [systemProperties] PropertySource with lowest search precedence
[DEBUG] 2014-05-08 15:55:08 :Adding [systemEnvironment] PropertySource with lowest search precedence
[DEBUG] 2014-05-08 15:55:08 :Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
[INFO ] 2014-05-08 15:55:08 :Loading XML bean definitions from class path resource [spring-mvc.xml]
五月 08, 2014 3:55:08 下午 org.apache.catalina.core.ApplicationContext log
好几个这样的错。
我没配置jndi。
只是报错,数据库操作都能完成。
如何破?
[DEBUG] 2014-05-08 15:55:08 :Converted JNDI name [java:comp/env/spring.profiles.active] not found - trying original name [spring.profiles.active]. javax.naming.NameNotFoundException: Name [spring.profiles.active] is not bound in this Context. Unable to find [spring.profiles.active].
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [spring.profiles.active]
[DEBUG] 2014-05-08 15:55:08 :JNDI lookup for name [spring.profiles.active] threw NamingException with message: Name [spring.profiles.active] is not bound in this Context. Unable to find [spring.profiles.active].. Returning null.
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.active' in [systemProperties]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.active' in [systemEnvironment]
[DEBUG] 2014-05-08 15:55:08 :Could not find key 'spring.profiles.active' in any property source. Returning [null]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [servletConfigInitParams]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [servletContextInitParams]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [jndiProperties]
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [java:comp/env/spring.profiles.default]
[DEBUG] 2014-05-08 15:55:08 :Converted JNDI name [java:comp/env/spring.profiles.default] not found - trying original name [spring.profiles.default]. javax.naming.NameNotFoundException: Name [spring.profiles.default] is not bound in this Context. Unable to find [spring.profiles.default].
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [spring.profiles.default]
[DEBUG] 2014-05-08 15:55:08 :JNDI lookup for name [spring.profiles.default] threw NamingException with message: Name [spring.profiles.default] is not bound in this Context. Unable to find [spring.profiles.default].. Returning null.
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [systemProperties]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [systemEnvironment]
[DEBUG] 2014-05-08 15:55:08 :Could not find key 'spring.profiles.default' in any property source. Returning [null]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [servletConfigInitParams]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [servletContextInitParams]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [jndiProperties]
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [java:comp/env/spring.profiles.default]
[DEBUG] 2014-05-08 15:55:08 :Converted JNDI name [java:comp/env/spring.profiles.default] not found - trying original name [spring.profiles.default]. javax.naming.NameNotFoundException: Name [spring.profiles.default] is not bound in this Context. Unable to find [spring.profiles.default].
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [spring.profiles.default]
[DEBUG] 2014-05-08 15:55:08 :JNDI lookup for name [spring.profiles.default] threw NamingException with message: Name [spring.profiles.default] is not bound in this Context. Unable to find [spring.profiles.default].. Returning null.
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [systemProperties]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [systemEnvironment]
[DEBUG] 2014-05-08 15:55:08 :Could not find key 'spring.profiles.default' in any property source. Returning [null]
[DEBUG] 2014-05-08 15:55:08 :Replacing [servletContextInitParams] PropertySource with [servletContextInitParams]
[DEBUG] 2014-05-08 15:55:08 :Replacing [servletConfigInitParams] PropertySource with [servletConfigInitParams]
[INFO ] 2014-05-08 15:55:08 :Refreshing WebApplicationContext for namespace 'springMvc-servlet': startup date [Thu May 08 15:55:08 CST 2014]; parent: Root WebApplicationContext
[DEBUG] 2014-05-08 15:55:08 :Adding [systemProperties] PropertySource with lowest search precedence
[DEBUG] 2014-05-08 15:55:08 :Adding [systemEnvironment] PropertySource with lowest search precedence
[DEBUG] 2014-05-08 15:55:08 :Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
[INFO ] 2014-05-08 15:55:08 :Loading XML bean definitions from class path resource [spring-mvc.xml]
五月 08, 2014 3:55:08 下午 org.apache.catalina.core.ApplicationContext log
好几个这样的错。
我没配置jndi。
只是报错,数据库操作都能完成。
如何破?
#3
#4
兄弟你解决了吗? 同样问题
环境 springMVC+ spring4.04+hibernate4.3.5 根本没有配置JNDI 为什么老提示这些呢
#5
同问,也遇到这问题了
#6
一般都是配置上有问题,建议将你的配置都发出来看看
#7
你的配置文件头信息应该使用了3.1.xsd了。
#8
这是DEBUG信息,不是ERROR。
这段信息只是spring初始化过程中的一些信息罢了,把日志级别调成info,debug信息一般不需要开启。
这段信息只是spring初始化过程中的一些信息罢了,把日志级别调成info,debug信息一般不需要开启。
#9
这个问题有解决方案吗?
#10
这不是错误,只是debug信息
#11
试试在web.xml中加入这个 这个本意是多环境配置数据源的,例如测试\生产\默认等等自定义环境名称配置不同数据源方便开发
<context-param>
<param-name>spring.profiles.default</param-name>
<param-value>default</param-value>
</context-param>
<context-param>
<param-name>spring.profiles.default</param-name>
<param-value>default</param-value>
</context-param>
#12
http://forum.spring.io/forum/spring-projects/container/125462-threw-namingexception-with-message-name-spring-livebeansview-mbeandomain 看看这个
#13
最恨的就是楼上说这是debug信息了 你这么不计较错误 你来你来
#1
你用JNDI 了吗?JNDI 查找出错了!
#2
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [java:comp/env/spring.profiles.active]
[DEBUG] 2014-05-08 15:55:08 :Converted JNDI name [java:comp/env/spring.profiles.active] not found - trying original name [spring.profiles.active]. javax.naming.NameNotFoundException: Name [spring.profiles.active] is not bound in this Context. Unable to find [spring.profiles.active].
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [spring.profiles.active]
[DEBUG] 2014-05-08 15:55:08 :JNDI lookup for name [spring.profiles.active] threw NamingException with message: Name [spring.profiles.active] is not bound in this Context. Unable to find [spring.profiles.active].. Returning null.
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.active' in [systemProperties]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.active' in [systemEnvironment]
[DEBUG] 2014-05-08 15:55:08 :Could not find key 'spring.profiles.active' in any property source. Returning [null]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [servletConfigInitParams]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [servletContextInitParams]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [jndiProperties]
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [java:comp/env/spring.profiles.default]
[DEBUG] 2014-05-08 15:55:08 :Converted JNDI name [java:comp/env/spring.profiles.default] not found - trying original name [spring.profiles.default]. javax.naming.NameNotFoundException: Name [spring.profiles.default] is not bound in this Context. Unable to find [spring.profiles.default].
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [spring.profiles.default]
[DEBUG] 2014-05-08 15:55:08 :JNDI lookup for name [spring.profiles.default] threw NamingException with message: Name [spring.profiles.default] is not bound in this Context. Unable to find [spring.profiles.default].. Returning null.
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [systemProperties]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [systemEnvironment]
[DEBUG] 2014-05-08 15:55:08 :Could not find key 'spring.profiles.default' in any property source. Returning [null]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [servletConfigInitParams]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [servletContextInitParams]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [jndiProperties]
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [java:comp/env/spring.profiles.default]
[DEBUG] 2014-05-08 15:55:08 :Converted JNDI name [java:comp/env/spring.profiles.default] not found - trying original name [spring.profiles.default]. javax.naming.NameNotFoundException: Name [spring.profiles.default] is not bound in this Context. Unable to find [spring.profiles.default].
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [spring.profiles.default]
[DEBUG] 2014-05-08 15:55:08 :JNDI lookup for name [spring.profiles.default] threw NamingException with message: Name [spring.profiles.default] is not bound in this Context. Unable to find [spring.profiles.default].. Returning null.
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [systemProperties]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [systemEnvironment]
[DEBUG] 2014-05-08 15:55:08 :Could not find key 'spring.profiles.default' in any property source. Returning [null]
[DEBUG] 2014-05-08 15:55:08 :Replacing [servletContextInitParams] PropertySource with [servletContextInitParams]
[DEBUG] 2014-05-08 15:55:08 :Replacing [servletConfigInitParams] PropertySource with [servletConfigInitParams]
[INFO ] 2014-05-08 15:55:08 :Refreshing WebApplicationContext for namespace 'springMvc-servlet': startup date [Thu May 08 15:55:08 CST 2014]; parent: Root WebApplicationContext
[DEBUG] 2014-05-08 15:55:08 :Adding [systemProperties] PropertySource with lowest search precedence
[DEBUG] 2014-05-08 15:55:08 :Adding [systemEnvironment] PropertySource with lowest search precedence
[DEBUG] 2014-05-08 15:55:08 :Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
[INFO ] 2014-05-08 15:55:08 :Loading XML bean definitions from class path resource [spring-mvc.xml]
五月 08, 2014 3:55:08 下午 org.apache.catalina.core.ApplicationContext log
好几个这样的错。
我没配置jndi。
只是报错,数据库操作都能完成。
如何破?
[DEBUG] 2014-05-08 15:55:08 :Converted JNDI name [java:comp/env/spring.profiles.active] not found - trying original name [spring.profiles.active]. javax.naming.NameNotFoundException: Name [spring.profiles.active] is not bound in this Context. Unable to find [spring.profiles.active].
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [spring.profiles.active]
[DEBUG] 2014-05-08 15:55:08 :JNDI lookup for name [spring.profiles.active] threw NamingException with message: Name [spring.profiles.active] is not bound in this Context. Unable to find [spring.profiles.active].. Returning null.
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.active' in [systemProperties]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.active' in [systemEnvironment]
[DEBUG] 2014-05-08 15:55:08 :Could not find key 'spring.profiles.active' in any property source. Returning [null]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [servletConfigInitParams]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [servletContextInitParams]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [jndiProperties]
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [java:comp/env/spring.profiles.default]
[DEBUG] 2014-05-08 15:55:08 :Converted JNDI name [java:comp/env/spring.profiles.default] not found - trying original name [spring.profiles.default]. javax.naming.NameNotFoundException: Name [spring.profiles.default] is not bound in this Context. Unable to find [spring.profiles.default].
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [spring.profiles.default]
[DEBUG] 2014-05-08 15:55:08 :JNDI lookup for name [spring.profiles.default] threw NamingException with message: Name [spring.profiles.default] is not bound in this Context. Unable to find [spring.profiles.default].. Returning null.
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [systemProperties]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [systemEnvironment]
[DEBUG] 2014-05-08 15:55:08 :Could not find key 'spring.profiles.default' in any property source. Returning [null]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [servletConfigInitParams]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [servletContextInitParams]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [jndiProperties]
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [java:comp/env/spring.profiles.default]
[DEBUG] 2014-05-08 15:55:08 :Converted JNDI name [java:comp/env/spring.profiles.default] not found - trying original name [spring.profiles.default]. javax.naming.NameNotFoundException: Name [spring.profiles.default] is not bound in this Context. Unable to find [spring.profiles.default].
[DEBUG] 2014-05-08 15:55:08 :Looking up JNDI object with name [spring.profiles.default]
[DEBUG] 2014-05-08 15:55:08 :JNDI lookup for name [spring.profiles.default] threw NamingException with message: Name [spring.profiles.default] is not bound in this Context. Unable to find [spring.profiles.default].. Returning null.
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [systemProperties]
[DEBUG] 2014-05-08 15:55:08 :Searching for key 'spring.profiles.default' in [systemEnvironment]
[DEBUG] 2014-05-08 15:55:08 :Could not find key 'spring.profiles.default' in any property source. Returning [null]
[DEBUG] 2014-05-08 15:55:08 :Replacing [servletContextInitParams] PropertySource with [servletContextInitParams]
[DEBUG] 2014-05-08 15:55:08 :Replacing [servletConfigInitParams] PropertySource with [servletConfigInitParams]
[INFO ] 2014-05-08 15:55:08 :Refreshing WebApplicationContext for namespace 'springMvc-servlet': startup date [Thu May 08 15:55:08 CST 2014]; parent: Root WebApplicationContext
[DEBUG] 2014-05-08 15:55:08 :Adding [systemProperties] PropertySource with lowest search precedence
[DEBUG] 2014-05-08 15:55:08 :Adding [systemEnvironment] PropertySource with lowest search precedence
[DEBUG] 2014-05-08 15:55:08 :Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
[INFO ] 2014-05-08 15:55:08 :Loading XML bean definitions from class path resource [spring-mvc.xml]
五月 08, 2014 3:55:08 下午 org.apache.catalina.core.ApplicationContext log
好几个这样的错。
我没配置jndi。
只是报错,数据库操作都能完成。
如何破?
#3
#4
兄弟你解决了吗? 同样问题
环境 springMVC+ spring4.04+hibernate4.3.5 根本没有配置JNDI 为什么老提示这些呢
#5
同问,也遇到这问题了
#6
一般都是配置上有问题,建议将你的配置都发出来看看
#7
你的配置文件头信息应该使用了3.1.xsd了。
#8
这是DEBUG信息,不是ERROR。
这段信息只是spring初始化过程中的一些信息罢了,把日志级别调成info,debug信息一般不需要开启。
这段信息只是spring初始化过程中的一些信息罢了,把日志级别调成info,debug信息一般不需要开启。
#9
这个问题有解决方案吗?
#10
这不是错误,只是debug信息
#11
试试在web.xml中加入这个 这个本意是多环境配置数据源的,例如测试\生产\默认等等自定义环境名称配置不同数据源方便开发
<context-param>
<param-name>spring.profiles.default</param-name>
<param-value>default</param-value>
</context-param>
<context-param>
<param-name>spring.profiles.default</param-name>
<param-value>default</param-value>
</context-param>
#12
http://forum.spring.io/forum/spring-projects/container/125462-threw-namingexception-with-message-name-spring-livebeansview-mbeandomain 看看这个
#13
最恨的就是楼上说这是debug信息了 你这么不计较错误 你来你来