Re: How to configure Struts connection pool

2006-04-03 Thread Tarun Reddy
Hi Craig, I'm very glad to recieve an e-mail from you. I keep following your interviews in www.theserverside.com . Well I didn't know that Struts DataSource concept has been deprecated. I've been using Weblogic from so many years and it's very easy to configure datasources and connection pools in W

Re: How to configure Struts connection pool

2006-04-02 Thread Craig McClanahan
On 4/2/06, Tarun Reddy <[EMAIL PROTECTED]> wrote: > > Could you please try not to configure your data source in Tomcat? Instead > try to configure your datasource only in struts-config.xml file as I've > mentioned. It should work. Please get rid of the JNDI lookup code from the > JSP and use the ge

Re: How to configure Struts connection pool

2006-04-02 Thread Martin Gainty
Tarun Reddy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Sunday, April 02, 2006 10:47 AM Subject: Re: How to configure Struts connection pool > Could you please try not to configure your data source in Tomcat? Instead > try to configure your datasource o

Re: How to configure Struts connection pool

2006-04-02 Thread Tarun Reddy
Could you please try not to configure your data source in Tomcat? Instead try to configure your datasource only in struts-config.xml file as I've mentioned. It should work. Please get rid of the JNDI lookup code from the JSP and use the getDataSource(request) method which is very intelligent enough

Re: How to configure Struts connection pool

2006-04-01 Thread red phoenix
when I start Tomcat,it raise following error: New org.apache.commons.dbcp.BasicDataSource Begin event threw exception java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource at org.apache.catalina.loader.WebappClassLoader.loadClass ( WebappClassLoader.java:1352) at org.apache.cata

Re: How to configure Struts connection pool

2006-04-01 Thread Tarun Reddy
Hi, First of all we need not use "key" attribute in tag until we have more than one data source to be configured. So, try removing the "key" attribute and use the getDataSource() method which is already defined in DBCP. DataSource db = getDataSource(request); You need not worry about all the nam

How to configure Struts connection pool

2006-04-01 Thread red phoenix
I use struts-1.2.9,and want to configure a connection pool,so I configure struts-config.xml file Then I use this configure in a jsp file,like follows: <[EMAIL PROTECTED] import="java.sql.*"%> <[EMAIL PROTECTED] import="javax.sql.DataSource"%> <[EMAIL PROTECTED] impor