如果JSP就在这个Weblogic服务器上运行,这句
ctx = new InitialContext(ht);
改成这样
ctx = new InitialContext();另外,如果想测试Pool连接是否成功,可以在console里面,pool上写上测试连接的语句,诸如
select sysdate from dual;还有就要确认你连接的数据库的SID是orcl这个吗?

解决方案 »

  1.   

    我把这句
    ctx = new InitialContext(ht);
    改成这样
    ctx = new InitialContext();
    现在出现的错误是:weblogic.jdbc.extensions.PoolLimitSQLException: weblogic.common.resourcepool.ResourceLimitException: No resources currently available in pool mypool to allocate to applications, please increase the size of the pool and retry.. 麻烦高人指点一下:
    1,为什么要这样改???
    2,在pool上写上测试连接的语句写在哪儿??
      

  2.   

    1.ctx = new InitialContext(ht);改成这样ctx = new InitialContext();不是解决问题的办法。2.错误信息“weblogic.jdbc.extensions.PoolLimitSQLException: weblogic.common.resourcepool.ResourceLimitException: No resources currently available in pool mypool to allocate to applications, please increase the size of the pool and retry."
      要求在weblogic控制台中配置连接池中初始化的连接数,默认值:初始化数=1、最大连接数=1、递增数=1,把这些值改大就可以了。
      

  3.   

    而且我的控制台中点那个"test pool"测试的时候出现下面的错误:
    Warning! Connectivity to backend database not verified. This is either because required connection pool attributes "TestConnectionsOnReserve" or "TestConnectionsOnRelease" have not been enabled, or an invalid value has been specified for attribute "TestTableName". Please check the server log for more details..
      

  4.   

    测试时你要把TestConnectionsOnRelease,TestConnectionsOnReserve设为可用,或者在TestTableName键入名称。
    我也是用oracle进行的配置。
    url:  jdbc:oracle:thin:@localhost:1521:TYG
    driver classname:  oracle.jdbc.driver.OracleDriver
    sa=system
    配置完以后先测试看看能否连接成功,然后部署到myserver。
    我的时可以了。