关于出现Name jdbc is not bound in this Context错误的解决
2011-07-20 14:21
561 查看
Name jdbc is not bound in this Context错误是因为没找到相应的连接配置
我的暂时的解决办法是,增加红色字体部分,
String jndi =(String) props.get("datasource");
jndi="java:comp/env/"+jndi;
DataSource ds = (DataSource) new InitialContext().lookup(jndi);
我的暂时的解决办法是,增加红色字体部分,
String jndi =(String) props.get("datasource");
jndi="java:comp/env/"+jndi;
DataSource ds = (DataSource) new InitialContext().lookup(jndi);
相关文章推荐
- Tomcat 配置 JNDI数据源出现Name jdbc is not bound in this Context
- 启动Tomcat时出现javax.naming.NameNotFoundException: Name xxx is not bound in this Context情况解决方式
- 解决javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- 应对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 jdbc is not bound in this Context
- javax.naming.NameNotFoundException: Name jdbc 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
- Name jdbc is not bound in this context
- Name jdbc 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
- Tomcat上配置连接池{ connect error=Name [jdbc/OracleDB] is not bound in this Context. Unable to find [jdbc]}
- 数据源没发现! Name [jdbc/mysql5] is not bound in this Context. Unable to find [jdbc].
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- Name jdbc is not bound in this Context
- Tomcat配置连接池 异常:javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- Name [spring.liveBeansView.mbeanDomain] is not bound in this Context. Unable to find
- Ubuntu 中出现username is not in the sudoers file. This incident will be reported的错误