SHARE
TWEET

thymeleaf

a guest Feb 26th, 2020 86 in 324 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javax.servlet.ServletException: Servlet.init() for servlet [dispatcher] threw exception
  2.     org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
  3.     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  4.     org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
  5.     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
  6.     org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
  7.     org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  8.     org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853)
  9.     org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
  10.     org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  11.     java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  12.     java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  13.     org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  14.     java.lang.Thread.run(Thread.java:748)
  15.  
  16. Root Cause
  17.  
  18. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'drugservice': Unsatisfied dependency expressed through method 'setDao' parameter 0; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver] for bean with name 'templateResolver' defined in class path resource [dispatcher-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver
  19.     org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:676)
  20.     org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
  21.     org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374)
  22.     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1395)
  23.     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592)
  24.     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
  25.     org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
  26.     org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
  27.     org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
  28.     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  29.     org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:849)
  30.     org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)
  31.     org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
  32.     org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:701)
  33.     org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:667)
  34.     org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:715)
  35.     org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:590)
  36.     org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:529)
  37.     org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:169)
  38.     javax.servlet.GenericServlet.init(GenericServlet.java:158)
  39.     org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
  40.     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  41.     org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
  42.     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
  43.     org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
  44.     org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  45.     org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853)
  46.     org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
  47.     org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  48.     java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  49.     java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  50.     org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  51.     java.lang.Thread.run(Thread.java:748)
  52.  
  53. Root Cause
  54.  
  55. org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver] for bean with name 'templateResolver' defined in class path resource [dispatcher-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver
  56.     org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1392)
  57.     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:680)
  58.     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:647)
  59.     org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1518)
  60.     org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:507)
  61.     org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:485)
  62.     org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:227)
  63.     org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1411)
  64.     org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1210)
  65.     org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1167)
  66.     org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:668)
  67.     org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
  68.     org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374)
  69.     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1395)
  70.     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592)
  71.     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
  72.     org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
  73.     org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
  74.     org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
  75.     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  76.     org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:849)
  77.     org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)
  78.     org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
  79.     org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:701)
  80.     org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:667)
  81.     org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:715)
  82.     org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:590)
  83.     org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:529)
  84.     org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:169)
  85.     javax.servlet.GenericServlet.init(GenericServlet.java:158)
  86.     org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
  87.     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  88.     org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
  89.     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
  90.     org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
  91.     org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  92.     org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853)
  93.     org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
  94.     org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  95.     java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  96.     java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  97.     org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  98.     java.lang.Thread.run(Thread.java:748)
  99.  
  100. Root Cause
  101.  
  102. java.lang.ClassNotFoundException: org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver
  103.     org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1365)
  104.     org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1188)
  105.     java.lang.Class.forName0(Native Method)
  106.     java.lang.Class.forName(Class.java:348)
  107.     org.springframework.util.ClassUtils.forName(ClassUtils.java:275)
  108.     org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:437)
  109.     org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1457)
  110.     org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1384)
  111.     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:680)
  112.     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:647)
  113.     org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1518)
  114.     org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:507)
  115.     org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:485)
  116.     org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:227)
  117.     org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1411)
  118.     org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1210)
  119.     org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1167)
  120.     org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:668)
  121.     org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
  122.     org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374)
  123.     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1395)
  124.     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592)
  125.     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
  126.     org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
  127.     org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
  128.     org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
  129.     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  130.     org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:849)
  131.     org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)
  132.     org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
  133.     org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:701)
  134.     org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:667)
  135.     org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:715)
  136.     org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:590)
  137.     org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:529)
  138.     org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:169)
  139.     javax.servlet.GenericServlet.init(GenericServlet.java:158)
  140.     org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
  141.     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  142.     org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
  143.     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
  144.     org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
  145.     org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  146.     org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853)
  147.     org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
  148.     org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  149.     java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  150.     java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  151.     org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  152.     java.lang.Thread.run(Thread.java:748)
  153.  
  154. Note The full stack trace of the root cause is available in the server logs.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top