Visual-JSF

From Resin 3.0

Revision as of 03:06, 26 April 2008 by Alex (Talk | contribs)
Jump to: navigation, search

Step by Step (Deploying Visual JSF Demo Application)

[Tested with Resin 3.1.6 and ... ]

Travel Center Vehicle Incident Report Application

Step By Step: Deploying Visual JSF Application

Tested with the following, supplied with with NetBeans IDE 6.0.1, samples:

  1. Corporate Travel Center
  2. Movie Administration
  3. Vehicle Incident Report Application

Deploying Corporate Travel Center Application

  1. Download Resin from http://caucho.com/download
  2. Unzip Resin into /usr/local/share/resin
  3. Change into /usr/local/share/resin/webapps directory and create directory TravelCenter
  4. If you already have a deployable Corporate Travel Center Application you can skip to deploying the app
  5. Start Netbeans IDE6.0.1 and go to the File menu and choose New Project
  6. In the New Project dialog open Samples -> Web -> Visual JSF and choose Corporate Travel Center, click Next
  7. Optionally, change project's name. It will be referred to as TravelCenter in the steps below
  8. Select the project in NetBeans Projects Navigator pane (left pane of the IDE) and choose "Clean and Build" from contextual drop down menu (mouse - right button on windows)
  9. Deploy the exploded application via copying contents of web folder that was created by the Build process. The folder is located in build folder of the TravelCenter home directory
  10. A successfully deployed application will have the following structure under the webapps folder of Resin
    <code>
    webapps
                     -> TravelCenter
                                                    ->META-INF
                                                    ->resources
                                                    ->WEB-INF
                                                    ->Details.jsp
                                                    ->..
                                                    ->readme.html
    </code>
    
  11. Download Resin from http://caucho.com/download
  12. Unzip Resin into /usr/local/share/resin
  13. create resin-web.xml file with the following content
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app>
      <jsp validate-taglib-schema="false" fast-jsf="false"/>
    </web-app>
    
  14. Browse to http://localhost:8080/trinidad-blank </l>
Personal tools