Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply 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
Greenhorn

Joined: Sep 21, 2009
Posts: 23
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: 44
Add jar file to build path in eclipse, it should solve your issue.


thanks & regards, Rakesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
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:
Hi i am trying to connect to postgresql database using struts 1.2..i have used datasource
JDBC Connection Pooling Framework
Tomcat and JSP
Struts Connection pool (please help)