Results 1 to 7 of 7

Thread: oracle

  1. #1
    Join Date
    Jun 2009
    Posts
    7

    Default oracle

    hi im new to roo

    i created a project in roo an i use
    install jpa -provider HIBERNATE -database ORACLE

    when i tried to deploy in maven it says than the oracle driver is missing , i installed the oracle driver in maven but when i tried to compile it keeps saying that the oracle driver is missing , should i change anithing in pom.xml or in roo in order to compile it

    thanks

  2. #2

    Default

    Hi,

    Have you tried to add the driver in the pom.xml as a project´s dependency??

    I think you will also have to modify the database.properties file

    Regards

  3. #3
    Join Date
    Feb 2005
    Posts
    31

    Default

    Isn't that something that Roo should do automatically? I understand it does that if we choose Hypersonic (at least per the wedding tutorial).

  4. #4
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    The following fragment from Roo's dependencies.xml shows the dependency configuration for each --database:

    Code:
    	<databases>
    		<database id="HYPERSONIC">
    			<dependency org="org.hsqldb" name="com.springsource.org.hsqldb" rev="1.8.0.9" />
    		</database>
    		<database id="POSTGRES">
    			<dependency org="org.postgresql" name="com.springsource.org.postgresql.jdbc4" rev="8.3.604" />
    		</database>
    		<database id="MYSQL">
    			<dependency org="com.mysql.jdbc" name="com.springsource.com.mysql.jdbc" rev="5.1.6" />
    		</database>
    		<database id="H2">
    			<dependency org="com.h2database" name="com.springsource.org.h2" rev="1.0.71" />
    		</database>
    		<database id="MSSQL">
    			<dependency  org="net.sourceforge.jtds" name="com.springsource.net.sourceforge.jtds" rev="1.2.2" />
    		</database>
    		<database id="SYBASE">
    			<dependency org="net.sourceforge.jtds" name="com.springsource.net.sourceforge.jtds" rev="1.2.2" />
    		</database>
    	</databases>
    If you know of a specific dependency that can/should be used for Oracle, please feel free to log it into Jira. We'd prefer the dependency by available from a public Maven repository somewhere, but failing that if we know the precise group ID, artifact ID and version that applies to Oracle in private repositories, we can still configure that as the default in the POM.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  5. #5
    Join Date
    Feb 2005
    Posts
    31

    Default

    Thanks, Ben, for your response.

    As a matter of fact, while trying to resolve this problem, I came across posts in other forums which clearly stated that, for licensing reasons, Oracle JAR files can not be hosted on public repositories - special thanks to Oracle for that.

    I had to go through the painful exercise of locating the JAR files online, inventing a group, artifact id and version, installing them in my own repository, and configuring them as a dependency.

    For others who might read this later, both ojdbc14.jar and dms.jar are required.

  6. #6
    Join Date
    Nov 2010
    Posts
    3

    Default dms.jar

    where should i down load dms.jar

  7. #7
    Join Date
    Jun 2008
    Location
    Philadelphia, PA, USA
    Posts
    212

    Default

    Quote Originally Posted by tnabil View Post
    Thanks, Ben, for your response.
    For others who might read this later, both ojdbc14.jar and dms.jar are required.
    You can download Oracle's driver from technet.oracle.com

    You only need dms.jar if you want to use Oracle's profiling, right? I've used Roo with Oracle and only needed ojdbc14.jar.

    FYI, to install the JAR file for your machine, just follow the instructions from Maven - you'll get the error when you do a mvn install:

    mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.2 -Dpackaging=jar -Dfile=/path/to/file

    (This puts the oracle jdbc driver in your maven repo locally, i.e. ~/.m2/repository)

    It is annoying, but really an Oracle licensing issue. In enterprises that have artifactory or nexus repositories, they generally add this as one of their first locally managed dependencies.
    Ken Rimple
    Chariot Solutions
    email: krimple@chariotsolutions.com
    work: www.chariotsolutions.com/education
    personal: www.rimple.com

    Author: Spring Roo in Action (Manning)
    MEAP Site: manning.com/rimple

Posting Permissions

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