服务器报错
发表在JavaWeb图书答疑 2018-03-06 《JavaWeb项目开发实战入门》第7章 K12(中小学)综合测评系统
是否精华
版块置顶:

[org.springframework.web.context.ContextLoader]Root WebApplicationContext: initialization started

[org.springframework.web.context.support.XmlWebApplicationContext]Refreshing Root WebApplicationContext: startup date [Tue Mar 06 22:38:01 CST 2018]; root of context hierarchy

[org.springframework.beans.factory.xml.XmlBeanDefinitionReader]Loading XML bean definitions from class path resource [spring.xml]

[org.springframework.context.annotation.ClassPathBeanDefinitionScanner]JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning

[org.springframework.beans.factory.xml.XmlBeanDefinitionReader]Loading XML bean definitions from class path resource [spring-mybatis.xml]

[org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]No MyBatis mapper was found in 'com.back.base.dao;com.back.testpro.dao' package. Please check your configuration.

[org.springframework.beans.factory.config.PropertyPlaceholderConfigurer]Loading properties file from class path resource [config.properties]

[org.springframework.beans.factory.support.DefaultListableBeanFactory]Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@7fe0c63b: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,dataSource,paginationInterceptor,mapInterceptor,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,transactionManager,transactionAdvice,org.springframework.aop.config.internalAutoProxyCreator,transactionPointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,druid-stat-interceptor,druid-stat-pointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy

[com.alibaba.druid.pool.DruidAbstractDataSource]maxIdle is deprecated

[com.alibaba.druid.pool.DruidDataSource]{dataSource-1} inited

[org.springframework.beans.factory.support.DefaultListableBeanFactory]Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@7fe0c63b: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,dataSource,paginationInterceptor,mapInterceptor,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,transactionManager,transactionAdvice,org.springframework.aop.config.internalAutoProxyCreator,transactionPointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,druid-stat-interceptor,druid-stat-pointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy

[com.alibaba.druid.pool.DruidDataSource]{dataSource-1} closed

[org.springframework.web.context.ContextLoader]Context initialization failed

org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.back.base.interceptor.PaginationInterceptor] for bean with name 'paginationInterceptor' defined in class path resource [spring-mybatis.xml]; nested exception is java.lang.ClassNotFoundException: com.back.base.interceptor.PaginationInterceptor

at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1263)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:581)

at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1332)

at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:898)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:588)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)

at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4728)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5162)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.ClassNotFoundException: com.back.base.interceptor.PaginationInterceptor

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)

at org.springframework.util.ClassUtils.forName(ClassUtils.java:258)

at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:415)

at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1284)

at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1255)

... 18 more

IBL~2L2T8H}OJ12NEXHJMWG.png


分享到:
精彩评论 3
无语_mrkj
学分:3155 LV11
2018-03-07
沙发

请问您这个异常是直接导入光盘中的项目直接运行的吗?并且已经按照光盘中的Code\07\项目配置使用说明.docx文件中介绍的方法将JDK配置为JDK 1.7。这个项目需要使用JDK 1.7,不用使用JDK 1.8。

云海幽幽【南山下】_1513331904
学分:7 LV1
2018-03-07
板凳

无语_mrkj 发表于2018-03-07 13:16

请问您这个异常是直接导入光盘中的项目直接运行的吗?并且已经按照光盘中的Code\07\项目配置使用说明.docx文件中介绍的方法将JDK配置为JDK 1.7。这个项目需要使用JDK 1.7,不用使用JDK 1.8。

是的!!就是直接导入光盘中的源代码,jdk1.8不是兼容1.7吗?

无语_mrkj
学分:3155 LV11
2018-03-07
地板

对于这个程序不能应用JDK 1.8,因为里面用的Jar包只适用于JDK 1.7。不过可以在电脑上安装两个版本的JDK,之前的1.8版本不用卸载。按照光盘中的程序配置说明文件配置一下就可以了。

首页上一页 1 下一页尾页 3 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照