Myfaces application can be configured in eclipse and launched using tomcat/jetty servlet container. Lets assume a general web application directory structure:

  |      +---src
  |           +---java
  |      +---src
  |           +---java
       |      +---java
              |    +---classes
              |    +---lib
              |    +---web.xml
              |    +---faces-config.xml
              +---<view pages>

The <root>/lib folder contains Myfaces jars (Let <root> folder be c:\workspace\myproject). Its may be a good idea to download all latest commons jars and put in a subdirectory under lib (eg: latest version of commons-logging.jar will be used by Myfaces as well as hibernate, avoiding maintainence of different versions). Install the following:

Following steps are common whether configuring for tomcat or jetty

Configuring in Tomcat

<?xml version='1.0' encoding='utf-8'?>
<Context docBase="${catalina.home}/../../workspace/myproject/web/webapp" path="/myproject">
  <Logger className="org.apache.catalina.logger.FileLogger"
             prefix="localhost_myproject_log." suffix=".txt"


Configuring in Jetty

Myfaces_Eclipse_Setup (last edited 2009-09-20 23:00:52 by localhost)