Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 39594 invoked from network); 15 Jun 2004 21:54:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Jun 2004 21:54:16 -0000 Received: (qmail 36263 invoked by uid 500); 15 Jun 2004 21:54:39 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 35988 invoked by uid 500); 15 Jun 2004 21:54:37 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 35967 invoked by uid 99); 15 Jun 2004 21:54:37 -0000 Received: from [24.8.3.201] (HELO blackbox.vawter.com) (24.8.3.201) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 15 Jun 2004 14:54:37 -0700 Received: from vawter.com (blackbox.vawter.com [127.0.0.1]) by blackbox.vawter.com (8.12.8/8.12.8) with ESMTP id i5FLs4Kq010534 for ; Tue, 15 Jun 2004 15:54:05 -0600 Message-ID: <40CF6FFC.2000109@vawter.com> Date: Tue, 15 Jun 2004 15:54:04 -0600 From: Don Vawter User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: torque-user@db.apache.org Subject: There was no DataSourceFactory configured for the connection Cari Content-Type: multipart/alternative; boundary="------------010700090105000106020106" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --------------010700090105000106020106 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit What am I doing wrong? I know the connection works because I use the same url in dbVisualizer DEBUG LOG: DEBUG http8080-Processor3 org.apache.torque.TorqueInstance - init(/usr/local/jakarta-tomcat-4.1.30/work/Standalone/localhost/caridata/WEB-INF/classes/com/vawter/cari/Torque.properties)DEBUG http8080-Processor3 org.apache.torque.TorqueInstance - Config Object is org.apache.commons.configuration.PropertiesConfiguration@572200 DEBUG http8080-Processor3 org.apache.torque.TorqueInstance - init(org.apache.commons.configuration.PropertiesConfiguration@572200) DEBUG http8080-Processor3 org.apache.torque.TorqueInstance - setConfiguration(org.apache.commons.configuration.PropertiesConfiguration@572200) DEBUG http8080-Processor3 org.apache.torque.TorqueInstance - initialize() DEBUG http8080-Processor3 org.apache.torque.TorqueInstance - setConfiguration(org.apache.commons.configuration.BaseConfiguration@79338f) DEBUG http8080-Processor3 org.apache.torque.TorqueInstance - initAdapters(org.apache.commons.configuration.BaseConfiguration@79338f) WARN http8080-Processor3 org.apache.torque.TorqueInstance - Databases defined but no adapter configurations found! DEBUG http8080-Processor3 org.apache.torque.TorqueInstance - initDataSourceFactories(org.apache.commons.configuration.BaseConfiguration@79338f) DEBUG http8080-Processor3 org.apache.torque.TorqueInstance - Adding a dummy entry for default, mapped onto cari DEBUG http8080-Processor3 com.vawter.cari.SearchAction - init true DEBUG http8080-Processor3 org.apache.torque.TorqueInstance - getConfiguration() = org.apache.commons.configuration.BaseConfiguration@79338f WARN http8080-Processor3 org.apache.torque.oid.IDBroker - IDBroker is being used with db 'cari', which does not support transactions. IDBroker attempts to use transactions to limit the possibility of duplicate key generation. Without transactions, duplicate key generation is possible if multiple JVMs are used or other means are used to write to the database. DEBUG Thread-11 org.apache.torque.oid.IDBroker - IDBroker thread was started. DEBUG http8080-Processor3 com.vawter.cari.SearchAction - Database map org.apache.torque.map.DatabaseMap@217e67 DEBUG http8080-Processor3 com.vawter.cari.SearchAction - Criteria NewCriteria:: Current Query SQL (may not be complete or applicable): SELECT FROM DEBUG http8080-Processor3 com.vawter.cari.SearchAction - Criteria after Criteria:: tbl_CariMembers.LASTNAME<=>tbl_CariMembers.LASTNAME LIKE '%aw%': tbl_CariMembers.FIRSTNAME<=>tbl_CariMembers.FIRSTNAME LIKE '%%': Current Query SQL (may not be complete or applicable): SELECT FROM tbl_CariMembers WHERE tbl_CariMembers.LASTNAME LIKE '%aw%' AND tbl_CariMembers.FIRSTNAME LIKE '%%' DEBUG http8080-Processor3 org.apache.torque.util.Transaction - called safeRollback with null argument DEBUG http8080-Processor3 com.vawter.cari.SearchAction - Torque ExceptionThere was no DataSourceFactory configured for the connection Cari DEBUG http8080-Processor3 com.vawter.cari.SearchAction - [] Here is my Torque.Properties file torque.database.default = cari torque.database.cari.driver = com.microsoft.jdbc.sqlserver.SQLServerDriver torque.database.cari.url = jdbc:microsoft:sqlserver://192.168.0.2:1109;DatabaseName=Cari torque.database.cari.username = xxxxxx torque.database.cari.password = yyyyyyy Initialization code: try{ if(!Torque.isInit()){ String s=SearchAction.class.getResource("Torque.properties").getFile(); logger.debug("properties file " + s); Torque.init(s); logger.debug("init " + Torque.isInit()); logger.debug("Database map " + Torque.getDatabaseMap()); } } catch (TorqueException e) { logger.debug("Torque exception" + e.getMessage()); } catch (Exception ex ){ logger.debug("Exception: " +ex.getMessage()); } -- Don Lyra ('tiel), Boomer ('tiel), Ginger (SIE), Mona Lisa (BFA) Zebra Finch Flock http://www.vawter.com/index.cfm?fuseaction=pets.showimage&image_id=2971&galleryaction=pets.gallery www.parrotcams.com www.vawter.com www.dailycryptogram.com www.e-crypto.com --------------010700090105000106020106--