Return-Path: Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 1149 invoked by uid 500); 7 Aug 2003 15:00:57 -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 1094 invoked from network); 7 Aug 2003 15:00:57 -0000 Received: from mail.chessys.com (209.251.33.34) by daedalus.apache.org with SMTP; 7 Aug 2003 15:00:56 -0000 Received: from OB1 [209.251.44.98] by mail.chessys.com (SMTPD32-7.15) id A9A88B50134; Thu, 07 Aug 2003 11:00:56 -0400 From: "Patrick O'Brien" To: "Apache Torque Users List" Subject: RE: Problems with save() method with Peer class Date: Thu, 7 Aug 2003 11:00:57 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <01cb01c35cf2$de94a370$0200a8c0@andras> Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I'm a newbie and an at this point simply evaluating torque for possible use. So far I have not been able to get it to work. I plan to use torque in combo with struts and tomcat connecting to a ms sql db. I am able to generate the classes and scripts from the xml file. However when I call the save() method I too get a null pointer. I do notice that the init method (being called from a special InitTorqueServlet) never returns. No error no nothing it just hangs. For sanity sake I have entered bogus connection data and I do get the correct exception. Furthermore I plan to use the tomcat realm class for authentication, and entering the same criteria, I am able to make a connection with this db. The db monitor I am using shows me the realmclasses connection, but the torque connection is never made. Has anyone used mssql with torque? Any other ideas why this connection is never being made. Does torque only work with certain drivers? Torque.properties follows ------------------------------ torque.database.default=cct torque.database.cct.adapter=mssql ## Using torque's old pool torque.dsfactory.cct.factory=org.apache.torque.dsfactory.TorqueDataSourceFac tory torque.dsfactory.cct.pool.defaultMaxConnections=10 torque.dsfactory.cct.pool.maxExpiryTime=3600 torque.dsfactory.cct.pool.connectionWaitTimeout=10 torque.dsfactory.cct.connection.driver=com.inet.tds.TdsDriver torque.dsfactory.cct.connection.url=jdbc:inetdae7a:lisa?database=cct torque.dsfactory.cct.connection.user=sa torque.dsfactory.cct.connection.password= ------------------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org