我正在运行一个带有MySQL数据库的spring web应用程序。我收到以下错误。
ec 09, 2013 6:33:31 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [login] in context with path [/Loginwithmysql] threw exception [Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/dao/DuplicateKeyException] with root cause
java.lang.ClassNotFoundException: org.springframework.dao.DuplicateKeyException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
at org.springframework.jdbc.support.JdbcAccessor.getExceptionTranslator(JdbcAccessor.java:99)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:602)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:636)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:665)