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 44150 invoked from network); 11 Sep 2003 13:44:32 -0000 Received: from unknown (HELO athlon4.serinbol.com) (166.114.124.44) by daedalus.apache.org with SMTP; 11 Sep 2003 13:44:32 -0000 Received: (qmail 5077 invoked by uid 115); 11 Sep 2003 14:27:14 -0000 Received: from unknown (HELO handsoftware.net) (166.114.124.44) by 166.114.124.44 with SMTP; 11 Sep 2003 14:27:14 -0000 Message-ID: <3F608640.9070608@handsoftware.net> Date: Thu, 11 Sep 2003 10:27:12 -0400 From: "Manolo Ramirez T." User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Cannot load JDBC driver class 'null' - Tomcat standalone 4.1. 27 w hen trying instantiate datasource object. References: <94CB578F28F927469B8E324BBA8E055A1EE1E9@EXNJMB10.nam.nsroot.net> In-Reply-To: <94CB578F28F927469B8E324BBA8E055A1EE1E9@EXNJMB10.nam.nsroot.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Are you declaring the JNDI resource in DefaultContext or with ResourceLink? if yes, try with a normal Context and Resource. Regards, _________________ Manolo Ramirez T. Wynkoop, Robert M wrote: > Yeah I had already tried that. When It was not there I got this message on > Tomcat startup - java.lang.reflect.InvocationTargetException: > java.lang.NoClassDefFoundError: javax/sql/DataSource > > I'm kind of stumped on this. Any other ideas? > > Later, > > > Robert Wynkoop > > -----Original Message----- > From: Phillip Qin [mailto:Phillip.Qin@shareowner.com] > Sent: Wednesday, September 10, 2003 5:11 PM > To: 'Tomcat Users List' > Subject: RE: Cannot load JDBC driver class 'null' - Tomcat standalone > 4.1. 27 w hen trying instantiate datasource object. > > > If you use oracle jdbc driver, put classes12.jar in common/lib > > -----Original Message----- > From: Wynkoop, Robert M [mailto:robert.m.wynkoop@citigroup.com] > Sent: September 10, 2003 6:06 PM > To: Tomcat Mailing List (E-mail) > Subject: Cannot load JDBC driver class 'null' - Tomcat standalone 4.1.27 w > hen trying instantiate datasource object. > > The error(Wen I try to use a JNDI resource in my webapp.): > > C:\jdk1.3.1_08\jre\bin\java -classpath > "C:\web\Tomcat4.1\bin\bootstrap.jar";"C:\jdk1.3.1_08\lib\tools.jar" > -Dcatalina.home="C:\web\Tomcat4.1" -Dcatalina.base="C:\web\Tomcat4.1" > org.apache.catalina.startup.Bootstrap "start" > [INFO] Registry - -Loading registry information > [INFO] Registry - -Creating new Registry instance > [INFO] Registry - -Creating MBeanServer > [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080 > Starting service Tomcat-Standalone > Apache Tomcat/4.1.18-LE-jdk14 > [INFO] PropertyMessageResources - -Initializing, > config='org.apache.struts.util.LocalStrings', returnNull=true > [INFO] PropertyMessageResources - -Initializing, > config='org.apache.struts.action.ActionResources', returnNull=true > [INFO] PropertyMessageResources - -Initializing, config='remic_msgcat', > returnNull=true > [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080 > [INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009 > [INFO] JkMain - -Jk running ID=0 time=0/200 > config=C:\web\Tomcat4.1\conf\jk2.properties > Cannot load JDBC driver class 'null' > java.lang.NullPointerException > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:115) > at > org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav > a:523) > at > org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3 > 29) > at > com.citimortgage.common.datasource.DataSourceManager.getConnection(DataSourc > eManager.java:80) > > I know I have the Oracle jar in the right place because I get this msg when > if I don't have it in /common/lib. > > C:\jdk1.3.1_08\jre\bin\java -classpath > "C:\web\Tomcat4.1\bin\bootstrap.jar";"C:\jdk1.3.1_08\lib\tools.jar" > -Dcatalina.home="C:\web\Tomcat4.1" -Dcatalina.base="C:\web\Tomcat4.1" > org.apache.catalina.startup.Bootstrap "start" > [INFO] Registry - -Loading registry information > [INFO] Registry - -Creating new Registry instance > [INFO] Registry - -Creating MBeanServer > [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080 > Exception during startup processing > java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: > javax/sql/DataSource > at java.lang.ClassLoader.defineClass0(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:488) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106) > > I googled for this answer. The most common problem is not finding the > database driver in /common/lib. > > > Later, > > > Robert Wynkoop > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > >