Library dependencies and versions
To use Apache MyFaces in your own webapplication you need to add several third party libraries. This page gives an overview over the necessary libraries and their version for the current stable release (which is 1.1.0 at the time of this writing).
See also
Getting started with Apache MyFaces and Using_MyFaces_in_a_Project_built_with_Maven
Required third party libraries
MyFaces version 1.1.0:
|
Library |
Version |
Notes |
|
1.6.1 |
||
|
1.2 |
||
|
3.1 |
||
|
1.5 |
||
|
1.0 |
||
|
1.0 |
Required only if you are uploading files |
|
|
1.0.4 |
||
|
1.2.0-dev |
Which snapshot is used for testing??? |
|
|
??? |
You can use the one from the Myfaces 1.0.9 binary distribution in the lib-directory |
|
|
1.2.12 |
Required only if you have commons-logging configured to use log4j. Version 1.2.8 might do as well |
|
|
myfaces-impl.jar |
1.1.0 |
Alternatively use myfaces-all.jar |
|
myfaces-api.jar |
1.1.0 |
Alternatively use myfaces-all.jar |
|
tomahawk.jar |
1.1.0 |
If you want to use MyFaces extensions. Alternatively use myfaces-all.jar |
|
|
1.2.7 |
Required only if you are doing tiles work, will change to the tile.jar file once tiles is pulled from struts. |
|
portlet-api.jar |
implementation specific |
Only needed for compile time. Portal implementation provides this API at run time. |
Installation
Copy the libraries (jar-files) into the WEB-INF/lib directory of your .war file.
If you are using a JSP 1.2 container like Tomcat 4 you must also copy the file jsp-2.0.jar to your WEB-INF/lib dir.
Make sure that there is no jsf-api.jar (i.e. Suns API implementation) in the classpath or in one of your container's shared lib directories (e.g. common/lib or shared/lib for Tomcat).
Alternatively you can add the libraries to the classpath of your Servlet container (check the documentation of your container).
Typically the first approach is recommended, as it allows you (a) to have different versions of libraries in different webapplication within the same container, and (b) to distribute your application as a whole without others having to install the libraies into their Servlet container.