Home > Back-end >  Will be deployed to the cloud SSM project there was a Servlet on the server. The init () for the Ser
Will be deployed to the cloud SSM project there was a Servlet on the server. The init () for the Ser

Time:09-16

I write on the idea of SSM project running normally, but a war file to deploy to appear when the Servlet on the server. The init () for the Servlet [for springmvc] threw the exception error
Specific error is as follows:
Javax.mail. Servlet. ServletException: servlet init () for the servlet [for springmvc] threw the exception
Org. Apache. Catalina. The authenticator. AuthenticatorBase. Invoke (AuthenticatorBase. Java: 541)
Org. Apache. Catalina. Valves. ErrorReportValve. Invoke (ErrorReportValve. Java: 92)
Org. Apache. Catalina. Valves. AbstractAccessLogValve. Invoke (AbstractAccessLogValve. Java: 690)
Org. Apache. Catalina. Connector. CoyoteAdapter. Service (343) CoyoteAdapter. Java:
Org. Apache. Coyote. Http11. Http11Processor. Service (373) Http11Processor. Java:
Org. Apache. Coyote. AbstractProcessorLight. Process (65) AbstractProcessorLight. Java:
Org. Apache. Coyote. AbstractProtocol $ConnectionHandler. Process (868) AbstractProtocol. Java:
Org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun NioEndpoint. Java: (1590)
Org.apache.tomcat.util.net.SocketProcessorBase.run (SocketProcessorBase. Java: 49)
Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (ThreadPoolExecutor. Java: 1149)
Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (ThreadPoolExecutor. Java: 624)
Org, apache tomcat. Util. Threads. TaskThread $WrappingRunnable. Run (61) TaskThread. Java:
Java. Lang. Thread. The run (748) Thread. Java:

Root Cause

Org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'org. Springframework. Validation. Beanvalidation. OptionalValidatorFactoryBean# 0' : the Invocation of the init method failed; Nested exception is Java. Lang. NoSuchMethodError: javax.mail. Validation. Spi. ConfigurationState. GetParameterNameProvider () Ljavax/validation/ParameterNameProvider;
Org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. InitializeBean (AbstractAutowireCapableBeanFactory. Java: 1566)
Org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. DoCreateBean (AbstractAutowireCapableBeanFactory. Java: 539)
Org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. CreateBean (AbstractAutowireCapableBeanFactory. Java: 476)
Org. Springframework. Beans. Factory. Support. AbstractBeanFactory $1. GetObject (AbstractBeanFactory. Java: 303)
Org. Springframework. Beans. Factory. Support. DefaultSingletonBeanRegistry. GetSingleton (DefaultSingletonBeanRegistry. Java: 230)
Org. Springframework. Beans. Factory. Support. AbstractBeanFactory. DoGetBean (AbstractBeanFactory. Java: 299)
Org. Springframework. Beans. Factory. Support. AbstractBeanFactory. GetBean (AbstractBeanFactory. Java: 194)
Org. Springframework. Beans. Factory. Support. DefaultListableBeanFactory. PreInstantiateSingletons (DefaultListableBeanFactory. Java: 762)
Org. Springframework. Context. Support. AbstractApplicationContext. FinishBeanFactoryInitialization (AbstractApplicationContext. Java: 757)
Org. Springframework. Context. Support. AbstractApplicationContext. Refresh (AbstractApplicationContext. Java: 480)
Org. Springframework. Web. Servlet. FrameworkServlet. ConfigureAndRefreshWebApplicationContext (FrameworkServlet. Java: 663)
Org. Springframework. Web. Servlet. FrameworkServlet. CreateWebApplicationContext (FrameworkServlet. Java: 629)
Org. Springframework. Web. Servlet. FrameworkServlet. CreateWebApplicationContext (FrameworkServlet. Java: 677)
Org. Springframework. Web. Servlet. FrameworkServlet. InitWebApplicationContext (FrameworkServlet. Java: 548)
Org. Springframework. Web. Servlet. FrameworkServlet. InitServletBean (FrameworkServlet. Java: 489)
Org. Springframework. Web. Servlet. HttpServletBean. Init (HttpServletBean. Java: 136)
Javax.mail. Servlet. GenericServlet. Init (GenericServlet. Java: 158)
Org. Apache. Catalina. The authenticator. AuthenticatorBase. Invoke (AuthenticatorBase. Java: 541)
Org. Apache. Catalina. Valves. ErrorReportValve. Invoke (ErrorReportValve. Java: 92)
Org. Apache. Catalina. Valves. AbstractAccessLogValve. Invoke (AbstractAccessLogValve. Java: 690)
Org. Apache. Catalina. Connector. CoyoteAdapter. Service (343) CoyoteAdapter. Java:
Org. Apache. Coyote. Http11. Http11Processor. Service (373) Http11Processor. Java:
Org. Apache. Coyote. AbstractProcessorLight. Process (65) AbstractProcessorLight. Java:
Org. Apache. Coyote. AbstractProtocol $ConnectionHandler. Process (868) AbstractProtocol. Java:
Org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun NioEndpoint. Java: (1590)
Org.apache.tomcat.util.net.SocketProcessorBase.run (SocketProcessorBase. Java: 49)
Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (ThreadPoolExecutor. Java: 1149)
Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (ThreadPoolExecutor. Java: 624)
Org, apache tomcat. Util. Threads. TaskThread $WrappingRunnable. Run (61) TaskThread. Java:
Java. Lang. Thread. The run (748) Thread. Java:
Root Cause

Java. Lang. NoSuchMethodError: javax.mail. Validation. Spi. ConfigurationState. GetParameterNameProvider () Ljavax/validation/ParameterNameProvider;
Org, hibernate validator. Internal. Engine. ValidatorFactoryImpl. & lt; init> (ValidatorFactoryImpl. Java: 133)
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related