Topic: 幫忙的幫忙﹐想辦法的想辦法﹗﹗(weblogic NamingException) |
Print this page |
1.幫忙的幫忙﹐想辦法的想辦法﹗﹗(weblogic NamingException) | Copy to clipboard |
Posted by: hzb Posted on: 2003-06-21 11:23 各位有心人﹐我BEAN中的getConnection()方法老是報"UNABLE to get a connection from demoPool!"的錯﹐我拿它沒折了﹗幫幫忙吧﹗ private Connection getConnection() ============================================== weblogic-ejb-jar.xml 如下﹕ <?xml version="1.0"?> ============================================== ejb-jar.xml如下﹕ <?xml version="1.0"?> ============================================== connection pool 如下﹕ name:demoPool url:jdbc:oracle:thin:@172.17.34.89:1521:orc1 driver classname:oracle.jdbc.driver.OracleDriver properties:user=scott password=tiger dll=ocijdbc8 protocol=thin ============================================== datasource 如下﹕ name:examples-dataSource-demoPool jndi name:jdbc/examples-dataSource-demoPool(用examples-dataSource-demoPool試過也不行) pool name:demoPool |
2.Re:幫忙的幫忙﹐想辦法的想辦法﹗﹗(weblogic NamingException) [Re: hzb] | Copy to clipboard |
Posted by: yuan Posted on: 2003-06-21 19:31 你的DataSource得到了没有? |
3.Re:幫忙的幫忙﹐想辦法的想辦法﹗﹗(weblogic NamingException) [Re: hzb] | Copy to clipboard |
Posted by: FinalFantasy Posted on: 2003-06-22 00:11 试试 java:comp/env/jdbc/exmples-dataSource-demoPool |
4.Re:幫忙的幫忙﹐想辦法的想辦法﹗﹗(weblogic NamingException) [Re: hzb] | Copy to clipboard |
Posted by: hzb Posted on: 2003-06-23 08:33 "UNABLE to get a connection from demoPool!"是自定義異常哦﹗ 用"java:comp/env/jdbc/exmples-dataSource-demoPool "試了還是不行﹐ 嗚,嗚,嗚,嗚,嗚,嗚.... 我干脆把原程式附上﹐請幫我再看一下﹐俺感激不盡﹗ beanManaged.rar (10.72k) |
5.Re:幫忙的幫忙﹐想辦法的想辦法﹗﹗(weblogic NamingException) [Re: hzb] | Copy to clipboard |
Posted by: why Posted on: 2003-06-23 10:23 hzb wrote: 大俠的意思是"java:comp/env/jdbc/examples-dataSource-demoPool "吧? |
6.Re:幫忙的幫忙﹐想辦法的想辦法﹗﹗(weblogic NamingException) [Re: hzb] | Copy to clipboard |
Posted by: hzb Posted on: 2003-06-23 14:32 這一句是拷貝FinalFantasy的﹐他寫錯了﹐我程式里沒錯﹐沒少"a"﹐你可以看我附件里的AccountBean.java |
7.Re:幫忙的幫忙﹐想辦法的想辦法﹗﹗(weblogic NamingException) [Re: hzb] | Copy to clipboard |
Posted by: k_k_grass Posted on: 2003-06-27 20:31 如果在中getConnection()加上user,pass呢? 必要时,去掉 examples-dataSource-demoPool中的‘-’线 首先你的确保datasource 没问题呵 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |