Grokbase Groups Maven users May 2003
FAQ
I'm trying to run Torque via Maven, bit Torque can't seem
to find the JDBC driver class (oracle.jdbc.OracleDriver).
When I give maven the -X parameter it prints out that it is
adding the proper jar to the maven.dependency.classpath.
I've used winzip to look in the jar and the driver is there.

I am without a clue. Can anyone help?

--



With god as my witness I thought turkeys could fly.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org

Search Discussions

  • Marc Dugger at May 11, 2003 at 7:04 pm
    Jon:

    I solved this problem by defining a preGoal in my maven.xml which adds the
    jar (MySQL in my case) to the torque classpath:

    <preGoal name="torque:insert-sql">
    <path id="torque-classpath">
    <pathelement path="${torque-classpath}"/>
    <pathelement
    location="${maven.repo.local}/mm.mysql/jars/mm.mysql-2.0.7.jar"/>
    </path>
    </preGoal>

    Obviously, "location" will be dependent on where it's located on your
    machine. Hope that helps.

    -----Original Message-----
    From: Jon Strayer
    Sent: Sunday, May 11, 2003 8:44 AM
    To: Maven Users List
    Subject: Torque Classpath problems


    I'm trying to run Torque via Maven, bit Torque can't seem
    to find the JDBC driver class (oracle.jdbc.OracleDriver).
    When I give maven the -X parameter it prints out that it is
    adding the proper jar to the maven.dependency.classpath.
    I've used winzip to look in the jar and the driver is there.

    I am without a clue. Can anyone help?


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org
  • Jon Strayer at May 13, 2003 at 12:38 pm
    ** Reply to message from "Marc Dugger"
    <mdugger@austin.rr.com> on Sun, 11 May 2003 14:04:58 -0500
    Jon:

    I solved this problem by defining a preGoal in my maven.xml which adds the
    jar (MySQL in my case) to the torque classpath:

    <preGoal name="torque:insert-sql">
    <path id="torque-classpath">
    <pathelement path="${torque-classpath}"/>
    <pathelement
    location="${maven.repo.local}/mm.mysql/jars/mm.mysql-2.0.7.jar"/>
    </path>
    </preGoal>

    Obviously, "location" will be dependent on where it's located on your
    machine. Hope that helps.
    Thanks Marc. For some reason I'm getting the same error.
    But at least now I know the classpath is set correctly.

    --



    1-2-3-4-5! Thats the same combination on my luggage!

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org
  • Dion at May 18, 2003 at 11:13 am
    Jon,

    did u get this fixed? Is the oracle driver in the root classloader??
    --
    dIon Gillard, Multitask Consulting
    Blog: http://www.freeroller.net/page/dion/Weblog
    Work: http://www.multitask.com.au


    "Jon Strayer" <jon@strayer.net> wrote on 11/05/2003 11:43:52 PM:
    I'm trying to run Torque via Maven, bit Torque can't seem
    to find the JDBC driver class (oracle.jdbc.OracleDriver).
    When I give maven the -X parameter it prints out that it is
    adding the proper jar to the maven.dependency.classpath.
    I've used winzip to look in the jar and the driver is there.

    I am without a clue. Can anyone help?

    --



    With god as my witness I thought turkeys could fly.

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org
  • Jon Strayer at May 18, 2003 at 3:03 pm
    ** Reply to message from dion@multitask.com.au on Sun, 18
    May 2003 21:15:56 +1000

    No. I'm still having the same problem.
    Jon,

    did u get this fixed? Is the oracle driver in the root classloader??
    --
    dIon Gillard, Multitask Consulting
    Blog: http://www.freeroller.net/page/dion/Weblog
    Work: http://www.multitask.com.au


    "Jon Strayer" <jon@strayer.net> wrote on 11/05/2003 11:43:52 PM:
    I'm trying to run Torque via Maven, bit Torque can't seem
    to find the JDBC driver class (oracle.jdbc.OracleDriver).
    When I give maven the -X parameter it prints out that it is
    adding the proper jar to the maven.dependency.classpath.
    I've used winzip to look in the jar and the driver is there.

    I am without a clue. Can anyone help?

    --



    With god as my witness I thought turkeys could fly.

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org
    --



    Fear us just ignorance given reign - Geoff Strayer

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org
  • Jon Strayer at May 18, 2003 at 3:04 pm
    ** Reply to message from dion@multitask.com.au on Sun, 18
    May 2003 21:15:56 +1000
    Jon,

    did u get this fixed? Is the oracle driver in the root classloader??
    How do I tell if the oracle driver is in the root
    classloader?
    --
    dIon Gillard, Multitask Consulting
    Blog: http://www.freeroller.net/page/dion/Weblog
    Work: http://www.multitask.com.au


    "Jon Strayer" <jon@strayer.net> wrote on 11/05/2003 11:43:52 PM:
    I'm trying to run Torque via Maven, bit Torque can't seem
    to find the JDBC driver class (oracle.jdbc.OracleDriver).
    When I give maven the -X parameter it prints out that it is
    adding the proper jar to the maven.dependency.classpath.
    I've used winzip to look in the jar and the driver is there.

    I am without a clue. Can anyone help?

    --



    With god as my witness I thought turkeys could fly.

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org
    --



    On a scale of 1 to 4, what are your feelings about the colour green?

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org
  • Alex Liu at May 18, 2003 at 3:09 pm
    Hi,

    Just put JDBC driver (i.e. classes.zip) in $JAVA_HOME/jre/lib/ext directory.
    It will be loaded by JVM automatically.

    Alex

    -----Original Message-----
    From: Jon Strayer
    Sent: Sunday, May 18, 2003 11:05 AM
    To: Maven Users List
    Subject: Re: Torque Classpath problems


    ** Reply to message from dion@multitask.com.au on Sun, 18
    May 2003 21:15:56 +1000
    Jon,

    did u get this fixed? Is the oracle driver in the root classloader??
    How do I tell if the oracle driver is in the root
    classloader?
    --
    dIon Gillard, Multitask Consulting
    Blog: http://www.freeroller.net/page/dion/Weblog
    Work: http://www.multitask.com.au


    "Jon Strayer" <jon@strayer.net> wrote on 11/05/2003 11:43:52 PM:
    I'm trying to run Torque via Maven, bit Torque can't seem
    to find the JDBC driver class (oracle.jdbc.OracleDriver).
    When I give maven the -X parameter it prints out that it is
    adding the proper jar to the maven.dependency.classpath.
    I've used winzip to look in the jar and the driver is there.

    I am without a clue. Can anyone help?

    --



    With god as my witness I thought turkeys could fly.

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org
    --



    On a scale of 1 to 4, what are your feelings about the colour green?

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org
  • Jon Strayer at May 18, 2003 at 4:33 pm
    ** Reply to message from Alex Liu on
    Sun, 18 May 2003 11:09:27 -0400
    Hi,

    Just put JDBC driver (i.e. classes.zip) in $JAVA_HOME/jre/lib/ext directory.
    It will be loaded by JVM automatically.

    Alex
    That did it. Thanks.
    -----Original Message-----
    From: Jon Strayer
    Sent: Sunday, May 18, 2003 11:05 AM
    To: Maven Users List
    Subject: Re: Torque Classpath problems


    ** Reply to message from dion@multitask.com.au on Sun, 18
    May 2003 21:15:56 +1000
    Jon,

    did u get this fixed? Is the oracle driver in the root classloader??
    How do I tell if the oracle driver is in the root
    classloader?
    --
    dIon Gillard, Multitask Consulting
    Blog: http://www.freeroller.net/page/dion/Weblog
    Work: http://www.multitask.com.au


    "Jon Strayer" <jon@strayer.net> wrote on 11/05/2003 11:43:52 PM:
    I'm trying to run Torque via Maven, bit Torque can't seem
    to find the JDBC driver class (oracle.jdbc.OracleDriver).
    When I give maven the -X parameter it prints out that it is
    adding the proper jar to the maven.dependency.classpath.
    I've used winzip to look in the jar and the driver is there.

    I am without a clue. Can anyone help?

    --



    With god as my witness I thought turkeys could fly.

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org
    --



    On a scale of 1 to 4, what are your feelings about the colour green?

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org
    --



    And your crybaby whiny-assed opinion would be. . . ?

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org
  • Dion at May 18, 2003 at 4:17 pm
    The <dependency> element has a
    <properties>
    <classloader>root</classloader>
    </properties>

    within it.
    --
    dIon Gillard, Multitask Consulting
    Blog: http://www.freeroller.net/page/dion/Weblog
    Work: http://www.multitask.com.au


    "Jon Strayer" <jon@strayer.net> wrote on 19/05/2003 01:05:02 AM:
    ** Reply to message from dion@multitask.com.au on Sun, 18
    May 2003 21:15:56 +1000
    Jon,

    did u get this fixed? Is the oracle driver in the root classloader??
    How do I tell if the oracle driver is in the root
    classloader?
    --
    dIon Gillard, Multitask Consulting
    Blog: http://www.freeroller.net/page/dion/Weblog
    Work: http://www.multitask.com.au


    "Jon Strayer" <jon@strayer.net> wrote on 11/05/2003 11:43:52 PM:
    I'm trying to run Torque via Maven, bit Torque can't seem
    to find the JDBC driver class (oracle.jdbc.OracleDriver).
    When I give maven the -X parameter it prints out that it is
    adding the proper jar to the maven.dependency.classpath.
    I've used winzip to look in the jar and the driver is there.

    I am without a clue. Can anyone help?

    --



    With god as my witness I thought turkeys could fly.
    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org
    --



    On a scale of 1 to 4, what are your feelings about the colour green?

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org
  • Jon Strayer at May 18, 2003 at 4:42 pm
    ** Reply to message from dion@multitask.com.au on Mon, 19
    May 2003 02:19:14 +1000

    Like this?

    <dependency>
    <id>ojdbc</id>
    <version>1.4</version>

    <url>http://otn.oracle.com/software/tech/java/sqlj_jdbc/htdocs/jdbc9201.html</url>
    <properties>
    <classloader>root</classloader>
    </properties>
    </dependency>

    I added the properties element and it didn't help.

    The <dependency> element has a
    <properties>
    <classloader>root</classloader>
    </properties>

    within it.
    --
    dIon Gillard, Multitask Consulting
    Blog: http://www.freeroller.net/page/dion/Weblog
    Work: http://www.multitask.com.au


    "Jon Strayer" <jon@strayer.net> wrote on 19/05/2003 01:05:02 AM:
    ** Reply to message from dion@multitask.com.au on Sun, 18
    May 2003 21:15:56 +1000
    Jon,

    did u get this fixed? Is the oracle driver in the root classloader??
    How do I tell if the oracle driver is in the root
    classloader?
    --
    dIon Gillard, Multitask Consulting
    Blog: http://www.freeroller.net/page/dion/Weblog
    Work: http://www.multitask.com.au


    "Jon Strayer" <jon@strayer.net> wrote on 11/05/2003 11:43:52 PM:
    I'm trying to run Torque via Maven, bit Torque can't seem
    to find the JDBC driver class (oracle.jdbc.OracleDriver).
    When I give maven the -X parameter it prints out that it is
    adding the proper jar to the maven.dependency.classpath.
    I've used winzip to look in the jar and the driver is there.

    I am without a clue. Can anyone help?

    --



    With god as my witness I thought turkeys could fly.
    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org
    --



    On a scale of 1 to 4, what are your feelings about the colour green?

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org
    --



    En-uff with the Taglines already!!! - Slappy Squirrel

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriesmaven
postedMay 11, '03 at 1:43p
activeMay 18, '03 at 4:42p
posts10
users4
websitemaven.apache.org
irc#maven

People

Translate

site design / logo © 2019 Grokbase