Return-Path: Delivered-To: apache-bugdb-archive@hyperreal.org Received: (qmail 15015 invoked by uid 6000); 27 Oct 1999 05:20:07 -0000 Received: (qmail 14886 invoked by uid 2001); 27 Oct 1999 05:20:02 -0000 Received: (qmail 13855 invoked by uid 2012); 27 Oct 1999 05:17:33 -0000 Message-Id: <19991027051733.13854.qmail@hyperreal.org> Date: 27 Oct 1999 05:17:33 -0000 From: Robert Farrior Reply-To: rfarrior@home.com To: apbugs@hyperreal.org X-Send-Pr-Version: 3.2 Subject: mod_jserv/5207: Unable to get servlets to connect to JDBC driver Sender: apache-bugdb-owner@apache.org Precedence: bulk >Number: 5207 >Category: mod_jserv >Synopsis: Unable to get servlets to connect to JDBC driver >Confidential: no >Severity: serious >Priority: medium >Responsible: jserv >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Tue Oct 26 22:20:01 PDT 1999 >Last-Modified: >Originator: rfarrior@home.com >Organization: apache >Release: Apache 1.3.9, Apache JServ-1.1-b2_RH6x.i386 >Environment: Redhat Linux 6.1. Using either JDK117_v3 or JDK1.2, Apache 1.3.9, ApacheJServ1.1b2, and either mm.mysql.jdbc or twz1jdbc. >Description: Get various errors trying to connect to JDBC. Currently running mm.mysql.jdbc-1.2. Registering Driver with DriverManager directly as I heard that not doing so can cause a problem connecting to the driver. I get "java.lang.NoClassDefFoundError: org/gjt/mm/mysql/Driver" in Jserv.log. My CLASSPATH includes jdk1.2/jre/lib/rt.jar, ....jsdk.jar and ..../mm.mysql.jdbc-1.2b. The line of code that is "hanging" is: DriverManager.registerDriver(new org.gjt.m.mysql.Driver()); That is the only place in the code where I reference the full path to the Driver class. I get the same problem when I use the tzFM drivers instead. >How-To-Repeat: >Fix: I'm not sure where the problem is coming from. I know the Apache JServ jar file has the org/ path. Is there a conflict if Jserv's classpath and JDBC's classpath both begin with org.? Other than that, I'm stumped. >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]