Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 4932 invoked from network); 19 Dec 2000 06:15:09 -0000 Received: from mrelay.optus.net.au (HELO o2robox02.optus.net.au) (202.139.83.22) by locus.apache.org with SMTP; 19 Dec 2000 06:15:09 -0000 Received: from firewall.nec.com.au ([147.76.180.129]) by o2robox02.optus.net.au (8.11.1/8.11.1) with ESMTP id eBJ6EfC29267 for ; Tue, 19 Dec 2000 17:14:41 +1100 (EST) Received: (from uucp@localhost) by firewall.nec.com.au (8.9.3/8.9.3/Debian 8.9.3-21) id RAA28042 for ; Tue, 19 Dec 2000 17:14:35 +1100 X-Authentication-Warning: firewall.nec.com.au: uucp set sender to using -f Received: from UNKNOWN(147.76.128.100), claiming to be "standby.neca.nec.com.au" via SMTP by firewall, id smtpdyfdNci; Tue Dec 19 17:14:28 2000 Received: from trendmaster.neca.nec.com.au (scanner.neca.nec.com.au [147.76.128.237]) by standby.neca.nec.com.au (8.9.3/8.9.2) with SMTP id RAA32705 for ; Tue, 19 Dec 2000 17:19:21 +1100 Received: from 147.76.128.7 by trendmaster.neca.nec.com.au (InterScan E-Mail VirusWall NT); Tue, 19 Dec 2000 17:15:34 +1100 (AUS Eastern Daylight Time) Received: from esdmfs.esd.nec.com.au (esdmfs.esd.nec.com.au [147.76.204.60]) by necagmx.neca.nec.com.au (8.9.3/8.9.2) with ESMTP id RAA16775 for ; Tue, 19 Dec 2000 17:15:06 +1100 Received: by esdmfs.esd.nec.com.au with Internet Mail Service (5.5.2650.21) id ; Tue, 19 Dec 2000 17:15:57 +1100 Message-ID: From: Jared Clinton To: "'tomcat-user@jakarta.apache.org'" Subject: RE: database connection problem when run nt service Date: Tue, 19 Dec 2000 17:15:56 +1100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N I am extremly new to tomcat, although I suspect that it is to do with the NT user that tha service logs in as and the permissions in the database that the user has? ?Stab in the dark? Jared Clinton. > -----Original Message----- > From: H Deng [mailto:deng_h1579@hotmail.com] > Sent: Tuesday, 19 December 2000 17:10 > To: tomcat-user@jakarta.apache.org > Subject: database connection problem when run nt service > > > Hi everyone, I installed apache 1.3.4 and tomcat 3.2.1 on > windows NT4.0 > /windows 2000 and tried to set up tomcat to run NT service. I used > mod_jk.dll to test a simple java code to connect to a database and it > worked fine. However, when I tried to use jk_nt_service.exe, > other part > of the the java program can run but the connection to the > database can't > be establised. The following code gives a SQLException: > > dbCon =3D DriverManager.getConnection("jdbc:odbc:book"); > > but the same code worked fine with mod_jk.dll. > > I tried to put rt.jar (which contains DriverManager.class) in the > classpath in wrapper.properties: > > wrapper.class_path=3D$(wrapper.java_home)\jre\lib\rt.jar > > but it did not help. > > Please help me. Thanks in advance. > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com >