Home > Could Not > Could Not Initialize Class Org Springframework Jdbc Support Sqlerrorcodesfactory

Could Not Initialize Class Org Springframework Jdbc Support Sqlerrorcodesfactory

Contents

However I am encountering the following error:org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.springframework.jdbc.support.SQLErrorCodesFactoryorg.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:972)org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)javax.servlet.http.HttpServlet.service(HttpServlet.java:621)javax.servlet.http.HttpServlet.service(HttpServlet.java:728)root cause:java.lang.NoClassDefFoundError: Could not initialize class org.springframework.jdbc.support.SQLErrorCodesFactoryorg.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.setDataSource(SQLErrorCodeSQLExceptionTranslator.java:89)org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.(SQLErrorCodeSQLExceptionTranslator.java:78)org.springframework.jdbc.support.JdbcAccessor.getExceptionTranslator(JdbcAccessor.java:58)org.springframework.jdbc.support.JdbcAccessor.afterPropertiesSet(JdbcAccessor.java:71)org.springframework.jdbc.core.JdbcTemplate.(JdbcTemplate.java:115)com.metmi.mmasgis.dao.DbImpl.getDatabases(DbImpl.java:29)com.metmi.mmasgis.HomeController.dbs(HomeController.java:61)sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)java.lang.reflect.Method.invoke(Method.java:606)org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)javax.servlet.http.HttpServlet.service(HttpServlet.java:621)javax.servlet.http.HttpServlet.service(HttpServlet.java:728)this is my web.xml:http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">