Kurt,

Thanks for your response. I had unzipped the file in the wrong place.

I have followed the instructions in the two links you sent me and have
conquered this problem to arrive at another one, which may or may not
be related. With the following JSP code


<%@ page contentType="text/html" %>
<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>

<f:view>
   <h:form>
     From: <h:inputText size="8" />
   </h:form>
</f:view>


I get the following error
javax.servlet.ServletException:
org/apache/commons/el/ExpressionEvaluatorImpl
javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)

The difference (and source of joy) is that now I am at least getting this
in the browser instead of in the startup panel in Tomcat.
My web.xml file is still as below and my newly cleaned lib directories are

common\lib
      jasper-compiler-jdt.jar
      jasper-compiler.jar
      jasper-runtime.jar
      jsp-api.jar
      naming-factory-dbcp.jar
      naming-factory.jar
      naming-resources.jar
      sample_app_1_0_2.jar
      servlet-api.jar
      standard.jar

sample\WEB-INF\lib
      commons-beanutils.jar
      commons-collections.jar
      commons-digester.jar
      commons-el.jar
      commons-logging.jar
      custom_jsf_lib_1_0_2.jar
      jstl.jar
      myfaces-all.jar
      myfaces-api.jar
      myfaces-impl.jar
      struts.jar


Is this error still connected to the ServletContext problem from before?

Thanks again
Jeff





Message from Kurt Edegger <[EMAIL PROTECTED]> received on 12/07/2005
06:24 PM
|------------+--------------+---->
|            |              |    |
|            |  12/07/2005  |    |
|            |   06:24 PM   |    |
|            |              |    |
|            |              |    |
|------------+--------------+---->
  
>----------------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                               |
  |Kurt Edegger <[EMAIL PROTECTED]>                                             
                                           |
  |                                                                             
                                               |
  |Please respond to "MyFaces Discussion" <[email protected]>            
                                               |
  |Sent by Kurt Edegger <[EMAIL PROTECTED]>                                     
                                           |
  
>----------------------------------------------------------------------------------------------------------------------------|

|----------------------->
|                       |
|                       |
|----------------------->
  
>-----------------------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                                      |
  |      To:       MyFaces Discussion <[email protected]>, Jeff 
Mullen/USCRC/[EMAIL PROTECTED]                                           |
  |      cc:                                                                    
                                                      |
  |      Subject:  Re: StartupServletContextListener crashes Tomcat container   
                                                      |
  
>-----------------------------------------------------------------------------------------------------------------------------------|



Hi,

please make sure that you inluded the myfaces libraries to your webapp,
since
they are not in your common\lib.
The following links explain how to get started with myfaces (which is just
an
implementation of JSF):

http://wiki.apache.org/myfaces/Installation_and_Configuration
http://wiki.apache.org/myfaces/Getting_Started

Take care,

   Kurt

Quoting "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>:

> Greetings
>
> I just joined this list tonight, as I have only started messing around
> witth Java Server Faces and Tomcat.
> I am working through some tutorials very slowly and I seem to be able to
> work the JSP side of things
> fairly well, but I cannot get Java Server Faces to work at all. I will
skip
> the tortuous details of how I got
> to this point and simply say that I get the following error when I try to
> add the StartupServletContextListener
> to the web.xml file
>
>
> Dec 7, 2005 4:48:43 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> Dec 7, 2005 4:48:43 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/samples] startup failed due to previous errors
>
>
>
> Relevant info:
>       Apache/Tomcat version 5.5.12
>       MyFaces 1.1.1
>
> Included in common\lib
>       commons-beanutils.jar
>       commons-collections.jar
>       commons-digester.jar
>       commons-el.jar
>       commons-logging.jar
>       custom_jsf_lib_1_0_2.jar
>       jasper-compiler-jdt.jar
>       jasper-compiler.jar
>       jasper-runtime.jar
>       jsf-api.jar
>       jsf-impl.jar
>       jsp-api.jar
>       jstl.jar
>       naming-factory-dbcp.jar
>       naming-factory.jar
>       naming-resources.jar
>       sample_app_1_0_2.jar
>       servlet-api.jar
>       standard.jar
>       struts.jar
>
>
>
> web.xml file
> ----------------------------------------------------------------------
> <?xml version="1.0" ?>
>
> <web-app xmlns="http://java.sun.com/xml/ns/j2ee";
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
>     version="2.4">
>
>
>
> <context-param>
>     <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
>     <param-value>server</param-value>
>   </context-param>
>
>
> <!-- Startup of Tomcat works until I add this node -->
>     <listener>
>
>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>

>     </listener>
>
>
>
>   <servlet>
>     <servlet-name>FacesServlet</servlet-name>
>     <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>     <load-on-startup>1</load-on-startup>
>   </servlet>
>
>   <servlet-mapping>
>     <servlet-name>FacesServlet</servlet-name>
>     <url-pattern>*.faces</url-pattern>
>   </servlet-mapping>
>
>
>
>
>
>
> </web-app>
>
>
-------------------------------------------------------------------------------------------------------------------------------------------

>
>
> As I point out above, starting Tomcat works until I add the <listener>
> node. Without it, or so I gather from
> googling this all day, the faces page won't work, but the server starts
up
> at least.
>
> So, what exactly am I missing? (I hope this is enough info)
>
> Thanks
> Jeff
>
>
>
>
>









Reply via email to