aspose file tools*
The moose likes Tomcat and the fly likes How to enable el-api.jar ver. 2.2 in Tomcat 7 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to enable el-api.jar ver. 2.2 in Tomcat 7 ?" Watch "How to enable el-api.jar ver. 2.2 in Tomcat 7 ?" New topic
Author

How to enable el-api.jar ver. 2.2 in Tomcat 7 ?

Dlugi Dlugiass
Greenhorn

Joined: Aug 17, 2011
Posts: 2
Hi Gurus,


since few hours I`m trying to install el-api.jar ver 2.2 (el-api-2.2.jar) in my Tomcat. I deleted TOMCAT_HOME/lib/el-api.jar old version and copied new one.
After restart tomcat 7 showing me that error.

Should I configure something in web.xml ? Would be great if somebody could support me...

How to install el-api.jar in version 2.2 in Tomcat ?


Error from tomcat 7
---------------------------------------------------------------------------------------------------------------------

HTTP Status 500 - javax.el.ELException: Provider com.sun.el.ExpressionFactoryImpl not found

type Exception report

message javax.el.ELException: Provider com.sun.el.ExpressionFactoryImpl not found

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: javax.el.ELException: Provider com.sun.el.ExpressionFactoryImpl not found
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:585)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:396)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

root cause

javax.el.ELException: Provider com.sun.el.ExpressionFactoryImpl not found
javax.el.FactoryFinder.newInstance(FactoryFinder.java:97)
javax.el.FactoryFinder.find(FactoryFinder.java:193)
javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:185)
javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:156)
org.apache.jasper.runtime.JspApplicationContextImpl.<init>(JspApplicationContextImpl.java:53)
org.apache.jasper.runtime.JspApplicationContextImpl.getInstance(JspApplicationContextImpl.java:83)
org.apache.jasper.runtime.JspFactoryImpl.getJspApplicationContext(JspFactoryImpl.java:223)
org.apache.jsp.index_jsp._jspInit(index_jsp.java:31)
org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:49)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:180)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

root cause

java.lang.ClassNotFoundException: com.sun.el.ExpressionFactoryImpl
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
javax.el.FactoryFinder.newInstance(FactoryFinder.java:83)
javax.el.FactoryFinder.find(FactoryFinder.java:193)
javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:185)
javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:156)
org.apache.jasper.runtime.JspApplicationContextImpl.<init>(JspApplicationContextImpl.java:53)
org.apache.jasper.runtime.JspApplicationContextImpl.getInstance(JspApplicationContextImpl.java:83)
org.apache.jasper.runtime.JspFactoryImpl.getJspApplicationContext(JspFactoryImpl.java:223)
org.apache.jsp.index_jsp._jspInit(index_jsp.java:31)
org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:49)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:180)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.30 logs.



Thanks in advance...
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

I think you probably made a mistake in deleting the original el-api.jar from TOMCAT_HOME/lib. It's probably critical to Tomcat internal functioning.

Unless you were using a published recipe for upgrading to EL 2.2 that explicitly mentioned doing that as one of the steps, I'd restore the deleted jar.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
Don't get me started about those stupid light bulbs.
 
subject: How to enable el-api.jar ver. 2.2 in Tomcat 7 ?