javax.naming.NameNotFoundException

错误:

runqianReportLogger : [ERROR]  - Name sem is not bound in this Context
javax.naming.NameNotFoundException: Name sem is not bound in this Context


原因:润乾数据源未配置
操作: 

1>在tomcat的配置文件server.xml下<Context/>中配置
  <Resource name="sem" auth="Container" type="javax.sql.DataSource" 

       maxActive="100"  maxIdle="30"   maxWait="10000"
       username="dev_sem" password="dev_sem" driverClassName="oracle.jdbc.OracleDriver"
       url="jdbc:oracle:thin:@192.168.100.30:1521:PCMDB"/>
 2>清理tomcat缓存,重新构建工程

猜你喜欢

转载自hsf-2011-sina-cn.iteye.com/blog/1235500
今日推荐