Lift v2.0 Integration

This sample demonstrates Lift framework integration through a simple phonebook Web application deployed to Liberty.

This sample can be installed onto runtime versions and later.

Installation Instructions

Online installation (requires or later):

  1. Install the sample by running the command below from the bin directory of your server installation:
    installUtility install LiftSample

Any missing features required by the server will be installed for you.

Offline installation:

  1. Download the LiftSample.jar using the download button at the top of the page and place it in the root of your server installation.
  2. Extract the sample into the Liberty installation by running the command below from the root of your server installation:
    java -jar LiftSample.jar

Any missing features required by the server will need to be installed separately.

Running The Application

  1. Start the LiftSample server by running the command 'bin/server run LiftSample' from the root of the Liberty profile installation, and confirm the application started by looking in the console output":
    CWWKZ0001I: Application PhoneBookByLift started in XX.XX seconds.
  2. In your browser, enter the URL for the application: http://localhost:9105/PhoneBookByLift (where port 9105 assumes the httpEndpoint provided in the sample server.xml has not been modified).
  3. In your browser, you should see a phone book shown up.


This sample does not include the open source dependencies. The installer will provide a list of the open source pre-requisite libraries and where they can be downloaded from. To help obtaining these libraries, the installer provides the option to download them on your behalf.

Sample Structure

  • wlp
    • usr
      • servers
        • LiftSample
          • Copyright.txt
          • apps
            • LiftApp
              • WEB-INF
                • classes
                  • bootstrap
                    • liftweb
                      • Boot$$anonfun$1.class
                      • Boot$$anonfun$boot$1.class
                      • Boot.class
                  • com
                    • ibm
                      • ws
                        • samples
                          • phonebook
                            • snippet
                              • PhoneBook$$anonfun$showAll$1.class
                              • PhoneBook.class
                • lib
                  • lift-actor-2.0.jar
                  • lift-common-2.0.jar
                  • lift-json-2.0.jar
                  • lift-mapper-2.0.jar
                  • lift-testkit-2.0.jar
                  • lift-util-2.0.jar
                  • lift-webkit-2.0.jar
                • web.xml
              • index.html
              • templates-hidden
                • default.html
          • lafiles
            • LA_en
            • LI_en
          • readme.html
          • server.xml
      • shared
        • config
          • LiftSampleLibs.xml
        • resources
          • LiftSampleLibs
            • commons-codec-1.3.jar
            • commons-fileupload-1.2.1.jar
            • commons-httpclient-3.1.jar
            • commons-logging-1.0.4.jar
            • derby-
            • h2-1.2.134.jar
            • joda-time-1.6.jar
            • log4j-1.2.14.jar
            • paranamer-2.0.jar
            • scala-library-2.7.7.jar
            • slf4j-api-1.5.11.jar
            • slf4j-log4j12-1.5.11.jar