Hi,

You probably need to include the mysql jar driver in your project.xml
dependency part as this target requires those drivers. the others
targets don't require the driver.
add something like this but for mysql :
                <dependency>
                        <id>postgresql</id>
                        <groupId>postgresql</groupId>
                        <artifactId>postgresql</artifactId>
                        <version>7.3-jdbc3</version>
                        <properties>
                                <war.bundle>true</war.bundle>
                        </properties>
                </dependency>

Damien


> -----Message d'origine-----
> De : jiaqi guo [mailto:[EMAIL PROTECTED]
> Envoy� : Wednesday, October 22, 2003 6:40 AM
> � : [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Objet : Torque Maven plugin, failed to execute torque:insert-sql
> 
> 
> Torque:om, torque:sql, torque:datadtd... works great. Got 
> error message
> when executing torque:insert-sql.
> -------------------------------------------------------------
> __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-10
> 
> Our new url ->
> 
> BUILD FAILED
> File...... file:/C:/Documents and
> Settings/joeblack/.maven/plugins/maven-torque-
> plugin-3.1/
> Element... torque-sql-exec
> Line...... 448
> Column.... 40
> java.sql.SQLException: No suitable Driver for
> Total time:  7 seconds
> 
> Here's part of project.properties
> ----------------------------------------------------------
> ##Torque Settings
> torque.project = ${pom.artifactId}
> torque.database = mysql
> torque.targetPackage = com.cyclops.${torque.project}.om
> 
> torque.database.manualCreation = true
> torque.database.url = jdbc:mysql://localhost/${torque.project}
> torque.database.driver = org.gjt.mm.mysql.Driver
> torque.database.user = root
> torque.database.password = 
> torque.database.host = localhost
> torque.runOnlyOnSchemaChange = false
> torque.sql.dir = ${maven.src.dir}/sql/${torque.database}
> torque.schema.dir = ${maven.src.dir}/conf/schema
> 
> ##Put these lines here in order to fix the Context bug
> ##Remove this where this torque bug fixed by apache
> torque.basePrefix = Base
> torque.addSaveMethod = true
> torque.saveException = Exception
> 
> torque.contextProperties = project.properties
> 
> 
> Is that a whitespace after " No suitable Driver for"? I can't 
> figure out
> what happened here.
> The version of torque plugin is 3.1.
> 
> Regards
> Jiaqi
> �
> [EMAIL PROTECTED]
> http://cyclops-group.sourceforge.net
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to