Hi Sergio,
Sergio del Amo Caballero wrote:
Hello,
I wanted to use OJB for a web application. So, i went to the ojb site
and follewed the getting started tutorial. Unfortunately i got stacked
with a mysql driver issue. I try not to write here because i guess this
is a common problem but i googled and try to look for the solution into
the mailing list archive (by the way the link to archive within
http://db.apache.org/ojb/mail-lists.html seems to be broken.)
Did you tried the alternative links?
http://db.apache.org/ojb/mail-archives.html
without
success.
I am runing:
- Ubuntu draper machine
- XAMPP for Linux 1.5.3a
- MySQL - 5.0.21
- Apache Ant version 1.6.5
- Apache Tomcat-5.5.17
- jdbc mysql driver: mysql-connector-java-3.1.13-bin.jar
I never used the 3.x driver, but the 5.x driver works without any problems.
Seems to be a classpath issue, if you run the ant task in debug mode
(ant build -debug) do you get any other warnings or more detailed error
message?
regards,
Armin
I downloaded the ojb-blank and the tutorials from
http://db.apache.org/ojb/docu/getting-started.html.
I set the build.properties to:
------------------------------------------------------------------------------------------
jcdAlias=default
databaseName=productmanager
databaseUser=db_user
databasePassword=db_user
# For MySQL this would look like:
dbmsName=MySQL
jdbcLevel=3.0
jdbcRuntimeDriver=com.mysql.jdbc.Driver
urlProtocol=jdbc
urlSubprotocol=mysql
urlDbalias=//localhost/productmanager
torque.database=mysql
torque.database.createUrl=${urlProtocol}:${urlSubprotocol}:${build.dir}/database/${databaseName}
torque.database.buildUrl=${torque.database.createUrl}
jar.name=my-project.jar
source.dir=src
source.java.dir=${source.dir}/java
source.resource.dir=${source.dir}/resources
source.test.dir=${source.dir}/test
source.schema.dir=${source.dir}/schema
build.dir=build
lib.dir=lib
target.dir=target
-------------------------------------------------------------------------------------------------------
But when i run:
-----------------------------------------------------------------------------------
ojb-blank]$ echo $CLASSPATH
/opt/lampp/lib/mysql-connector-java-3.1.13-bin.jar
ojb-blank]$ ant build setup-db
...
..
.
BUILD FAILED
/home/sdelamo/Desktop/ojb-blank/build.xml:189: The following error
occurred while executing this line:
/home/sdelamo/Desktop/ojb-blank/src/schema/build-torque.xml:383:
java.sql.SQLException: No suitable Driver for
jdbc:mysql:build/database/productmanager
Total time: 5 seconds
----------------------------------------------------------------------------------
Kann anyone help me.?
Thanks in advanced,
Sergio del Amo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]