Page 6 of 6 FirstFirst ... 456
Results 51 to 54 of 54

Thread: DBRE - Null pointer

  1. #51
    Join Date
    May 2010
    Posts
    10

    Default

    Quote Originally Posted by Alan Stewart View Post
    I use, for example,
    Code:
    persistence setup --provider HIBERNATE --database ORACLE --userName rootest --password rootest --databaseName XE
    resulting in

    Code:
    database.url=jdbc\:oracle\:thin\:@localhost\:1521\:XE
    I've written on that some time ago. ... Please look at Oracle's (open) jdbc documentation for 11.2 version of the database:

    http://download.oracle.com/docs/cd/E...s.htm#BEIJFHHB

    1) Please remove the slashes from "jdbc\:oracle\:thin\:" (before @)!
    2) Please replace back-slashes with forward-slashes (after @). Your example should look like: "//localhost:1521/XE"

  2. #52
    Join Date
    Dec 2005
    Posts
    929

    Default

    Unfortunately we can't remove the backslashes as they're put in there when the java.util.Property object is written out - no control over it
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  3. #53
    Join Date
    Dec 2010
    Posts
    1

    Default

    Quote Originally Posted by mduduzik View Post
    The following line in .../addon-jdbc/pom.xml:

    <Import-Package>*,net.sourceforge.jtds.jdbc;resolution:=op tional,com.mysql.jdbc;resolution:=optional,org.apa che.derby.jdbc;resolution:=optional,oracle.jdbc;re solution:=optional,org.h2;resolution:=optional,org .hsqldb;resolution:=optional,org.postgresql;resolu tion:=optional</Import-Package>


    ...must be changed to:

    <Import-Package>*,net.sourceforge.jtds;resolution:=optiona l,com.mysql.jdbc;resolution:=optional,org.apache.d erby.jdbc;resolution:=optional,oracle.jdbc;resolut ion:=optional,org.h2;resolution:=optional,org.hsql db;resolution:=optional,org.postgresql;resolution: =optional</Import-Package>


    Basically, we were referring to 'net.sourceforge.jtds' instead of 'net.sourceforge.jtds.jdbc'

    I hope this helps.

    -Mdu
    This thread seems to include multiple issues, I have a question on the fix for MS SQL mentioned back in page 3 #29. Where do I apply this change to the release version? I've tried editing the pom.xml in the addon.jdbc jar but I still get the "Unable to get connection from driver" error. I've also tried gitting the dev version, but it seems to hang any time I run a command.

  4. #54
    Join Date
    Sep 2010
    Posts
    11

    Default

    You'll need run the script "--file install-jdbc-drivers.roo" ...please see message #44.

    Quote Originally Posted by dfrankson View Post
    This thread seems to include multiple issues, I have a question on the fix for MS SQL mentioned back in page 3 #29. Where do I apply this change to the release version? I've tried editing the pom.xml in the addon.jdbc jar but I still get the "Unable to get connection from driver" error. I've also tried gitting the dev version, but it seems to hang any time I run a command.

Posting Permissions

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