wood burning stoves 2.0*
The moose likes JSF and the fly likes Expression Language error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Expression Language error" Watch "Expression Language error" New topic
Author

Expression Language error

Mikel Gonzalez
Greenhorn

Joined: Mar 03, 2011
Posts: 4
Hi there, I've tried to configure the EL with JSF on eclipse and Tomcat6 and I get the following error:

The ELResolvers for JSF were not registered with the JSP container.

There are no JSF pages in mi app, since I'm working with facelets. I'd be pleased If anyone could help me.

Thanks
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15949
    
  19

Welcome to the JavaRanch, Mikel!

I'm a little confused because you appear to be saying that you're using JSF at the same time you say you're not using JSF.

Depending on which webapp container you're using and which version of that webapp container you're deploying to, you may or may not have to include some support jars in your WAR. For example, EL is integrated into Tomcat 6, but has to be supplied as part of the webapp in Tomcat 5.5. Likewise, the jsf-impl libraries are sometimes supplied by the container and sometimes have to be manually provided as part of the WAR.


Customer surveys are for companies who didn't pay proper attention to begin with.
Mikel Gonzalez
Greenhorn

Joined: Mar 03, 2011
Posts: 4
Sorry, you are right, I tried to say that I'm not using JSP pages...

I'm using tomcat 6 webapp container, so i don't need to to suply the librelaries myself? I'll try it tonight, thank you very much.
Mikel Gonzalez
Greenhorn

Joined: Mar 03, 2011
Posts: 4
Sorry, you are right, I tried to say that I'm not using JSP pages...

I'm using tomcat 6 webapp container, so i don't need to to suply the librelaries myself? I'll try it tonight, thank you very much.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15949
    
  19

Mikel Gonzalez wrote:Sorry, you are right, I tried to say that I'm not using JSP pages...

I'm using tomcat 6 webapp container, so i don't need to to suply the librelaries myself? I'll try it tonight, thank you very much.


I think you'll find an el jar file in the TOMCAT_HOME/lib directory.
Mikel Gonzalez
Greenhorn

Joined: Mar 03, 2011
Posts: 4
I've removed the el-api-2.2.jar and el-impl-2.2.jar from the WEB_INF/lib, and checked that there is a el-api.jar on the tomcat6/lib directory. However I still have the same error when trying to execute my application:

Mar 5, 2011 5:46:05 PM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp
INFO: JSF1027: [/mywebapp.com] The ELResolvers for JSF were not registered with the JSP container.

I allready put this code in the web.xml file of the application.

<context-param>
<param-name>com.sun.faces.expressionFactory</param-name>
<param-value>com.sun.el.ExpressionFactoryImpl</param-value>
</context-param>

What else do I have to configure then?? Thanks again!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Expression Language error
 
Similar Threads
Custom JSF Error Page not displaying
how to handle errors in JSF
How to include errorpage in xhtml page.
Spring+ hibernate or JSF+EJB3
JSF... My post-JavaOne impressions.