我实际上正在使用Maven,Spring和Tomcat8。问题是我正在尝试部署在此Tomcat服务器上开发的应用程序。 2周前,我能够毫无问题地部署它。现在的事情是,我花了2天的时间来解决部署应用程序时的错误。
我在这里确实需要一些帮助。希望你能找到一个。
这是错误:
26-Jun-2018 13:37:25.722 INFO [localhost-startStop-8] org.apache.catalina.startup.HostConfig.deployWAR DΘploiement de l'archive C:\Apache Software Foundation\Tomcat 8.0\webapps\api.war de l'application web
26-Jun-2018 13:38:17.464 INFO [localhost-startStop-8] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
26-Jun-2018 13:38:17.578 SEVERE [localhost-startStop-8] org.apache.catalina.core.StandardContext.startInternal Error during ServletContainerInitializer processing
javax.servlet.ServletException: Failed to instantiate WebApplicationInitializer class
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:158)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5244)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:939)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1812)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
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.NoSuchMethodError: org.springframework.util.ReflectionUtils.accessibleConstructor(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:155)
... 12 more
26-Jun-2018 13:38:17.579 SEVERE [localhost-startStop-8] org.apache.catalina.core.StandardContext.startInternal Erreur de dΘmarrage du contexte [/api] suite aux erreurs prΘcΘdentes
26-Jun-2018 13:38:17.595 INFO [localhost-startStop-8] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive C:\Apache Software Foundation\Tomcat 8.0\webapps\api.war has finished in 51á882 ms
我可以提供文件pom.xml,但是由于应用程序的大小,它非常大。告诉我你是否需要。
编辑-Spring软件包
以下是带有其版本的spring的jar文件。仅有另一个版本的“ spring-bridge”,因为在最新的spring版本中不存在。尽管如此,即使通过注释依赖项,该错误仍然会发生。