See section 4.6.5 here
http://jakarta.apache.org/struts/userGuide/building_controller.html

David






From: Anthony Mutiso 2 <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Mail List (E-mail)" <[EMAIL PROTECTED]>
Subject: BasicDataSource data source usage.
Date: Fri, 22 Nov 2002 13:47:04 -0700

The struts javadoc page for GenericDataSource says to use BasicDataSource.

When I configure a struts data-source with BasicDataSource, my struts 1.1 b2
application fails work with a

java.sql.SQLException: Cannot load JDBC driver class 'null'

On the appplication startup

While if I remove the "type" attribute all appears well.

This dies
<data-source key="SiteCatalogDataSource"
type="org.apache.commons.dbcp.BasicDataSource">

This works
<data-source key="SiteCatalogDataSource">

Why do I want a BasicDataSource? The docs implie that I can do it, and
GenericDataSource's methods are all deprecated.

I wanted to get the at the DriveClassName within the app to print out in the
logs the application configuration.

Thanks

Anthony

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

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail


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

Reply via email to