SimpleJdonFrameworkTest运行在jboss-4.0.3SP1连接数据库有问题?

05-11-03 nameisaj
刚打开数据显示不出来,报错,再一刷新,数据就显示出来了,请问这是什么问题?

15:29:08,437 INFO [STDOUT] 15:29:08,437 INFO [ContainerDirector] <========
don Framework started successfully! =========>
15:29:09,281 WARN [JBossManagedConnectionPool] Throwable while attempting to g
t a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - neste
throwable: (org.jboss.resource.JBossResourceException: Apparently wrong driver
class specified for URL: class: com.mysql.jdbc.Driver, url: jdbc:mysql://localh
st:3306/test?useUnicode=true&characterEncoding=UTF-8)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.
reateManagedConnection(LocalManagedConnectionFactory.java:164)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.c
eateConnectionEventListener(InternalManagedConnectionPool.java:519)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.g
tConnection(InternalManagedConnectionPool.java:208)
.................................

nameisaj
2005-11-03 16:11
找到问题根源了,原来mysql.jar没放在deploy/lib下,我是放到了web-inf/lib下,真晕

猜你喜欢