File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes why BasicDatasource not find by compiler? even i added commons.dbcp.jar in project /webroot/lib Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "why BasicDatasource not find by compiler? even i added commons.dbcp.jar in project /webroot/lib" Watch "why BasicDatasource not find by compiler? even i added commons.dbcp.jar in project /webroot/lib" New topic
Author

why BasicDatasource not find by compiler? even i added commons.dbcp.jar in project /webroot/lib

kiran nyala
Ranch Hand

Joined: Sep 21, 2009
Posts: 47

hi I am trying to write one DBplugin class for postgresql, compiler warning me at import org.apache.commons.dbcp.BasicDataSource and its relavant code... why? I also added commons-dbcp-1.2.1.jar under /WEB-INF/lib

please check this code and resolve it ..thank you in advance




----------struts-config.xml---------


rakesh kumar nampally
Ranch Hand

Joined: Feb 03, 2007
Posts: 46
Add jar file to build path in eclipse, it should solve your issue.


thanks & regards, Rakesh
 
wood burning stoves
 
subject: why BasicDatasource not find by compiler? even i added commons.dbcp.jar in project /webroot/lib
 
Similar Threads
Exception in thread "main" java.lang.NoClassDefFoundError:
Tomcat and JSP
Hi i am trying to connect to postgresql database using struts 1.2..i have used datasource
Struts Connection pool (please help)
JDBC Connection Pooling Framework