db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Clos <mail...@gmx.net>
Subject Re: Problem with configuration for DB2
Date Thu, 02 Dec 2004 20:40:25 GMT
i think torque canĀ“t find your jdbc Driver classes.

Check you classpath. If it not works please use a higher log level and
post more details of this exception.


Stefan


Dave Gray schrieb:

>I am using the type 2 driver: COM.ibm.db2.jdbc.app.DB2Driver
>and the url: jdbc:db2:SAMPLE
>
>-----Original Message-----
>From: Michael.Kashambuzi@bmwna.com [mailto:Michael.Kashambuzi@bmwna.com]
>
>Sent: Thursday, December 02, 2004 4:24 PM
>To: torque-user@db.apache.org
>Subject: RE: Problem with configuration for DB2
>
>Dave:
>
>Are you using the JDBC 2.0 driver?
>
>Michael
>
>-----Original Message-----
>From: Dave Gray [mailto:Dave_Gray@versata.com]
>Sent: Thursday, December 02, 2004 3:06 PM
>To: torque-user@db.apache.org
>Subject: Problem with configuration for DB2
>
>
>I have been using Torque with MSSQL. We need to support multiple
>database types so I am testing our apps with other databases. When I try
>to run against DB2 8.2 I get the following output:
>----------------------------------------------------------------
>C:\torque-gen-3.1>ant -f=build-torque.xml jdbc
>Buildfile: build-torque.xml
>
>jdbc:
>     [echo] +-----------------------------------------------+
>     [echo] |                                               |
>     [echo] | Generating XML from JDBC connection !         |
>     [echo] |                                               |
>     [echo] +-----------------------------------------------+
>[torque-jdbc-transform] Torque - JDBCToXMLSchema starting
>[torque-jdbc-transform] Your DB settings are:
>[torque-jdbc-transform] driver : COM.ibm.db2.jdbc.app.DB2Driver
>[torque-jdbc-transform] URL : jdbc:db2:SAMPLE
>[torque-jdbc-transform] user : dgray
>[torque-jdbc-transform] schema : dgray
>[torque-jdbc-transform] DB driver sucessfuly instantiated
>
>BUILD FAILED
>C:\torque-gen-3.1\build-torque.xml:340: java.sql.SQLException: No
>suitable driver
>-----------------------------------------
>My build.properties file look like:
>-----------------------------------------
>
>torque.project = DB2Test
>
>torque.database = db2
>torque.database.schema = dgray
>torque.schema.dir = db2schema
>
>torque.database.buildUrl = jdbc:db2:SAMPLE
>torque.database.url = jdbc:db2:SAMPLE
>torque.database.driver = COM.ibm.db2.jdbc.app.DB2Driver
>torque.database.user = dgray
>torque.database.password = xxxxxxxxxxxxxx
>torque.database.host = xxxxxxxxxxxxxxxx
>--------------------------------------
>Any suggestions on what the problem is?
>Thanks,
>Dave
>
>---------------------------------------------------------------------
>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
>
>
>
>---------------------------------------------------------------------
>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