如果JSP就在这个Weblogic服务器上运行,这句
ctx = new InitialContext(ht);
改成这样
ctx = new InitialContext();另外,如果想测试Pool连接是否成功,可以在console里面,pool上写上测试连接的语句,诸如
select sysdate from dual;还有就要确认你连接的数据库的SID是orcl这个吗?
ctx = new InitialContext(ht);
改成这样
ctx = new InitialContext();另外,如果想测试Pool连接是否成功,可以在console里面,pool上写上测试连接的语句,诸如
select sysdate from dual;还有就要确认你连接的数据库的SID是orcl这个吗?
解决方案 »
- jboss 异常: javax.naming.NameNotFoundException:
- 百度的方法咋都不行呢?java向oracle中插入当前时间。。。
- strut1的问题,显示不了数据
- struts 多个事件提交到一个action的并发操作怎么处理
- 现在开发网站开发采用哪种框架
- MFC是MVC模式吗?
- 紧急:ibatis的查询问题
- 为何事务回滚无效,有经验的请指教
- struts问题。高手请进
- 请大哥大姐给我一个建议,小弟不胜感激!
- JEditorPane显示中文网页时出现乱码,如何解决呢?是不是最好不要用JEditorPane作为一个内置的Browser?
- 关于LOG4J生成以时间命名的log文件的问题
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上写上测试连接的语句写在哪儿??
要求在weblogic控制台中配置连接池中初始化的连接数,默认值:初始化数=1、最大连接数=1、递增数=1,把这些值改大就可以了。
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..
我也是用oracle进行的配置。
url: jdbc:oracle:thin:@localhost:1521:TYG
driver classname: oracle.jdbc.driver.OracleDriver
sa=system
配置完以后先测试看看能否连接成功,然后部署到myserver。
我的时可以了。