Jetty has moved!
Jetty is a project at the Eclipse Foundation.
Homepage:http://www.eclipse.org/jetty
Downloads: http://download.eclipse.org/jetty/
Documentation:http://www.eclipse.org/jetty/documentation/current/
About:http://www.eclipse.org/jetty/about.php
Jetty Powered:http://www.eclipse.org/jetty/powered/
Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Integrating with MyFaces

MyFaces is a Open Source Implementation of the JavaServer Faces Framework.

  1. Download the Tomahawk examples distribution and extract the simple.war
  2. Extract the contents of the simple.war into a new directory: $JETTY-HOME/webapps/simple
  3. Make a new directory: $JETTY-HOME/lib/ext/myfaces
  4. Move all of the jars in $JETTY-HOME/webapps/simple/WEB-INF/lib into $JETTY-HOME/lib/ext/myfaces. You can delete the xml-apis-1.0.b2.jar as there is already an api jar in the Jetty lib hierarchy.
  5. MyFaces uses commons-logging for log messages. As Jetty does not use commons-logging, you need to select a log impl. We recommend that you use SLF4J's commons-logging bridging mechanism, as Jetty is able to work with SLF4J logs. If you elect to do that, you need to download the jcl104-over-slf4j-1.0.1.jar and an SLF4J impl, such as the slf4j-simple-1.0.1.jar and put them somewhere in $JETTY-HOME/lib, such as your $JETTY-HOME/lib/ext/myfaces directory. Or, you might like to put those jars into $JETTY-HOME/lib/ext (one level higher) as you might want to share them with other webapps.
  6. Edit $JETTY-HOME/webapps/simple/WEB-INF/web.xml and add these lines:
  7. Run Jetty as usual: java -jar start.jar
  8. Surf to http://localhost:8080/simple
  9. Refer to the MyFaces docs for more info
  • No labels
Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery