0

问题:在 webapp 启动期间出现 java.lang.NoClassDefFoundError: org.apache.jasper.el.E​​LContextImpl 错误。我们正在使用 WebSphere 9.0。

我注意到 jasper-el.jar 是导致此错误的原因,因此我将其从库文件夹中删除。网络应用程序开始工作。在将 jasper-el.jar 放回 jar 文件夹后,我希望 webapp 不再工作。但它正在工作。没有办法重现错误。我想问怎么回事?

当我检查日志时,我们遇到此错误时加载了 org.apache.jasper.el.E​​LContextImpl 类。这个类在 WAS 的 com.ibm.ws.webcontainer.jar 中。

 Exception occurred during processing request: 

java.lang.NoClassDefFoundError: org.apache.jasper.el.ELContextImpl (initialization failure)
 com.ibm.ws.webcontainer.webapp.WebAppErrorReport: java.lang.NoClassDefFoundError: org.apache.jasper.el.ELContextImpl (initialization failure)
    at com.ibm.ws.webcontainer.webapp.WebAppErrorReport.constructErrorReport(WebAppErrorReport.java:153)
    at com.ibm.ws.webcontainer.webapp.WebAppErrorReport.constructErrorReport(WebAppErrorReport.java:194)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1249)

Caused by: java.lang.NoClassDefFoundError: org.apache.jasper.el.ELContextImpl (initialization failure)
    at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:91)
    at com.ibm.ws.jsp.translator.visitor.validator.ELValidator.validateElFunction(ELValidator.java:499)
    at com.ibm.ws.jsp.translator.visitor.validator.ELValidator.validateELExpression(ELValidator.java:123)
    at com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.visitJspELTextStart(ValidateVisitor.java:1268)

Caused by: java.lang.NullPointerException
    at javax.el.CompositeELResolver.add(CompositeELResolver.java:49)
    at org.apache.jasper.el.ELContextImpl.<clinit>(ELContextImpl.java:85)
    ... 93 more
4

0 回答 0