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 [EMAIL PROTECTED]
DEBUG http8080-Processor3 org.apache.torque.TorqueInstance - init([EMAIL PROTECTED])
DEBUG http8080-Processor3 org.apache.torque.TorqueInstance - setConfiguration([EMAIL PROTECTED])
DEBUG http8080-Processor3 org.apache.torque.TorqueInstance - initialize()
DEBUG http8080-Processor3 org.apache.torque.TorqueInstance - setConfiguration([EMAIL PROTECTED])
DEBUG http8080-Processor3 org.apache.torque.TorqueInstance - initAdapters([EMAIL PROTECTED])
WARN http8080-Processor3 org.apache.torque.TorqueInstance - Databases defined but no adapter configurations found!
DEBUG http8080-Processor3 org.apache.torque.TorqueInstance - initDataSourceFactories([EMAIL PROTECTED])
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() = [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
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



Reply via email to