Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 54

Thread: DBRE - Null pointer

  1. #31
    Join Date
    Jun 2010
    Posts
    17

    Default

    Yes. .jtds to .jtds.jdbc

  2. #32
    Join Date
    Dec 2005
    Posts
    930

    Default

    Thanks. It appears to work with Sybase. I checked the change in Git ID f8877afdc79aa7ae9665a0171d635ec48d73509d. Would you all please test this with MS SQL?
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  3. #33
    Join Date
    Jun 2010
    Posts
    17

    Default

    Thanks Alan. I have tested with MSSQL Server 2008.
    -Mdu

  4. #34
    Join Date
    Sep 2010
    Posts
    11

    Default dbre introspect (MSSQL) successful

    Nice sleuthing, mduduzik. Alan, I've verified your fix here too. Thank you both.


    com.blah roo> database introspect --schema dbo
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <database name="Test" schema="dbo">
    <table name="A_TEST_TABLE">
    ...

  5. #35
    Join Date
    Dec 2005
    Posts
    930

    Default

    Yes mduduzik - nice work.

    I'll mark the bug as resolved as it also works with Sybase.
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  6. #36
    Join Date
    Sep 2010
    Posts
    3

    Default not working on db2

    I'm getting
    roo> database introspect --schema vap
    No Spring Roo add-ons were found that offer a similar JDBC driver
    JDBC driver not available for 'com.ibm.db2.jcc.DB2Driver'
    roo>

    I looked at my pom and it has this entry
    <build>
    <plugins>
    <plugin>
    <groupId>org.apache.felix</groupId>
    <artifactId>maven-bundle-plugin</artifactId>
    <configuration>
    <instructions>
    <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>
    </instructions>
    </configuration>
    </plugin>
    </plugins>
    </build>

    will the new pom fix my problem with db2 also?

  7. #37
    Join Date
    Jun 2010
    Posts
    17

    Default

    Resolution of the issue in this thread addresses using JTDS driver (supports MSSQL and Sybase). I'm sure if DB2 is readily supported by Roo - i.e. if there's an addon for DB2 jdbc driver.

    If not, you'd have to 1) obtain DB2 driver (see http://numberformat.wordpress.com/20...-jdbc-drivers/ for a guide on this) and 2) Get it wrapped for OSGI container.

  8. #38
    Join Date
    Sep 2010
    Posts
    3

    Default db2 support

    I have a roo application currently running against my legacy database. For what I wanted it's work as is so far. But now I need to begin adding my databases tables to my app that have multiple column primary keys. I was hoping to generate those entities. So I have it working and talking to db2 for almost two months now. I have the db2 jdbc jars.

    Wrapping them in OSGI, that I don't know how to do. Is there documentation on this some where.

  9. #39
    Join Date
    Dec 2005
    Posts
    930

    Default

    I believe there are at least two DB2 jars to wrap - db2jcc.jar and db2jcc_license_cu.jar. An example can be found in the Roo wrapping directory if you get the code from Git. We also can't host the wrapped jars in any of SpringSource's public Maven repos, as DB2 is a licensed product. Of course you won't find any of the DB2 jars in any public Maven repo either.

    DB2 was always going to be the most difficult to support due to their licensing restrictions and the number of jars required. I will try to get the community edition and see about wrapping the jars and if successful, will post the procedure here or in a blog. Also, if you have a support contract with IBM perhaps you can get them to provide OSGi-enabled jars - IBM are one of the OSGi member companies afterall !
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  10. #40
    Join Date
    May 2010
    Posts
    10

    Default

    I am working daily with Oracle "full version" databases. Believe me, you are allowed to download and use any Oracle product for evaluation and development purposes. Please read the "OTN Developer Licence Terms".
    Last edited by xgrigoriadis; Oct 10th, 2010 at 04:01 AM.

Posting Permissions

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