日期:2014-05-17  浏览次数:20738 次

springmvc的数据源配置
原先是orcal的项目可以跑起来,替换了mysql之后就报错了
 INFO 2013-10-12 10:47:37,508 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@d313e6: defining beans [mybaitsPagerSelecter,userSerivce,groupService,roleService,authService,orgSerivce,noticeService,areaService,areaController,frameController,groupController,menuController,noticeController,orgController,unitController,roleController,sysController,userController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.aop.config.internalAutoProxyCreator,serviceMethodTimeLogAop,daoMethodTimeLogAop,dataSource,transactionManager,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,sqlSessionFactory,mapperScannerConfigurer,methodTimeLog,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
ERROR 2013-10-12 10:47:37,511 org.springframework.web.context.ContextLoader: Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/E:/Tomcat6/webapps/gxzkweb/WEB-INF/lib/mysql-connector-java-5.1.12-bin.jar!/com/mysql/jdbc/integration/jboss/ExtendedMysqlExceptionSorter.class]; nested exception is java.io.FileNotFoundException: class path resource [org/jboss/resource/adapter/jdbc/vendor/MySQLExceptionSorter.class] cannot be opened because it does not exist
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:260)
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:242)
at org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner.doScan(MapperScannerConfigurer.java:380)
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.scan(ClassPathBeanDefinitionScanner.java:220)
at org.mybatis.spring.mapper.MapperScannerConfigurer.postProcessBeanDefinitionRegistry(MapperScannerConfigurer.java:269)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:617)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:446)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)