[英]javax.servlet.ServletException: Servlet.destroy() for servlet jsp threw exception
From time to time i get this error on Eclipse: 我不时在Eclipse上收到此错误:
Grave: Servlet jsp threw unload() exception
javax.servlet.ServletException: Servlet.destroy() for servlet jsp threw exception
at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1486)
at org.apache.catalina.core.StandardWrapper.stopInternal(StandardWrapper.java:1823)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5463)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3913)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:426)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1345)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchFieldError: deferredExpression
at org.apache.taglibs.standard.tag.common.core.ForEachSupport.release(ForEachSupport.java:178)
at org.apache.jasper.runtime.TagHandlerPool.release(TagHandlerPool.java:165)
at org.apache.jsp.Include.Apertura_jsp._jspDestroy(Apertura_jsp.java:45)
at org.apache.jasper.runtime.HttpJspBase.destroy(HttpJspBase.java:60)
at org.apache.jasper.servlet.JspServletWrapper.destroy(JspServletWrapper.java:478)
at org.apache.jasper.compiler.JspRuntimeContext.destroy(JspRuntimeContext.java:317)
at org.apache.jasper.servlet.JspServlet.destroy(JspServlet.java:354)
at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1465)
... 12 more
It happens after Ecplise print this on the console window 在Ecplise在控制台窗口上打印此文件后发生
ago 12, 2014 11:14:40 PM org.apache.catalina.core.StandardContext reload
Informazioni: Reloading Context with name [/Jeans2] has started
ago 12, 2014 11:14:40 PM org.apache.catalina.core.ApplicationContext log
I think it means Eclipse is trying to compile my classe etc. Anyway, my project stopped working after eclipse do it, and i get that error 我认为这意味着Eclipse正在尝试编译我的类等。无论如何,我的项目在Eclipse完成后就停止工作了,并且出现了该错误
I found some similar posts, but i didnt find a solution that suits my problem. 我发现了一些类似的帖子,但是我没有找到适合我问题的解决方案。 According to other posts solutions, i did this stuff:
根据其他帖子的解决方案,我做了这样的事情:
1) I have no jstl jar file in the WEB-INF/lib folder 1)我在WEB-INF / lib文件夹中没有jstl jar文件
2) I have no duplicated jar files in my java build path 2)我的Java构建路径中没有重复的jar文件
Does anybody had my same problem? 有人遇到我同样的问题吗?
I found this: The main reason for this error to be thrown at run-time is "that you may have accidentally (indeed purposefully) deleted a field(public or protected) from the class, or interface and recompiled the edited class or interface alone." 我发现了这一点: 在运行时引发此错误的主要原因是“您可能不小心(实际上是有意地)从类或接口中删除了一个字段(公共或受保护),并且仅重新编译了已编辑的类或接口“。
Maybe if eclipse stopped re-compiling every 2 minutes my project i wouldn't get this error, right?? 也许如果eclipse每2分钟停止重新编译一次我的项目,我将不会收到此错误,对吗? I mean, actually i dont have any error in my application, is it right?
我的意思是,实际上我的应用程序没有任何错误,对吗?
This seems to be a problem generated by Eclipse Build Automatically option. 这似乎是由Eclipse Build Automatically选项生成的问题。 Just turn it off by going to Project / Build Automatically and select it to uncheck it.
只需通过自动转到“ 项目 / 构建”将其关闭,然后选择它以取消选中即可。 After this, you will have to compile your project manually by right clicking on it and select Build Project option.
之后,您将必须通过右键单击项目并选择“ Build Project”选项来手动编译项目 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.