Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.mvn/wrapper
src
.gitignore
README.md
mvnw
mvnw.cmd
pom.xml

README.md

Codebase for the blog post #HOWTO: Deploy a Spring Boot Uber-Jar application within Open Liberty

Steps to run this project:

  1. Clone this Git repository
  2. Navigate to the folder spring-boot-with-open-liberty
  3. Build the project with mvn clean package
  4. Download the latest Open Liberty (at least 18.0.0.2) from https://openliberty.io/downloads/ and extract the zip
  5. Navigate to the wlp folder you extracted and run bin/server start defaultServer or bin/server.bat start defaultServer for Windows
  6. Open the server.xml file in wlp/usr/server/defaultServer and replace the content with the following configuration:
<?xml version="1.0" encoding="UTF-8"?>
<server description="new server">
    <featureManager>
        <feature>springBoot-2.0</feature>
        <feature>servlet-4.0</feature>
        <feature>websocket-1.1</feature>
    </featureManager>
    <httpEndpoint id="defaultHttpEndpoint"
                  httpPort="9080"
                  httpsPort="9443" />
    <applicationManager autoExpand="true"/>
    <springBootApplication location="spring-boot-with-open-liberty.jar"/>
</server>
  1. Copy the already built (step 3.) spring-boot-with-open-liberty.jar to wlp/usr/server/defaultServer/apps
  2. Visit http://localhost:9080 for chatting and http://localhost:9080/api/messages to get all chat messages