Sunday, 20 March 2016

How to resolve the error "javax.naming.NameNotFoundException: env/spring.liveBeansView.mbeanDomain"

If you come across such a error as like below

Converted JNDI name [java:comp/env/spring.liveBeansView.mbeanDomain] not found - trying original name [spring.liveBeansView.mbeanDomain]. javax.naming.NameNotFoundException: env/spring.liveBeansView.mbeanDomain -- service jboss.naming.context.java.module....env."spring.liveBeansView.mbeanDomain"

try to add the below lines in 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>

No comments:

Post a Comment