javax.naming.NameNotFoundException: Name [spring.liveBeansView.mbeanDomain] is not bound in this Con...
2020-04-02 19:02
1871 查看
2015-08-27 09:53:16,463 [localhost-startStop-1] DEBUG [org.springframework.jndi.JndiTemplate] - Looking up JNDI object with name [java:comp/env/spring.liveBeansView.mbeanDomain] 2015-08-27 09:53:16,463 [localhost-startStop-1] 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]. 2015-08-27 09:53:16,463 [localhost-startStop-1] DEBUG [org.springframework.jndi.JndiTemplate] - Looking up JNDI object with name [spring.liveBeansView.mbeanDomain] 2015-08-27 09:53:16,464 [localhost-startStop-1] 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.
从中可以很清晰的看出异常来自JNDI的数据源配置,查阅了很多资料,有的人说是jar报错,有的说spring内部错误!
找了许久找到了一个解决方案。
解决方案:
在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>
转载于:https://www.cnblogs.com/DENGJ/p/9807179.html
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- javax.naming.NameNotFoundException: Name spring.liveBeansView.mbeanDomain is not bound in this Conte
- Name [spring.liveBeansView.mbeanDomain] is not bound in this Context. Unable to find
- GWT + Spring : javax.naming.NameNotFoundException: Name userDao is not bound in this Context
- javax.naming.NameNotFoundException: Name jdbcis not bound in this Context
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- Tomcat配置连接池 异常:javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- javax.naming.NameNotFoundException: Name [comp/env] is not bound in this Context. Unable to find [co
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- javax.naming.NameNotFoundException:Name[ XXX] is not bound in this context.
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- 启动Tomcat时出现javax.naming.NameNotFoundException: Name xxx is not bound in this Context情况解决方式
- javax.naming.NameNotFoundException Name java:comp is not bound in this Context之解决
- 解决javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context 的问题
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- javax.naming.NameNotFoundException: Name [jdbc/lappJDBC] is not bound in this Context. Unable to fi
- javax.naming.NameNotFoundException: Name ZKING is not bound in this Context 的问题