jndi 中exception

org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceForQuery' defined in class path resource [jndi_DataSource.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name mgrForQuery is not bound in this Context

当项目中用到jndi,我们用的是让其中tomcat中生成相应的xml配置数据源。
而此exception就由于没有配置正确的数据源。

你可能感兴趣的:(exception)