Thanks very much for responding! It seems there's a misunderstanding on my side. I guess I'll have to rethink it. From what you say, there isn't any reason to include a <data-sources> element in struts-config since the persistence layer should be invisible to Struts. Am I understanding you correctly?
On Jan 28, 2004, at 12:26 PM, Matthias Wessendorf wrote:
hi jim!
did you add struts-legacy.jar in WEB-INF/lib ?
but in 1.2 its not more supported (GenericDataSource)
look here: http://jakarta.apache.org/struts/faqs/database.html (The Struts DataSource Manager)
then you need pool.jar and dbcp.jar
from the corresponding commons-projects - http://jakarta.apache.org/commons/pool/ - http://jakarta.apache.org/commons/dbcp/
greetings
matthias
-----Original Message----- From: Jim Anderson [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 6:14 PM To: Struts Users Mailing List Subject: REPOST: newbie datasource config problems
(The original msg didn't seem to make it to the list.)
I'm trying to configure my Struts 1.1 app (Tomcat 4) for MySQL access and getting nothing but grief. Currently, I'm showing the following error in the log file:
java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource
Could someone please send me samples of what web.xml and struts-config.xml should look like when properly configured?
Thanks very much,
jim
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jim
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]