當(dāng)前位置:
首頁(yè) >
前端技术
> javascript
>内容正文
javascript
springmvc错误 Spring3.X jdk8 java.lang.IllegalArgumentException
生活随笔
收集整理的這篇文章主要介紹了
springmvc错误 Spring3.X jdk8 java.lang.IllegalArgumentException
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
最近在學(xué)習(xí)springmvc--碰到一個(gè)特別蛋疼的錯(cuò)誤
javax.servlet.ServletException: Servlet.init() for servlet springMVC threw exceptionorg.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2466)org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2455)java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)java.lang.Thread.run(Thread.java:745)root causejava.lang.IllegalArgumentExceptionorg.springframework.asm.ClassReader.<init>(Unknown Source)org.springframework.asm.ClassReader.<init>(Unknown Source)org.springframework.asm.ClassReader.<init>(Unknown Source)org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:52)org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80)org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:102)org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76)org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:298)org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300)org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300)org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:230)org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:153)org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:130)org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:285)org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:223)org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:630)org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:652)org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:600)org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:666)org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:519)org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:460)org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)javax.servlet.GenericServlet.init(GenericServlet.java:158)org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2466)org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2455)java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)java.lang.Thread.run(Thread.java:745)錯(cuò)誤原因:
spring3.*不能使用jdk8.0 要保證你的eclipse使用的是1.7,tomcat使用的是1.7
于是我就又安裝了一個(gè)tomcat7.0,將jre改成了jre1.7
但是還是報(bào)錯(cuò)
于是我又安裝了一個(gè)jdk1.7版本的
我心想這回改好了吧,又報(bào)下面錯(cuò)誤
Project facet Java version 1.8 is not supported.
最后找到這篇博客解決了
使勁點(diǎn)我呀
?
轉(zhuǎn)載于:https://www.cnblogs.com/xiaoduc-org/p/5554174.html
總結(jié)
以上是生活随笔為你收集整理的springmvc错误 Spring3.X jdk8 java.lang.IllegalArgumentException的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 史上最全Linux面试题(2020最新版
- 下一篇: npm下载依赖失败并报错