关于报javax.servlet.ServletException: Servlet.init() for servlet dispatcherServlet threw exception错误

  • Post author:
  • Post category:java



type

Exception report


message


Servlet.init() for servlet dispatcherServlet threw exception


description


The server encountered an internal error that prevented it from fulfilling this request.


exception

javax.servlet.ServletException: Servlet.init() for servlet dispatcherServlet threw exception
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
	org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
	org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
	java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	java.lang.Thread.run(Thread.java:745)


root cause

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'attachmentDao' defined in file [E:\JAVA项目\ttms1.01\target\ttms1.01-0.0.1-SNAPSHOT\WEB-INF\classes\cn\tedu\ttms\attachment\dao\AttachmentDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [E:\JAVA项目\ttms1.01\target\ttms1.01-0.0.1-SNAPSHOT\WEB-INF\classes\spring-mybatis.xml]: Cannot resolve reference to bean 'dataSource' while s



版权声明:本文为cc775307294原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。