Hi I am planning to add facelet support to an already existing project of mine. I addded the follwing three libs jsf-facelets.jar, el-api.jar and el-ri.jar and the other jars in my lib are the commons (4) jars, jsf-api,jsf-impl, jstl, standard and tl-common.jar. I added a very simple facelet page (the number guess example) and tried to run it but got the very same error : Error Rendering View[/facelet1.jsp] Could not instantiate feature[compiler.ExpressionFactory]: com.sun.el.ExpressionFactoryImpl at com.sun.facelets.compiler.Compiler.featureInstance(Compiler.java:153) at com.sun.facelets.compiler.Compiler.createExpressionFactory(Compiler.java:142) at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:193) at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:141)......
According to this post this should have been resolved if we had the el-api and el-ri jars in my lib folder. These libs have been added to the class path and btw i downloaded the jars from the java.net site. What else can be the problem. For facelets I have added a single entry in the faces-config.xml file for the view-handler. Do I need to make more changes in this file or any other file. Thanks for the help. Mike Kienenberger wrote: > > Yes, el-api.jar and el-ri.jar are required. > > These are available from the glassfish project (facelets uses ant > tasks to download them from there, or at least that's how they used to > get fetched during the facelets build process). > > On 7/31/06, Sean Schofield <[EMAIL PROTECTED]> wrote: >> According to the facelets site (section 1.2) the EL RI is also needed >> for facelets[1]. That's probably why I am getting the following stack >> trace: >> >> SEVERE: Error Rendering View[/welcome.xhtml] >> com.sun.facelets.FaceletException: Could not instantiate >> feature[compiler.ExpressionFactory]: com.sun.el.ExpressionFactoryImpl >> at >> com.sun.facelets.compiler.Compiler.featureInstance(Compiler.java:153) >> at >> com.sun.facelets.compiler.Compiler.createExpressionFactory(Compiler.java:127) >> at >> com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:193) >> ... >> >> I must have hard-copied that dep into the project and now that I'm >> using maven its not working. >> >> Sean >> >> [1] https://facelets.dev.java.net/nonav/docs/dev/docbook.html >> >> On 7/31/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: >> > On 7/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> > > >> > > Author: schof >> > > Date: Mon Jul 31 12:30:46 2006 >> > > New Revision: 427223 >> > > >> > > URL: http://svn.apache.org/viewvc?rev=427223&view=rev >> > > Log: >> > > changed JSF dep to RI; added jsp-2.1 api dp (still need to get the EL >> > > dependency added) >> > >> > >> > I asked about this issue internally, and here's the answer I got: as >> of JSP >> > 2.1, the new unified EL APIs are still part of the JSP specification, >> so the >> > classes themselves are supposed to be in the jsp-api jar that your new >> > dependency references. If/when the unified EL classes are separated >> into >> > their own JSR (probably in some future maintenance rev of the JSP spec) >> they >> > will be split out into their own JAR and published separately. >> > >> > Craig >> > >> > >> > > -- View this message in context: http://www.nabble.com/Re%3A-svn-commit%3A-r427223----shale-sandbox-shale-petstore-pom.xml-tf2029610.html#a6039579 Sent from the Shale - Dev forum at Nabble.com.