RichFaces-Ajax4JSF

From Resin 3.0

Jump to: navigation, search

Step by Step (Deploying RichFaces Sample Application)

[Tested with Resin 3.1.6 and Richfaces 3.1.4.GA]

Deploying Calendar-Sample Application

  1. Download Resin from http://caucho.com/download
  2. Unzip Resin into /usr/local/share/resin
  3. Download Richfaces 3.1.4 distribution from http://www.jboss.org/jbossrichfaces/downloads/ (you will need one that comes with sources i.e. with -src in the name)
  4. Extract files from the archive and change into directory that now contains the extracted download
  5. Set MAVEN_OPTS to help maven allocate sufficient memory e.g. export MAVEN_OPTS=-Xmx512M
  6. Build the samples using mvn -Dmaven.test.skip=true install
  7. After the build process completes each sample directory under samples will have a directory called target where you'll find a war file
  8. Create directory /usr/local/share/resin/webapps/calendar-sample
  9. Copy calendar-sample.war file from ./samples/calendar-sample/target to /usr/local/share/resin/webapps/calendar-sample
  10. Extract the archive using jar -xf calendar-sample.jar and delete calendar-sample.jar file
  11. From the WEB-INF/lib directory delete the following files: jsf-api-1.2*.jar jsf-api-1.2*.jar jstl-1.0.jar
  12. Change into WEB-INF directory and create resin-web.xml file with the following content
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://caucho.com/ns/resin">
    
      <jsp fast-jsf="false"/>
    
      <allow-servlet-el>false</allow-servlet-el>
    
      <context-param>
        <param-name>org.richfaces.SKIN</param-name>
        <param-value>#{skinBean.skin}</param-value>
      </context-param>
    
    </web-app>
    
  13. cd into /usr/local/share/resin/bin directory and start Resin with ./httpd.sh
  14. Browse to http://localhost:8080/calendar-sample/index.jsf

Known Issues

Personal tools