weixin_41844264 2020-10-14 15:49 采纳率: 0%
浏览 474

新手求拯救!!ssm框架的异常。严重: 异常将上下文初始化事件发送到类的侦听器实例.[org.springframework.web.context.ContextLoaderListener]

有没有大神帮帮我!!!!新人求拯救!!!!
10月 14, 2020 3:34:00 下午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
10月 14, 2020 3:34:00 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
10月 14, 2020 3:35:04 下午 org.apache.catalina.core.StandardContext listenerS
严重: 异常将上下文初始化事件发送到类的侦听器实例.[org.springframework.web.context.ContextLoaderListener]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wuserController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private ruco.bsprogram.service.UBmessageService ruco.bsprogram.controller.WuserController.uBmessageService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'uBmessageServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private ruco.bsprogram.dao.UserBmessageMapper ruco.bsprogram.service.UBmessageServiceImpl.userBmessageMapper; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [ruco.bsprogram.dao.UserBmessageMapper] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stRelationshipMapper' defined in file [E:\DevelopLocation\Projects\Relation Project\ruco_bsprogram\out\artifacts\ruco_bsprogram_war_exploded\WEB-INF\classes\ruco\bsprogram\dao\StRelationshipMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [ruco/bsprogram/resource/spring-cfg.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [ruco/bsprogram/resource/spring-cfg.xml]: Invocation of init method failed; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

Server

10月 14, 2020 3:35:04 下午 org.apache.catalina.core.StandardContext startInternal
严重: 一个或多个listeners启动失败,更多详细信息查看对应的容器日志文件
10月 14, 2020 3:35:04 下午 org.apache.catalina.core.StandardContext startInternal
严重: 由于之前的错误,Context[]启动失败
10月 14, 2020 3:35:04 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
严重: Web应用程序 [] 注册了JDBC驱动程序 [com.alibaba.druid.proxy.DruidDriver],但在Web应用程序停止时无法注销它。 为防止内存泄漏,JDBC驱动程序已被强制取消注册。
10月 14, 2020 3:35:04 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
严重: Web应用程序 [] 注册了JDBC驱动程序 [com.mysql.jdbc.Driver],但在Web应用程序停止时无法注销它。 为防止内存泄漏,JDBC驱动程序已被强制取消注册。

  • 写回答

2条回答 默认 最新

  • sunlight.ctt 2020-10-14 16:36
    关注

    Error creating bean with name 'wuserController’,错误点在这个controller里面,路径检查一下。

    评论

报告相同问题?

悬赏问题

  • ¥15 求chat4.0解答一道线性规划题,用lingo编程运行,第一问要求写出数学模型和lingo语言编程模型,第二问第三问解答就行,我的ddl要到了谁来求了
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果