users@glassfish.java.net

ELResolvers not registered with the JSP container

From: <forums_at_java.net>
Date: Fri, 13 May 2011 07:56:54 -0500 (CDT)

Hello, I am writing a JSF application under Glassfish 3.1 (Windows) and I
cannot get the JSF pages to display. I am getting the following error from
Glassfish:
JSF1027: [null] The ELResolvers for JSF were not registered with theJSP
container.
My web.xml file is:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  version="3.0"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                     
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
  <display-name>CouponTool</display-name>
  <description>Coupon Management Tool</description>
   <context-param>
      <param-name>javax.faces.PROJECT_STAGE</param-name>
      <param-value>Development</param-value>
   </context-param>
   <context-param>
      <param-name>com.sun.faces.expressionFactory</param-name>
      <param-value>com.sun.el.ExpressionFactoryImpl</param-value>
   </context-param>
   <context-param>
      <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
      <param-value>.xhtml</param-value>
   </context-param>
   <context-param>
      <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
      <param-value>true</param-value>
   </context-param>
   <context-param>
      <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
      <param-value>.xhtml</param-value>
   </context-param>
   <servlet>
       <servlet-name>Faces Servlet</servlet-name>
       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
       <load-on-startup>1</load-on-startup>/*/
   </servlet>
   <servlet-mapping>
       <servlet-name>Faces Servlet</servlet-name>
       <url-pattern>/faces/*</url-pattern>
   </servlet-mapping>
  <welcome-file-list>
    <welcome-file>/faces/CouponList.xhtml</welcome-file>
  </welcome-file-list>
</web-app>
 

I have a faces-config.xml, and a sun-web.xml, and have written Glassfish/JSF
applications before, but I have been working on this for three days and I am
out of ideas. I have a single managed bean, defined via annotations. I am
using Java 1.6. I have not modified the jsf-api.jar,jsf-impl.jar, or the
el-impl.jar in the modules directory for Glassfish. I have checked the path
for other versions of the jsf/el jar files. I have fiddled around with
different attributes for the web-app element in web.xml. Nothing has worked.
What am I doing wrong?
Mike Laris
mglaris_at_gmail.com [1]


[1] mailto:mglaris_at_gmail.com

--
[Message sent by forum member 'mlaris']
View Post: http://forums.java.net/node/801804