You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Florian Schlosser <bi...@web.de> on 2005/02/24 16:01:21 UTC
Problem with building ojb-blank
Hello !
I want build the "ojb-blank" with mysql. I have changed the build properties
and set the class path to the mysql connector but when I build the project I
get this error message:
BUILD FAILED:
C:\Development\Projects\Eclipse\DatabaseTest\ojb\build.xml:141: The
following error occurred while executing this line:
C:\Development\Projects\Eclipse\DatabaseTest\ojb\src\schema\build-torque.xml
:318: java.sql.SQLException: No suitable Driver for
jdbc:mysql:build/resources///172.16.12.3:3306/ojb
I hope somebody can help me.
Thanks
Florian Schlosser
Re: Problem with building ojb-blank
Posted by Danilo Tommasina <dt...@risksys.com>.
Hi,
you have to put the MySQL JDBC driver jar into the Eclypse classpath, the JDBC driver can be downloaded from the mysql web-site.
bye
danilo
> Hello !
>
>
>
> I want build the "ojb-blank" with mysql. I have changed the build properties
> and set the class path to the mysql connector but when I build the project I
> get this error message:
>
>
>
> BUILD FAILED:
> C:\Development\Projects\Eclipse\DatabaseTest\ojb\build.xml:141: The
> following error occurred while executing this line:
>
> C:\Development\Projects\Eclipse\DatabaseTest\ojb\src\schema\build-torque.xml
> :318: java.sql.SQLException: No suitable Driver for
> jdbc:mysql:build/resources///172.16.12.3:3306/ojb
>
>
>
>
>
> I hope somebody can help me.
>
>
>
> Thanks
>
> Florian Schlosser
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Problem with building ojb-blank
Posted by Thomas Dudziak <to...@gmail.com>.
You need to also adapt the torque.database.* settings in the
build.properties file.
For MySQL, you probably would introduce a property pointing to the
host and then define
databaseHost=//localhost
urlDbalias=${databaseHost}/${databaseName}
torque.database.createUrl=${urlProtocol}:${urlSubprotocol}:${databaseHost}/
torque.database.buildUrl=${urlProtocol}:${urlSubprotocol}:${urlDbalias}
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org