Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 58976 invoked from network); 20 Jan 2007 01:03:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jan 2007 01:03:35 -0000 Received: (qmail 14508 invoked by uid 500); 20 Jan 2007 01:03:40 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 14484 invoked by uid 500); 20 Jan 2007 01:03:40 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 14473 invoked by uid 99); 20 Jan 2007 01:03:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jan 2007 17:03:40 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [132.248.34.3] (HELO uxmal.cifn.unam.mx) (132.248.34.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jan 2007 17:03:32 -0800 Received: from uxmal.cifn.unam.mx (uxmal [132.248.34.3]) by uxmal.cifn.unam.mx (8.12.11/8.12.11) with SMTP id l0K14BSq029055 for ; Fri, 19 Jan 2007 19:04:11 -0600 (CST) (envelope-from pbranger@ccg.unam.mx) Received: from 132.248.34.251 (SquirrelMail authenticated user pbranger) by uxmal.cifn.unam.mx with HTTP; Fri, 19 Jan 2007 19:04:11 -0600 (CST) Message-ID: <33094.132.248.34.251.1169255051.squirrel@uxmal.cifn.unam.mx> Date: Fri, 19 Jan 2007 19:04:11 -0600 (CST) Subject: no DataSourceFactory configured From: "Pierre-Alain Branger" To: torque-user@db.apache.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.4.0.264935, Antispam-Data: 2007.1.19.155433 X-PerlMx-Spam: Gauge=XIIIIII, Probability=16%, Report='URI_HOSTNAME_CONTAINS_EQUALS 1, PRIORITY_NO_NAME 0.716, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HAS_X_PRIORITY 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' X-Virus-Checked: Checked by ClamAV on apache.org Hi everybody, I follow the tutorial and could generate my mysql database and the corresponding java access classes. I made a jar and add it to a java project that compiled well. But when I launch my application I obtain the following message: java.lang.NullPointerException: There was no DataSourceFactory configured for the connection BddPortalCCG at org.apache.torque.TorqueInstance.getConnection(TorqueInstance.java:711) at org.apache.torque.Torque.getConnection(Torque.java:268) at org.apache.torque.util.Transaction.beginOptional(Transaction.java:80) at org.apache.torque.util.Transaction.begin(Transaction.java:62) at mx.unam.ccg.BddPortal.BaseApplication.save(BaseApplication.java:361) at mx.unam.ccg.BddPortal.BaseApplication.save(BaseApplication.java:343) at testbddportalccg.Main.main(Main.java:36) I hope so�eone could help, me. Here are the different configuring files I use: ------------- torque.properties ---------------- torque.database.default = BddPortalCCG torque.database.BddPortalCCG.adapter = mysql # Using commons-dbcp torque.dsfactory.BddPortalCCG.factory = org.apache.torque.dsfactory.SharedPoolDataSourceFactory torque.dsfactory.BddPortalCCG.connection.driver = org.gjt.mm.mysql.Driver torque.dsfactory.BddPortalCCG.connection.url = jdbc:mysql://localhost:3306/BddPortalCCG torque.dsfactory.BddPortalCCG.connection.user = torque.dsfactory.BddPortalCCG.connection.password = ------------- project.properties ---------------- # The name of the project Torque will generate code for. torque.project=BddPortalCCG # The target database platform. torque.database=mysql # The target package to put the generated classes in. torque.targetPackage=mx.unam.ccg.BddPortal # The JDBC URL that Torque can use to create and # drop databases if instructed to do so. torque.database.createUrl=jdbc:mysql://localhost/mysql # The JDBC URL that will be used to create tables in your database. torque.database.buildUrl=jdbc:mysql://localhost/BddPortalCCG # The JDBC URL that will be used to access your database. torque.database.url=jdbc:mysql://localhost/BddPortalCCG # The JDBC database driver to use when connecting to your database. torque.database.driver=org.gjt.mm.mysql.Driver # The administrative username that has sufficient privileges to create # and drop databases and tables that Torque executes at generation time. torque.database.user= # The administrative password for the supplied username. torque.database.password= # The hostname or IP address of your database server. torque.database.host=localhost # The location of the your *-schema.xml files (see below). torque.schema.dir=./schema ------------- schema.xml ----------------
Thanks for your help, Pierre-Alain Branger Program of Computational Genomics Campus Morelos Tel. +52 777 13 100 24 pbranger@ccg.unam.mx --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org