javax.naming.NameNotFoundException

运行的时候发现如下错误: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context。原来是Tomcat 5.5.x 的jdbc连接池配置和前面的都有改变,取消了ResourceParameters参数。下面是个例子

 调试前的:


         
         
           
              maxWait
              5000
           

           
              maxActive
              4
           

           
              password
              HO2_CTF
           

           
              url
              jdbc:oracle:thin:@TG2SERVER:1521:NAGIRADB
           

           
              driverClassName
              oracle.jdbc.driver.OracleDriver
           

           
              maxIdle
              2
           

           
              username
              HO2_CTF
           

         

         
       

调试后的:

  
  


 
 
 
   
      url
      jdbc:oracle:thin:@TG2SERVER:1521:NAGIRADB
   

   
      password
      HO2_CTF
   

   
      maxActive
      4
   

   
      maxWait
      5000
   

   
      driverClassName
      oracle.jdbc.driver.OracleDriver
   

   
      username
      HO2_CTF
   

   
      maxIdle
      2
   

 

 


你可能感兴趣的:(oracle,server,cookies,path,jdbc,tomcat)