UI-Component Sets

Tomcat 5.5.x

Some users have reported problems when using MyFaces wtth Tomcat5.5.x. Here is a short guide that will hopefully help you not run into the same problems :-)

  • If your are using the binary version of MyFaces: MyFaces is packaged so that it works with Tomcat5.0.x so the WEB-INF/lib/jsp-2.0.jar and WEB-INF/lib/commons-el.jar JAR files must be removed from your WAR files (including the examples).
  • If you are building from source: If you want to build MyFaces from scratch to work with Tomcat 5.5.x, you have to set the property tomcat.pre.5.5.version in the $MYFACES_HOME/build/build.default.properties file to the value false.

We hope this helps, if not please contact the user list at MyFaces!

Tomcat 4.x

MyFaces has a dependency on some of the classes in the JSP2.0 spec. As a result applications based on MyFaces will not run without the inclusion of the jsp-2.0.jar file in the WEB-INF/lib directory of your .war file.

We hope this helps, if not please contact the user list at MyFaces.

Configuring MyFaces/Tomahawk to be available for all applications in Tomcat

  • Place the relevant myfaces jars in $TOMCAT_HOME/shared/lib.
  • Place the following supporting jars in $TOMCAT_HOME/shared/lib: commons-beanutils.jar, commons-codec.jar, commons-digester.jar and commons-fileupload.jar.

We hope this helps, if not please contact the user list at MyFaces!