The DefaultServletEngine sample contains a server definition which supports servlets using default configuration settings for the HTTP transport and webcontainer. It also contains a very simple web application, ServletApp.war, which contains a single Servlet, SimpleServlet. This servlet prints the following message in your browser window: "Simple Servlet ran successfully".
This sample can be installed onto runtime versions 8.5.0.0 and later.
To run the ServletApp application:
java -jar ServletSample.jar
bin
directory in the Liberty profile installation:
server run ServletSample
CWWKZ0001I: Application ServletApp started in XX.XX seconds.
Simple Servlet ran successfully
The ServletApp.war
file contains the source and binaries for the application, and can be
used to import it to Eclipse.
The application is automatically installed because it is located in the server dropins directory. Any number of applications can be installed from this location.
For further information and resources for developers using IBM WebSphere Application Server, please visit wasdev.net.