I was following the database faq.
http://jakarta.apache.org/struts/faqs/database.html

I was using the BasicDataSource from dbcp as the GenericDataSource is
deprecated. They faq suggests using the BasicDataSource, which depends on
commons-pooling and commons-dbcp.

Thank you for your help. I appreciate it. I was told that someone updated
the faq with my commnents so all is well.

-----Original Message-----
From: Steve Raeburn [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 03, 2003 2:57 PM
To: Struts Developers List
Subject: RE: Should Struts ship with all of the commons jar files needed to
get Struts datasources working?

Rick,
What DataSource are you trying to set-up? GenericDatSource in
struts-legacy.jar is independent of DBCP so you shouldn't need those
jars.

The following configuration works for me, even when I remove
commons-dbcp and commons-pooling jars from tomcat (4.1.29)

  <data-source type="org.apache.struts.legacy.GenericDataSource">
    <set-property property="driverClass" value="com.mysql.jdbc.Driver"/>
    <set-property property="url"
value="jdbc:mysql://localhost:3306/test"/>
    <set-property property="user" value="root"/>
    <set-property property="password" value=""/>
  </data-source>

You don't really need the type property, since GenericDataSource is the
default.

Steve

> -----Original Message-----
> From: Rick Hightower [mailto:[EMAIL PROTECTED]
> Sent: December 3, 2003 2:20 PM
> To: 'Struts Developers List'
> Subject: Should Struts ship with all of the commons jar files
> needed to
> get Struts datasources working?
>
>
> Currently 1.1 does not ship with commons jar files needed to
> get Struts
> datasources working.
>
>
>
> You need booth commons-pooling and commons-dbcp to get Struts
> Datasources to
> work, but they are *not* included with Struts 1.1. (In fact
> in Struts 1.1.,
> you also need Struts Legacy jar file as well.)
>
>
>
> I think this got through because if you are using Tomcat then both
> commons-pooling and commons-dbcp ship in the shared folder.
> You do need to
> download them if you are using another application server.
> You do need to
> download them only if you are going to use Struts Datasources. My
> understanding was that Struts would ship with the entire set
> of commons jar
> files needed to utilize all of the features of Struts. Are
> Struts Datasource
> EOL or something?
>
>
>
>
>
>
>
> Rick Hightower
>
> Chief Technology Officer
>
> ArcMind
>
> Know the Next!
>
> http://www.arc-mind.com <http://www.arc-mind.com/>
>
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to