Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 35082 invoked from network); 3 Dec 2003 18:08:15 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Dec 2003 18:08:15 -0000 Received: (qmail 95746 invoked by uid 500); 3 Dec 2003 18:07:55 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 95564 invoked by uid 500); 3 Dec 2003 18:07:54 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 4124 invoked from network); 3 Dec 2003 07:06:06 -0000 Message-ID: <007501c3b96b$323d6730$1601a8c0@ravi> Reply-To: "Ravi" From: "Ravi" To: Subject: hi ! facing problem while connecting to oracle (IMP**) Date: Wed, 3 Dec 2003 12:30:54 +0530 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0071_01C3B999.4B5D0CB0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0071_01C3B999.4B5D0CB0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0072_01C3B999.4B5D0CB0" ------=_NextPart_001_0072_01C3B999.4B5D0CB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi=20 this is RaviKumar from harbinger Systems,Pune,India we are using torque (ORM) frame work..we were facing problems while = connecting database oracle therough Base or BasePeer class... here i am = giving runtime exception along with my torque properties file... could you guide me what changes i have to make in my torque.properties = file so that i can fix my runtime exceptions.. looking faward to your valueable suggestion regards RaviKumar Error: org.apache.torque.TorqueException: Attempt to register pool for database = dblms t hat is not configured in Torque.properties at org.apache.torque.Torque.getPool(Unknown Source) at org.apache.torque.Torque.getConnection(Unknown Source) at org.apache.torque.util.BasePeer.doInsert(Unknown Source) at = com.lms.persist.BaseCustomerPeer.doInsert(BaseCustomerPeer.java:173) at = com.lms.persist.BaseCustomerPeer.doInsert(BaseCustomerPeer.java:151) at = com.lms.persist.BaseCustomerPeer.doInsert(BaseCustomerPeer.java:431) at Tester.main(Tester.java:24) rethrown as org.apache.torque.TorqueException: Attempt to register pool = for data base dblms that is not configured in Torque.properties at org.apache.torque.Torque.getConnection(Unknown Source) at org.apache.torque.util.BasePeer.doInsert(Unknown Source) at = com.lms.persist.BaseCustomerPeer.doInsert(BaseCustomerPeer.java:173) at = com.lms.persist.BaseCustomerPeer.doInsert(BaseCustomerPeer.java:151) at = com.lms.persist.BaseCustomerPeer.doInsert(BaseCustomerPeer.java:431) at Tester.main(Tester.java:24) Caused by: org.apache.torque.TorqueException: Attempt to register pool = for datab ase dblms that is not configured in Torque.properties at org.apache.torque.Torque.getPool(Unknown Source) ... 6 more Ravi kumar Software Engineer Harbinger Systems Pvt Ltd 55, Anmol,=20 Paud Road, Pune - 411 029,=20 Phone: +91 20 544 9683 Ext:222 moblie:91-9822647206 ------=_NextPart_001_0072_01C3B999.4B5D0CB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable


 

hi
 this is RaviKumar from harbinger=20 Systems,Pune,India
 we are using torque (ORM) frame work..we = were facing=20 problems while connecting database oracle therough Base or BasePeer = class...=20 here i am giving runtime exception along with my torque properties=20 file...
could you guide me what changes i have to make = in my=20 torque.properties file so that i can fix my runtime=20 exceptions..
looking faward to your valueable=20 suggestion
regards
RaviKumar
 
Error:
org.apache.torque.TorqueException: Attempt to = register=20 pool for database dblms t
hat is not configured in=20 Torque.properties
        at=20 org.apache.torque.Torque.getPool(Unknown=20 Source)
        at=20 org.apache.torque.Torque.getConnection(Unknown=20 Source)
        at=20 org.apache.torque.util.BasePeer.doInsert(Unknown=20 Source)
        at=20 com.lms.persist.BaseCustomerPeer.doInsert(BaseCustomerPeer.java:173)
&= nbsp;      =20 at=20 com.lms.persist.BaseCustomerPeer.doInsert(BaseCustomerPeer.java:151)
&= nbsp;      =20 at=20 com.lms.persist.BaseCustomerPeer.doInsert(BaseCustomerPeer.java:431)
&= nbsp;      =20 at Tester.main(Tester.java:24)
rethrown as = org.apache.torque.TorqueException:=20 Attempt to register pool for data
base dblms that is not configured = in=20 Torque.properties
        at=20 org.apache.torque.Torque.getConnection(Unknown=20 Source)
        at=20 org.apache.torque.util.BasePeer.doInsert(Unknown=20 Source)
        at=20 com.lms.persist.BaseCustomerPeer.doInsert(BaseCustomerPeer.java:173)
&= nbsp;      =20 at=20 com.lms.persist.BaseCustomerPeer.doInsert(BaseCustomerPeer.java:151)
&= nbsp;      =20 at=20 com.lms.persist.BaseCustomerPeer.doInsert(BaseCustomerPeer.java:431)
&= nbsp;      =20 at Tester.main(Tester.java:24)
Caused by: = org.apache.torque.TorqueException:=20 Attempt to register pool for datab
ase dblms that is not configured = in=20 Torque.properties
        at=20 org.apache.torque.Torque.getPool(Unknown=20 Source)
        ... 6=20 more


 
 
 
Ravi kumar
Software = Engineer
Harbinger=20 Systems Pvt Ltd
55, Anmol,
Paud Road, Pune - 411 029,
Phone: = +91 20=20 544 9683 Ext:222
moblie:91-9822647206
 
 

------=_NextPart_001_0072_01C3B999.4B5D0CB0-- ------=_NextPart_000_0071_01C3B999.4B5D0CB0 Content-Type: java/*; name="Tester.java" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Tester.java" import java.util.*; import org.apache.torque.*; import org.apache.torque.util.*; import com.lms.persist.BaseCustomer; import com.lms.persist.Customer; import com.lms.persist.CustomerPeer; import com.lms.persist.BaseCustomerPeer; import com.lms.persist.map.*; public class Tester { public static void main(String[] args) { try{ String filepath="./Torque.properties"; System.out.println("database initlised"); Torque.init(filepath); System.out.println("initialized"); Customer cst=new Customer(); cst.setFirstname("ravi"); cst.setLastname("kumar"); cst.setAddress("81-16-1"); //cst.save(); CustomerPeer.doInsert(cst); System.out.println("customer details are sotred"); }catch(Exception e){ e.printStackTrace(); } } } ------=_NextPart_000_0071_01C3B999.4B5D0CB0 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org ------=_NextPart_000_0071_01C3B999.4B5D0CB0--