I did declare the dependency in my pom.xml:
Code:
<dependency> <groupId>org.springframework</groupId> <artifactId>org.springframework.jdbc</artifactId> <version>3.1.1.RELEASE</version> </dependency>
When I edit my pom.xml using the Maven editor I don't get an error stating that it can't find the jar file.
I have the following class declaration and its complaining that the import for org.springframework.jdbc can't be resolved.
Code:
import org.springframework.jdbc.core.support.JdbcDaoSupport;
public class JdbcRegisterTest extends JdbcDaoSupport implements TestDAO {
}
I'm looking at the servlet-context.xml again and its stating that it can't find the jar:
Code:
<beans:bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<beans:property name="driverClassName" value="${jdbc.driverClassName}" />
<beans:property name="url" value="${jdbc.url}" />
<beans:property name="username" value="${jdbc.username}" />
<beans:property name="password" value="${jdbc.password}" />
</beans:bean>
The console is stating the following:
Code:
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.jdbc.datasource.DriverManagerDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/spring/appServlet/servlet-context.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.DriverManagerDataSource