derby-based webapp -- where to put db drivers? [message #171522] |
Tue, 19 September 2006 04:02 |
Eclipse User |
|
|
|
Folks;
hopefully not too off-topic: Following the
http://www.eclipse.org/articles/Article-EclipseDbWebapps/art icle.html
tutorial, by now I made my way through it pretty well by now but got
thinking about configuration of the data source to be used with tomcat
via context.xml.
Basically, I am unsure what is the best way to attach the derby db
drivers (or any other jdbc driver archive) to the web application:
- placing them in $CATALINA_HOME/common/lib works, but somehow this
ain't what I want in case of packing the application to run on some
remote server (I prefer to build standalone war's right for that);
- adding the derby .jars as "J2EE module dependencies" ends up in
having them packaged to WEB-INF/lib of the deployed .war file (as I
would like to see it); however, this way tomcat complains about "db
driver class not found" as soon as I try accessing the data source.
So, overally, do I really _have_ to put db driver files to common/lib
for that, or is there a way to make it work having them placed in the
application .war file? Anything I am not yet aware of?
Thanks for your patience and bye,
Kris
|
|
|
Powered by
FUDForum. Page generated in 0.09953 seconds