How to have Liberty Profile eagerly load apps on startup

websphere-liberty

Solution

You can configure the WebContainer to fully initialize the application prior to the first request by adding the following to your server.xml:

<webContainer deferServletLoad="false"/>

Problem

Liberty Profile is loading EARs and WARs we deploy to it only when the server receives it's first request. How can we tell it to eagerly load applications upon server start? We're using the latest 8.5.5 WLP. Thanks, Stu

Original source