Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 16th, 2004, 02:04 AM
Registered User
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anjila
Default connection pool in linux

I am using database connection pool to connect to mysql database. I am using Tomcat 5 and J2SE 1.4.2, the server.xml file is like following

<Context path="/NPD" docBase="NPD" debug="5" reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_npd.log." suffix=".txt" timestamp="true"/>

        <Resource name="jdbc/db1" auth="Container" type="javax.sql.DataSource" />

        <ResourceParams name="jdbc/db1">
                <value>org.apache.commons.dbcp.BasicDataSourceFact ory</value>









This works very well in Windows 2000. But I need to host the website in linux server and it shows null pointer exception error. The problem is not due to driver mismatch as I can connect to database without using DBCP. Can you pls suggest me what is the problem?

Old April 16th, 2004, 07:47 AM
Friend of Wrox
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts

This forum is for Feedback, not support. I suggest asking this in the Tomcat area or the XML area, depending on where you think your problem lies.



Similar Threads
Thread Thread Starter Forum Replies Last Post
sql server pool connection error MunishBhatia SQL Server 2005 0 June 28th, 2007 11:40 AM
connection pool maximum error MunishBhatia ASP.NET 2.0 Professional 0 June 28th, 2007 11:39 AM
Connection Pool on MS Access? Edward King Java Databases 1 August 3rd, 2005 12:48 AM
Connection pool details for MySQL kumar_sampath Java Databases 2 September 7th, 2004 03:59 AM
To connect Database with Connection Pool sudipta JSP Basics 0 June 8th, 2004 02:03 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.