On Tue, 21 Aug 2001, Richard William Lake wrote:

> > a newbie in using struts...
> > kindly let me know what i should be doing to define a datasource..
> > i have the struts-config.xml file where i defined the datasource
> > parameters...
> > and now i m trying to run the example provided in the struts....
> > but it is throwing error javax.sql.DataSource not found...
> > 
> > is there anything that i m missing? let me know please...
> 
> I take it this is a "ClassNotFoundException" when starting TomCat?I
> had this problem earlier today when using data-sources but found a
> solution...
> 

If you follow the installation instructions (included in the
struts-documentation.war file and briefly described in INSTALL.txt in the
top-level directory), you will find that you need to download and install
the JDBC 2.0 Optional Package library to get the javax.sql.* classes.

> * Put the "j2ee.jar" from the Enterprise Edition JDK in the
> %TOMCAT_HOME%\lib folder.
> 

Although this solves the immediate problem (because the data source
classes are included), this is going to cause you lots of grief later
because it includes a lot of other classes too -- which in some cases can
conflict with things that Tomcat uses.

> Of course, this may not be the correct solution but was a quick fix
> without changing too much of my development system around!
> 
> 
> Richard.
> 
> 
Craig


Reply via email to