java 編譯異常及其解決辦法(持續更新)
阿新 • • 發佈:2018-12-26
unable event stc .config configure rect spring conf version
java 編譯異常及其解決辦法(持續更新)
1.解決辦法:將jar版本降低適配 低版本的jdk或tomcat
1 嚴重: ContainerBase.addChild: start: 2 org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/EasyGo]] 3 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)版本太高4 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754) 5 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730) 6 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) 7 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1140)8 at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875) 9 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 10 at java.util.concurrent.FutureTask.run(FutureTask.java:262) 11 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)12 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 13 at java.lang.Thread.run(Thread.java:745) 14 Caused by: java.lang.UnsupportedClassVersionError: org/springframework/web/SpringServletContainerInitializer : Unsupported major.minor version 52.0 (unable to load class [org.springframework.web.SpringServletContainerInitializer]) 15 at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2341) 16 at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:828) 17 at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1277) 18 at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1136) 19 at java.lang.Class.forName0(Native Method) 20 at java.lang.Class.forName(Class.java:278) 21 at org.apache.catalina.startup.WebappServiceLoader.loadServices(WebappServiceLoader.java:188) 22 at org.apache.catalina.startup.WebappServiceLoader.load(WebappServiceLoader.java:159) 23 at org.apache.catalina.startup.ContextConfig.processServletContainerInitializers(ContextConfig.java:1612) 24 at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1125) 25 at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:765) 26 at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299) 27 at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94) 28 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154) 29 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 30 ... 10 more 31 十二月 26, 2018 10:34:42 上午 org.apache.catalina.startup.HostConfig deployDirectory 32 嚴重: Error deploying web application directory [D:\software\myeclipse\apache-tomcat-8.5.31\webapps\EasyGo] 33 java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/EasyGo]] 34 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:758) 35 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730) 36 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) 37 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1140) 38 at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875) 39 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 40 at java.util.concurrent.FutureTask.run(FutureTask.java:262) 41 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 42 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 43 at java.lang.Thread.run(Thread.java:745)
java 編譯異常及其解決辦法(持續更新)