This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
developers:examples:java:web-platform-hello-world [2016/10/26 08:12] 127.0.0.1 external edit |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Java SDK Web Platform Hello World Application ====== | ||
| - | |||
| - | See all [[developers: | ||
| - | |||
| - | The Java SDK package also includes a "Hello World" application based on Web Platform, an example of the authentication process in its simplest form including QR code integration. It is a standard Java web application that can be placed in any web container supporting servlet 3.0. The Tomcat web container will be used here. The application is provided including source files. | ||
| - | |||
| - | ==== Preconditions ==== | ||
| - | |||
| - | If full application functionality is expected, the following needs to be arranged: | ||
| - | |||
| - | * PEIG must be running (ADUCID< | ||
| - | * Valid identity must exist in ADUCID< | ||
| - | |||
| - | ==== Installation ==== | ||
| - | |||
| - | Steps to install the application as a part of Tomcat: | ||
| - | |||
| - | - **Install Tomcat adapter** | ||
| - | - Rename the supplied web application “Hello World” from api-web-webapp-[version].war to api-web-webapp.war. | ||
| - | - Load the api-web-webapp.war web archive to Tomcat (to the $TOMCAT_HOME/ | ||
| - | - Run Tomcat so that the installed sample web application unpacks to the subdirectory api-webapp in $TOMCAT_HOME/ | ||
| - | - Stop Tomcat. | ||
| - | - Set the " | ||
| - | - Run Tomcat. | ||
| - | |||
| - | After the installation, | ||
| - | |||
| - | [[http:// | ||
| - | |||
| - | Example of address: | ||
| - | |||
| - | [[http:// | ||
| - | |||
| - | If you install the sample application in Linux/Unix OS, stop the iptables service or modify its configuration. | ||
| - | |||
| - | Then the following pages will be available: | ||
| - | |||
| - | * /index.jsp, access also via / – freely accessible page, contains links to start ADUCID< | ||
| - | * / | ||
| - | * /error.jsp – the page to which the Web Platform reroutes the result of authentication; | ||
| - | |||
| - | <font 11.0pt/ | ||
| - | |||
| - | == index.jsp page == | ||
| - | |||
| - | {{: | ||
| - | |||
| - | == loggedIn.jsp page == | ||
| - | |||
| - | {{: | ||
| - | |||
| - | == error.jsp page == | ||
| - | |||
| - | {{: | ||
| - | |||