0 Replies Latest reply on Oct 7, 2005 3:18 AM by sreenath M

    Error while trying to configure datasource for Mysql

    sreenath M Newbie

      Hi All

      I have configured connectionpooling for MYSQL using Hibernate on Jboss
      but the problem is when i am trying to use the jndi name its working but on jboss console i get a error saying

      12:09:19,601 INFO [DatasourceConnectionProvider] Using datasource: java:/metada
      ta
      12:09:19,632 WARN [JBossManagedConnectionPool] Throwable while attempting to ge
      t a new connection: null
      org.jboss.resource.JBossResourceException: Could not create connection; - nested
       throwable: (org.jboss.resource.JBossResourceException: Apparently wrong driver
      class specified for URL: class: com.mysql.jdbc.Driver, url: jdbc:mysql://localho
      st:3306/metadata)
       at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.c
      reateManagedConnection(LocalManagedConnectionFactory.java:161)
       at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.cr
      eateConnectionEventListener(InternalManagedConnectionPool.java:508)
       at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.ge
      tConnection(InternalManagedConnectionPool.java:207)
       at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BaseP
      ool.getConnection(JBossManagedConnectionPool.java:534)
       at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManage
      dConnection(BaseConnectionManager2.java:395)
       at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedCo
      nnection(TxConnectionManager.java:297)
       at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateC
      onnection(BaseConnectionManager2.java:447)
       at org.jboss.resource.connectionmanager.BaseConnectionManager2$Connectio
      nManagerProxy.allocateConnection(BaseConnectionManager2.java:874)
       at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(Wrapp
      erDataSource.java:103)
       at org.hibernate.connection.DatasourceConnectionProvider.getConnection(D
      atasourceConnectionProvider.java:67)
      


      But this driver was working properly when i had used ordinary JDBC mechnism like prepared statment etc...

      Any help greatly appreciated..

      Thanks
      Sreenath M