Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 89324 invoked from network); 19 Jun 2002 10:40:39 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 19 Jun 2002 10:40:39 -0000 Received: (qmail 6634 invoked by uid 97); 19 Jun 2002 10:40:16 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 6523 invoked by uid 97); 19 Jun 2002 10:40:16 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 6426 invoked by uid 98); 19 Jun 2002 10:40:15 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <3D105F84.8090903@libero.it> Date: Wed, 19 Jun 2002 12:40:04 +0200 From: Martin Jacobson User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:0.9.4) Gecko/20011022 Netscape6/6.2 X-Accept-Language: en-us MIME-Version: 1.0 To: Tomcat Users List Subject: Re: AW: Connection pooling doesn't work for me ... Help !! References: 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 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Ralph Einfeldt wrote: > According to > http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.htm > l > it's Thanks Ralph, I tried that, and things are getting (slightly) better! It's still not working tho'... here's the log now: 2002-06-19 12:27:09 NamingContextListener[/Standalone/localhost/drs]: Creating JNDI naming context 2002-06-19 12:27:09 NamingContextListener[/Standalone/localhost/drs]: Resource parameters for jdbc/RadiationDB = ResourceParams[name=jdbc/RadiationDB, parameters={user=me, factory=org.apache.commons.dbcp.BasicDataSourceFactory, url=jdbc:mysql://localhost/radiation, password=my-password, maxWait=100, maxActive=100, driverClassName=org.gjt.mm.mysql.Driver, maxIdle=30000}] 2002-06-19 12:27:09 NamingContextListener[/Standalone/localhost/drs]: Adding resource ref jdbc/RadiationDB 2002-06-19 12:27:09 NamingContextListener[/Standalone/localhost/drs]: ResourceRef[className=javax.sql.DataSource,factoryClassLocation=null,factoryClassName=org.apache.naming.factory.ResourceFactory,{type=scope,content=Shareable},{type=auth,content=Container},{type=user,content=me},{type=factory,content=org.apache.commons.dbcp.BasicDataSourceFactory},{type=url,content=jdbc:mysql://localhost/radiation},{type=password,content=my-password},{type=maxWait,content=100},{type=maxActive,content=100},{type=driverClassName,content=org.gjt.mm.mysql.Driver},{type=maxIdle,content=30000}] 2002-06-19 12:27:09 NamingContextListener[/Standalone/localhost/drs]: Resource parameters for UserTransaction = null 2002-06-19 12:27:56 static: Error! java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:380) at org.apache.commons.dbcp.BasicDataSource.createDataSource(Unknown Source) at org.apache.commons.dbcp.BasicDataSource.getConnection(Unknown Source) at com.terma.martin.drs.StaticPage.handleRequest(Unknown Source) at org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:331) at Obviously, it can now find and process the parameters (thanks Ralph!) but something is causing createDataSource() to barf. Any ideas, anyone? Martin PS: Having a DTD for server.xml - even if it changed for each release - would help idiots like me, who can't read! -- To unsubscribe, e-mail: For additional commands, e-mail: