Hi all, I'm sure there are developers who are using eclipse to run JUnit test. My problem is though I've "naming-factory-dbcp.jar" path defined in the class path (I think so) but the classloader can't find it. My unit test cases are extended from AbstractDependencyInjectionSpringContextTests.
Here is the error I get:
org.springframework.beans.factory.BeanDefinitionSt oreException: Error registering bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Bean class [org.apache.commons.dbcp.BasicDataSource] not found; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
I'm using eclipse 3.2 with tomcat 5.5 and Tomcat 5.5 runtime defined in the "java build path". I also tried adding the tomcat folder explicitly in the java build path (using add class folder/create new folder and then map tomcat lib with the new folder) but still the classloader fails to load the class. I can resolve the problem by coping the jar but I hate the duplicating(you know why). What're the best practices to run spring JUnit tests under eclipse with respect to setting the libraries ?
thanks in advance