db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damien SAUVAGEOT" <dsauvag...@omnikles.com>
Subject RE: Torque Maven plugin, failed to execute torque:insert-sql
Date Wed, 22 Oct 2003 07:49:29 GMT
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:cyclops@alex4all.com]
> Envoyé : Wednesday, October 22, 2003 6:40 AM
> À : torque-user@db.apache.org; users@maven.apache.org
> 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
>  
> g-cyclops@users.sourceforge.net
> http://cyclops-group.sourceforge.net
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message