java 编译异常及其解决办法(持续更新)
Posted carsonwuu
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java 编译异常及其解决办法(持续更新)相关的知识,希望对你有一定的参考价值。
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:softwaremyeclipseapache-tomcat-8.5.31webappsEasyGo] 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 编译异常及其解决办法(持续更新)的主要内容,如果未能解决你的问题,请参考以下文章
解决未能加载文件或程序集“Newtonsoft.Json ...."或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)(代码片段