A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
Joined: Oct 21, 2003
Nov 24, 2003 04:01:00
I'm totally new to Struts framework, I hope that someone could help figuring this out!
I'm trying to configure my data source (MSAccess db) with my simple Struts application using the following :
<data-sources> <data-source> <set-property property="autoCommit" value="false"/> <set-property property="description" value="Example Data Source Configuration"/> <set-property property="driverClass" value="sun.jdbc.odbc.JdbcOdbcDriver"/> <set-property property="url" value="jdbc :-o dbc:MyDatabase"/> <set-property property="maxCount" value="4"/> <set-property property="minCount" value="2"/> <set-property property="password" value=""/> <set-property property="user" value=""/> </data-source> </data-sources>
I alawys get these errors:
: Servlet.init() for
action threw exception
However, the same configurations were working on the
only site before!!
Thanks in advance,
Joined: Sep 05, 2003
Nov 26, 2003 05:55:00
I am new also in Struts but a simple question I will ask is : do you have the struts-legacy.jar package in your application as it seems it doesn't find the org/apache/struts/legacy/GenericDataSource class?
I agree. Here's the link:
- it saves me about five hours per week
subject: jdbc:odbc configuration!
Struts Configuration problem
Struts DB Error
configuring datasource for mysql in struts-config.xml
Prob using DataSource
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013