Please, do not edit the server.xml. You have to place all that stuff in the context.xml inside the META-INF folder of your project. When the application is deployed this will be copied under conf/Catalina/localhost/myapp.xml, or under conf/Catalina/myapp.org/ROOT.xml. Note that these locations are tomcat specific, but all containers would do something similar.
The only reason I can think of that would justify connection pooling descriptors on the server.xml would be if you wanted two or more applications (contexes) to be able to share the same connection pool. john Graeme McLaren wrote:
Hi all, I'm trying to get connection pooling working, I've altered the server.xml and web.xml files, written a class and it compiled with a few errors. What am I doing wrong here? Cheers, Graeme :) in server.xml: <Context path="/dbcp" docBase="dbcp" debug="5" reloadable="true" crossContext="true"> <Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource" removeAbandoned="true" removeAbandonedTimeout="30" maxActive="100" maxIdle="30" maxWait="10000" username="myUsername" password="myPassword" driverClassName="oracle.jdbc.driver.OracleDriver" url="WorkingDBUrl"/> </Context> <!-- Configuring the request and response endpoints --> <Connector port="80" maxHttpHeaderSize="8192" maxProcessors="150" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="150" connectionTimeout="20000" disableUploadTimeout="true" />
=========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com