2017-02-13 197 views
0

我們已經升級到了Websphere 9以及Camel 2.17,Java8和Spring4。java.lang.NoClassDefFoundError:org.apache.jasper.el.E​​LContextImpl(初始化失敗)

在封裝內部,我們有以下罐子

camel-jms-2.17.0.jar, camel-juel-2.17.0.jar, camel-spring-2.17.0.jar 

裏面我們有如下的罐子被插件文件夾,包含ElContextImpl。

javax.j2ee.el.jar, com.ibm.ws.webcontainer.jar 

在點擊url時出現以下異常。不知道什麼被錯過了作爲它是給這個錯誤是否它的版本不匹配,衝突或類路徑問題

com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[WebExtensionProcessor]: 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.ELValidator.validateELExpression(ELValidator.java:150) 
     at com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.validateCustomTagAttribute(ValidateVisitor.java:1757) 
     at com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.validateCustomTagAttributeValues(ValidateVisitor.java:1405) 
     at com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.visitCustomTagStart(ValidateVisitor.java:294) 
     at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:366) 
     at com.ibm.ws.jsp.translator.visitor.JspVisitor.processChildren(JspVisitor.java:419) 
     at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:369) 

Caused by: java.lang.NullPointerException 
     at javax.el.CompositeELResolver.add(CompositeELResolver.java:49) 
     at org.apache.jasper.el.ELContextImpl.<clinit>(ELContextImpl.java:85) 
     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.ELValidator.validateELExpression(ELValidator.java:150) 
     at com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.validateCustomTagAttribute(ValidateVisitor.java:1757) 
     at com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.validateCustomTagAttributeValues(ValidateVisitor.java:1405) 
     at com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.visitCustomTagStart(ValidateVisitor.java:294) 
     at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:366) 
     at com.ibm.ws.jsp.translator.visitor.JspVisitor.processChildren(JspVisitor.java:419) 
     at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:369) 
     at com.ibm.ws.jsp.translator.visitor.JspVisitor.processChildren(JspVisitor.java:419) 
+0

檢查應用程序中的WEB-INF/lib文件夾,可能包括與servlet,jsp和el實現相關的衝突jar。 – Gas

回答

0

的問題涉及到由稱爲JUEL罐子結果駱駝。這個版本的jar是用於JSP 2.1;因此,它不支持 EL 3.0,它是用於WAS 9.0.0.2的EL 3.0。 所以我刪除了這個jar,因爲沒有更高版本的這個jar可用,並用juel-impl-2.2.7.jar替換了這個。

它現在工作。