Results 1 to 10 of 10

Thread: Oracle db

Hybrid View

  1. #1

    Default Oracle db

    For persistence I first used
    Code:
    persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
    I then (later on the same project) entered
    Code:
    persistence setup  --provider HIBERNATE --database ORACLE
    Roo then creating the following POM dependency
    Code:
    <dependency>
                <groupId>com.oracle</groupId>
                <artifactId>ojdbc14</artifactId>
                <version>10.2.0.2</version>
            </dependency>
    Is the Oracle version is hard coded to 10.2.0.2? (If not where can I adjust it?) If so and if it doesn't match our version then the POM has to be edited. Wouldn't it be better to have some parameters on the persisence setup to direct Roo to use the correct version?

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    We have chosen the current up-to-date version of the Oracle driver. If you need a different version please change this in the pom.xml file which should be easy. There are also the dependency add and dependency remove commands which can assist you.

    HTH,
    Stefan
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

  3. #3
    Join Date
    Dec 2005
    Posts
    935

    Default

    If you are using 11g, update your dependency accordingly
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  4. #4
    Join Date
    May 2010
    Posts
    10

    Default

    Quote Originally Posted by Alan Stewart View Post
    If you are using 11g, update your dependency accordingly
    Hi, after I had tested Roo+Oracle back in March this year, and having posted my experiences in this forum and in Jira, I now am still confronted with the same problems, which I could not solve this time. Last time it has just been about correcting the jdbc-url in database.properties and about modifying the Oracle jdbc dependency in pom.xml. This time the same changes seem not to suffice. Even with these two manipulations/corrections I get:

    "The ORACLE JDBC driver is not available in public maven repositories. Please adjust the pom.xml dependency to suit your needs."

    To be concrete: I have replaced the dependency with the one found in the spring bundle repository.

    I am using 11g, but be sure, this cannot be the problem, the 10g jdbc drivers are compatible with 11g, this is tested in many projects I am involved with.

    It is very pitty, that such a petty issue, seems to slow down so many people who want to evaluate Roo with Oracle and regularly come and write in this forum about what seems to be the same issue again and again. So please, write down a step-by-step tutorial, about successfully connecting Roo to Oracle.

    If there is a thread here, containing such a "tutorial" please point me to it, I have just not found one.

    Thanks in advance,

    Xenofon

    P.S. I very much am excited about Roo and am eager to use it for Oracle based projects

  5. #5
    Join Date
    Dec 2005
    Posts
    935

    Default

    It would be a simple matter for me to change the dependency to

    Code:
    		<dependency>
    			<groupId>com.oracle.jdbc</groupId>
    			<artifactId>com.springsource.oracle.jdbc</artifactId>
    			<version>10.2.0.2</version>
    		</dependency>
    So that you don't have to run the mvn install command to place the jar from your Oracle distribution into your maven repo

    If a user wanted a different Oracle driver such as a specific 11g version, then they could replace their dependency with the version of their choice. At least, the above dependency would be downloaded automatically.

    Raise a Jira improvement request
    Alan
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  6. #6
    Join Date
    May 2010
    Posts
    10

    Default

    As I have tried to describe, just changing the dependency in pom.xml did not help this time.
    Concerning mvn install. Do you mean to say, Roo+Oracle will only work properly if I setup my own repository?...

Posting Permissions

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