Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Unable to get connection from driver

  1. #1
    Join Date
    Dec 2007
    Posts
    7

    Exclamation Unable to get connection from driver

    I run database introspect --schema myschema and ...
    message error "Unable to get connectio from driver".
    my OS is Windows XP and JDK 1.6.0_18.

  2. #2
    Join Date
    Dec 2005
    Posts
    929

    Default

    What database? Have you specified the correct database.url property, username and password?
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  3. #3
    Join Date
    Dec 2007
    Posts
    7

    Default

    MySql and all the properties are well.

    Code:
    #Updated at Wed Aug 25 13:02:26 CST 2010
    #Wed Aug 25 13:02:26 CST 2010
    database.password=
    database.url=jdbc\:mysql\://localhost\:3306\jedisv
    database.username=root
    database.driverClassName=com.mysql.jdbc.Driver

  4. #4
    Join Date
    Dec 2005
    Posts
    929

    Default

    You should use a forward slash between the port and the database name.
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  5. #5
    Join Date
    Dec 2007
    Posts
    7

    Default

    Thank you very much

  6. #6

    Default

    Argh. I got stung by the same thing.

    Also I left the \: in there without specifying the default port. That broke it too.

  7. #7
    Join Date
    Nov 2010
    Posts
    6

    Default unable to introspect or reverse engineer with HYPERSONIC_PERSISTENT

    I get the Unable to get connection from driver message
    I ran the install-jdbc-drivers.roo before attempting. Would it be possible to get pre release 1.1.1 pdf documentation?

    log.roo file attached
    Attached Files Attached Files

  8. #8
    Join Date
    Dec 2005
    Posts
    929

    Default

    With HYPERSONIC_PERSISTENT, I assume you have the database running in a different window or service? For example, to access hsql persistent db's, I need to run a command like the following first (in linux):

    Code:
    java -cp /home/stewarta/.m2/repository/org/hsqldb/hsqldb/1.8.0.10/hsqldb-1.8.0.10.jar org.hsqldb.Server --database.0 file:tmp/roo1696 --dbname.0 xdb
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  9. #9
    Join Date
    Nov 2010
    Posts
    6

    Default running HSQLDB in stand alone mode

    Hi Alan,

    No I was running it in pure standalone mode with the file url. It worked that way in a separate non Spring Roo project that used Hibernate. Should I be running it as a server? Does roo work using a persistent embeded database? I would be using this just during development time

  10. #10
    Join Date
    Dec 2005
    Posts
    929

    Default

    Regards to the documentation, if you do get the latest code from Git and do a mvn assembly:assembly, it will generate a PDF in and is contained in the distribution zip
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

Posting Permissions

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