To test on a Java web server, you can install an Apache Tomcat.
Prerequisites
The recommended versions of Tomcat are 7.0 or higher.
Procedure
-
Download Tomcat from the respective web site. You can either install the Windows Service
Installer, or download and unzip the zip file (you can find the startup script
in the bin folder).
-
To deploy your application, choose one of the following options:
- Without Eclipse
To deploy SAPUI5 on Tomcat without Eclipse, you can set up a
Tomcat user with manager privileges (see the Tomcat documentation) and
use the tomcat manager application for deployment. We recommend,
however, to just move your war file into the webapps
folder inside the tomcat directory. Tomcat takes care of the deployment,
but a restart may be necessary.
If you run Tomcat without Eclipse,
set the environment variable JAVA_HOME to
JDK7
- In Eclipse
To run web applications in Eclipse, you need to register the Tomcat
web server.
- Open the Java EE perspective in Eclipse.
- Open the Servers view, for example by pressing
CTRL
+ 3
and then entering Servers.
- To open the New Server wizard, choose from the context menu.
- Choose and add a new server runtime by pointing to the
folder in which you have unzipped the Tomcat installation files.
Finish the wizard. You should now see Tomcat v7.0 server in the
Servers view.
- Open the configuration overview by double clicking the Tomcat v7.0 server in the
Servers view. Select the Serve
modules without publishing server option.