{"id":4507,"date":"2012-03-23T10:40:57","date_gmt":"2012-03-23T15:40:57","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=4507"},"modified":"2013-02-05T10:57:46","modified_gmt":"2013-02-05T15:57:46","slug":"apache-trinidad-svn-access","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=4507","title":{"rendered":"Setup Apache Trinidad 2 Demo Application"},"content":{"rendered":"<div class='toc wptoc'>\n<h2>Contents<\/h2>\n<ol class='toc-odd level-1'>\n\t<li>\n\t\t<a href=\"#Check_Out_Source_Code\">Check Out Source Code<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Setup_Eclipse_Project_for_Trinidad_2.0.1_Demo\">Setup Eclipse Project for Trinidad 2.0.1 Demo<\/a>\n\t<\/li>\n<\/ol>\n<\/ol>\n<\/ol>\n<\/div>\n<div class='wptoc-end'>&nbsp;<\/div>\n<span id=\"Check_Out_Source_Code\"><h3>Check Out Source Code<\/h3><\/span>\n<p>* Trinidad SVN repo is at: <a href=\"http:\/\/svn.apache.org\/repos\/asf\/myfaces\/trinidad\">http:\/\/svn.apache.org\/repos\/asf\/myfaces\/trinidad<\/a><br \/>\n* Check out Trinidad-demo source code from <em>http:\/\/svn.apache.org\/repos\/asf\/myfaces\/trinidad\/tags\/trinidad-2.0.1\/trinidad-examples\/trinidad-demo<\/em> to a local directory, e.g. <em>C:\\jml\\work\\trinidad201-demo<\/em><\/p>\n<span id=\"Setup_Eclipse_Project_for_Trinidad_2.0.1_Demo\"><h3>Setup Eclipse Project for Trinidad 2.0.1 Demo<\/h3><\/span>\n<p>* Go to check out directory and issue following Maven command. Note that <strong>Maven 3<\/strong> is required.<\/p>\n<pre lang=\"bash\">\r\nC:\\prog\\apache-maven-3.0.4\\bin\\mvn -Dwtpversion=2.0 eclipse:clean eclipse:eclipse\r\n<\/pre>\n<p>* Start Eclipse, got to <em>File > Import&#8230; > Existing Projects into Workspace<\/em><br \/>\n* Browse to checkout directory, e.g. <em>C:\\jml\\work\\trinidad201-demo<\/em><br \/>\n* Make sure to <strong>uncheck<\/strong> <em>Add project to working sets<\/em><br \/>\n* Click <em>Finish<\/em> button. The project is imported as <em>trinidad-demo<\/em> by default.<br \/>\n* Add a standard <em>log4j.properties<\/em> file to <em>src\/main\/resources<\/em> so you can see log.<br \/>\n* Add to Deployment Assembly from Build Path:<br \/>\n&#8211; myfaces-api-2.0.7.jar<br \/>\n&#8211; myfaces-impl-2.0.7.jar<br \/>\n&#8211; commons-digester-1.8.jar<br \/>\n&#8211; commons-collections-3.2.jar<br \/>\n&#8211; commons-logging-1.1.1.jar<br \/>\n&#8211; commons-beantuils-1.8.3.jar<br \/>\n&#8211; commons-codec-1.3.jar<br \/>\n&#8211; jstl1.2.jar<\/p>\n<span id=\"\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/03\/trinidad201_import_demo_deployment_assembly.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/03\/trinidad201_import_demo_deployment_assembly-300x184.jpg\" alt=\"\" title=\"trinidad201_import_demo_deployment_assembly\" width=\"300\" height=\"184\" class=\"aligncenter size-medium wp-image-4515\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/03\/trinidad201_import_demo_deployment_assembly-300x184.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/03\/trinidad201_import_demo_deployment_assembly.jpg 864w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/h6><\/span>\n<p>* Deploy to Tomcat 7 (Tomcat 6 not working for me)<br \/>\n* Access demo page (index.jsp page does not work for me):<br \/>\n<a href=\"http:\/\/localhost:8080\/trinidad-demo\/faces\/index.jspx\">http:\/\/localhost:8080\/trinidad-demo\/faces\/index.jspx<\/a><\/p>\n<span id=\"_1\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/03\/trinidad201_import_demo_startpage.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/03\/trinidad201_import_demo_startpage.jpg\" alt=\"\" title=\"trinidad201_import_demo_startpage\" width=\"385\" height=\"318\" class=\"aligncenter size-full wp-image-4517\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/03\/trinidad201_import_demo_startpage.jpg 385w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/03\/trinidad201_import_demo_startpage-300x247.jpg 300w\" sizes=\"auto, (max-width: 385px) 100vw, 385px\" \/><\/a><\/h6><\/span>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=4507\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[131],"tags":[606],"class_list":["post-4507","post","type-post","status-publish","format-standard","hentry","category-trinidad","tag-trinidad"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-1aH","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/4507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4507"}],"version-history":[{"count":10,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/4507\/revisions"}],"predecessor-version":[{"id":4509,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/4507\/revisions\/4509"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}