|
|
|
ConnectionPool one question, please!!
|
|||
|---|---|---|---|
|
#18+
Плиз, посмотрите - очень простенький коннект пула соединений к mySQL; Почему драйвер находится и все ОК , когда это все пишется в main() , но если этот кусочек вызывается из сервлета или из users tag - то ругается что Driver не найден? try { DriverAdapterCPDS pcds = new DriverAdapterCPDS(); pcds.setDriver("com.mysql.jdbc.Driver"); pcds.setUrl("jdbc:mysql://localhost/test"); pcds.setUser("root"); pcds.setPassword("root"); Jdbc2PoolDataSource tds = new Jdbc2PoolDataSource(); tds.setConnectionPoolDataSource(pcds); DataSource ds = tds; con = ds.getConnection(); } catch (Exception ex) { System.out.println("ClassNotFoundExceptioncjjjjj : "+ex.getMessage()); } сегодня, 16:29 [1705070] Цитировать Сообщить модератору Все форумы / MySQL ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 14.07.2005, 16:38 |
|
||
|
ConnectionPool one question, please!!
|
|||
|---|---|---|---|
|
#18+
Может драйвер забыли в WEB-INF\lib\ положить? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 14.07.2005, 16:42 |
|
||
|
ConnectionPool one question, please!!
|
|||
|---|---|---|---|
|
#18+
еще вариант $CATALINA_HOME/common/lib ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 14.07.2005, 18:01 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=33166588&tid=2151963]: |
0ms |
get settings: |
9ms |
get forum list: |
15ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
61ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
41ms |
get tp. blocked users: |
1ms |
| others: | 204ms |
| total: | 349ms |

| 0 / 0 |
