Check Out Source Code
* Trinidad SVN repo is at: http://svn.apache.org/repos/asf/myfaces/trinidad
* Check out Trinidad-demo source code from http://svn.apache.org/repos/asf/myfaces/trinidad/tags/trinidad-2.0.1/trinidad-examples/trinidad-demo to a local directory, e.g. C:\jml\work\trinidad201-demo
Setup Eclipse Project for Trinidad 2.0.1 Demo
* Go to check out directory and issue following Maven command. Note that Maven 3 is required.
C:\prog\apache-maven-3.0.4\bin\mvn -Dwtpversion=2.0 eclipse:clean eclipse:eclipse
* Start Eclipse, got to File > Import… > Existing Projects into Workspace
* Browse to checkout directory, e.g. C:\jml\work\trinidad201-demo
* Make sure to uncheck Add project to working sets
* Click Finish button. The project is imported as trinidad-demo by default.
* Add a standard log4j.properties file to src/main/resources so you can see log.
* Add to Deployment Assembly from Build Path:
– myfaces-api-2.0.7.jar
– myfaces-impl-2.0.7.jar
– commons-digester-1.8.jar
– commons-collections-3.2.jar
– commons-logging-1.1.1.jar
– commons-beantuils-1.8.3.jar
– commons-codec-1.3.jar
– jstl1.2.jar
* Deploy to Tomcat 7 (Tomcat 6 not working for me)
* Access demo page (index.jsp page does not work for me):
http://localhost:8080/trinidad-demo/faces/index.jspx