No WLP Ant task can be found error when starting the sample server

You must provide a valid installation for the WebSphere® Liberty application server to run the sample server.

Symptoms

When you start the sample server, the task fails with the following messages:

[samples.echo] SEVERE: GBRPS0039E: No WLP ant task can be found in [BadLibertyPath]/dev/tools/ant/wlp-anttasks.jar. Check the wlp.home set in [ODMInstall]/shared/samplesServer/wlp/build.properties is correct.

BUILD FAILED

Resolving the problem

Check the path that you gave to your Liberty application server during installation:

  1. Open the file build.properties in <InstallDir>/shared/samplesServer/wlp/.
  2. Check the path in the property wlp.home. Change the path if it does not match the path to your Liberty server, for example, wlp.home=C:/Liberty_App_Server/wlp-javaee/wlp.
  3. Restart the sample server.