From Resin 3.0

Revision as of 20:40, 25 April 2008 by Alex (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Step by Step (Deploying Visual JSF Application)

[Tested with Resin 3.1.6]

Deploying Corporate Travel Center Application

  1. Download Resin from
  2. Unzip Resin into /usr/local/share/resin
  3. Change into /usr/local/share/resin/webapps directory and create directory TravelCenter
  4. Start Netbeans IDE6.0.1 and go to the File menu and choose New Project
  5. In the New Project dialog open Samples -> Web -> Visual JSF and choose Corporate Travel Center, click Next
  6. Optionally, change project's name. It will be referred to as TravelCenter in the steps below
  7. 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)
  8. 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
  9. A successfully deployed application will have the following structure under the webapps folder of Resin
                     -> TravelCenter
  10. change into WEB-INF directory and create resin-web.xml file with the following content
    <?xml version="1.0" encoding="UTF-8"?>
      <jsp validate-taglib-schema="false" fast-jsf="false"/>
  11. The application uses database, so in the next two steps we will start Derby database provided with NetBeans IDE and configure resin connection pool
  12. In NetBeans IDE open Tools menu and start the database via following path Java DB Database -> Start Server
  13. Locate derbyclient.jar and copy it into /usr/local/share/resin/lib directory. The derbyclient.jar can be downloaded as part of Derby Database package version at
  14. Insert the following snippet into resin.conf, which is located at /usr/local/share/resin/conf
         <driver type="org.apache.derby.jdbc.ClientDriver">

  15. cd into /usr/local/share/resin/bin directory and start Resin with ./
  16. Browse to http://localhost:8080/TravelCenter/faces/Page1.jsp

Known Issues

Personal tools