Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Data Source Failure

    I'm using CF 6.1 and MySQL 4.1 and had problems getting the handshake to work
    which I resolved. Now I'm getting the following error :

    Connection verification failed for data source: learningcoldfusion
    []java.sql.SQLException: No suitable driver available for learningcoldfusion,
    please check the driver setting in resources file, error: com.mysql.jdbc.Driver
    The root cause was that: java.sql.SQLException: No suitable driver available
    for learningcoldfusion, please check the driver setting in resources file,
    error: com.mysql.jdbc.Driver

    I'm new to CF and learning as I go, but now I'm stuck without a DB connection.
    Any ideas on this? I've googles the rror code and such and have not found
    anything that seems to work or resolve the issues.

    I'm running on a local machine with XP SP2.

    Thank you in advance for any help you can offer.


    HueysDad Guest

  2. Similar Questions and Discussions

    1. Data binding failure
      Please help me on the following problem: I try to use Repeater to show a series of Checkbox. The data are stored in XML file. the following code...
    2. XML Data Source
      I am thinking of creating an online application using an XML file as it's primary data source. The XML file on the web server will be refreshed via...
    3. Data source name too long (asp)
      I am using asp and I am trying to set up a custom connection string using the Dreamweaver menus. I have entered the following into the Connection...
    4. moving data from one data source to another
      I'm trying to move data from one data source to another. I don't want to loop - because it will kill performance. A simple Select into or Insert...
    5. about data source???
      I have an access database developed. I have added a new table to link to the original developed table. Then I want to change my original form and...
  3. #2

    Default Re: Data Source Failure

    I'm assuming you followed the instructions in this tech note to resolve the
    handshake error?
    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=6ef0253[/url]

    If so, is it possible that you have more than one version of the mySQL
    connector jar in the cf_root/WEB-INF/lib directory ? (ie. two connector jar
    files with different version numbers)

    mxstu Guest

  4. #3

    Default Re: Data Source Failure

    Hi;

    Thank-you for the speedy reply! the onnly files I have in cf_root/WEB-INF/lib
    is:
    js.jar
    mysql-connector-java-3.1.11-bin.jar
    empty.txt

    I did not get the error message:
    Connection verification failed for data source: learningcoldfusion
    []java.sql.SQLException: No suitable driver available for learningcoldfusion,
    please check the driver setting in resources file, error: com.mysql.jdbc.Driver
    The root cause was that: java.sql.SQLException: No suitable driver available
    for learningcoldfusion, please check the driver setting in resources file,
    error: com.mysql.jdbc.Driver

    Until after I followed the tech note at:
    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=6ef0253[/url]




    HueysDad Guest

  5. #4

    Default Re: Data Source Failure

    Did you make sure to restart the CF services after placing the jar in the cf_root/WEB-INF/lib directory?
    mxstu Guest

  6. #5

    Default Re: Data Source Failure

    I just tried version 3.1.11 with MX 6.1 and got a Log4Jlogger class error.

    Connection verification failed for data source: mySQLDSN
    []java.sql.SQLException: Unable to instantiate logger class
    'com.mysql.jdbc.log.Log4JLogger', exception in constructor?
    The root cause was that: java.sql.SQLException: Unable to instantiate logger
    class 'com.mysql.jdbc.log.Log4JLogger', exception in constructor


    There were some [url]http://www.sargeway.com/blog/index.cfm?mode=entry&entry=62[/url]
    with some of the 3.1.x jars and MX6.1. Try using another version of the jar.
    I've had success with some of the older versions, both (3.0.17ga) and (3.1.9).
    Although, some of the later versions may work as well.

    You can probably find them at any one of the ftp mirror sites listed at
    mysql.com. For example:
    [url]ftp://ftp.orst.edu/pub/mysql/Downloads/Connector-J/[/url]
    [url]ftp://mirror.services.wisc.edu/mirrors/mysql/Downloads/Connector-J/[/url]





    mxstu Guest

  7. #6

    Default Re: Data Source Failure

    Thanks again for the information.

    I have been very diligent in starting and stoping the CF Services whenever
    I've made changes. I just tried mysql-connector-java-3.0.17-ga-bin.jar as well
    as the mysql-connector-java-3.2.0-alpha-bin.jar and I get the same erro code I
    have been.

    I noticed in the 3.0.17.jar there are some accompanying files and folders
    (/lib and com/mysql/jbdc ) do any of these need to be extracted into my
    CF-root/ oe WEB-INF/ folders? Or???

    Anymore help would be most appreciated!



    HueysDad Guest

  8. #7

    Default Re: Data Source Failure

    No. You should only need to place the mysql-connector-java-3.0.17-ga-bin.jar
    file in the cf_root/WEB-INF/lib directory. Just make sure the
    mysql-connector-java-3.0.17-ga-bin.jar file is the only version of the mySQL
    jar in the cf_root/WEB-INF/lib directory (ie. remove any other versions of the
    jar from that directory)

    mxstu Guest

  9. #8

    Default Re: Data Source Failure

    I removed the js.jar file from cf_root/WEB-INF/lib directory. The only file in
    there is mysql-connector-java-3.0.17-ga-bin.jar

    And I still get:

    Connection verification failed for data source: learningcoldfusion
    []java.sql.SQLException: No suitable driver available for learningcoldfusion,
    please check the driver setting in resources file, error:
    The root cause was that: java.sql.SQLException: No suitable driver available
    for learningcoldfusion, please check the driver setting in resources file,
    error:

    I've started and stopped the service. I've got the JDBC URL:
    jdbc:mysql://localhost:3306/learningcoldfusion
    and the JDB Driver Name as: com.mysql.jdbc.Driver

    Sigh...any other ideas?


    HueysDad Guest

  10. #9

    Default Re: Data Source Failure

    You don't need to remove js.jar. Only other versions of the mySQL jar. Check to see if there are any other versions in the class path.
    mxstu Guest

  11. #10

    Default Re: Data Source Failure

    Hi;

    Not sure where the class patch is that I should look at? Like I said...I'm new to CF and MySQL and feeling really dumb right about now... :(
    HueysDad Guest

  12. #11

    Default Re: Data Source Failure

    Well, now I feel silly for forgetting a simple cause of this error ;-) Before
    you check the class path, check your datasource settings. This It is a string
    of paths separated by a comma. However, check the datasource settings first as
    that might be your problem.

    mxstu Guest

  13. #12

    Default Re: Data Source Failure

    WOOOO HOOOO...I'm in business!!

    I had the Drive Class as the Driver Name. I also did not have the MySQL
    Connector/J noted as the Driver Name!

    Thank you so much for yuor persistence and patience in helping me through
    this. I was about ready to put myself on suicide watch! :)

    Thanks again!

    HueysDad Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139