Deploy Web Applications to Embedded Jetty Server - nordpos/nordpos GitHub Wiki
- Run NORD POS configuration and enable stat-up web application server.
$ ./configure.sh
- After restart NORD POS you can open ROOT Java servlet in web browser by URL
http://localhost:8135/
.
- Also, if you need more information about web application environments, click on Info button or open
http://localhost:8135/Welcome.action?info
.
-
Open
webapps
sub-folder in application folder. -
Create new folder
product-catalog
orrestaurant-service
inwebapps
. -
download war package of Java servlet: Product catalog or Restaurant service.
-
Extract content of war package to
product-catalog
orrestaurant-service
for deploy; -
Open
./WEB-INF/lib
in web application folders and remove filederbyclient-10.11.1.1.jar
. This is duplicate library of Derby Client. -
Start NORD POS application.
-
Open
http://localhost:8135/product-catalog
orhttp://localhost:8135/restaurant-service
for check deployed web applications.
If you need change database connection parameters:
- Open in text editor
./WEB-INF/web.xml
and set<context-param>
tags.
If you want add link into ROOT web page:
- Open
./ROOT/WEB-INF/jsp/present.jsp
and add link into content layout:
<stripes:layout-component name="content">
<div class="ui-body">
<a href="http://www.nordpos.mobi">
<img src="<c:url value='/image/logo.png' />" alt="NORD POS mobi"/>
</a>
<p><fmt:message key="label.present" /></p>
<a href="./product-catalog"
class="ui-btn ui-shadow ui-corner-all"
role="button">Product Catalog</a>
<a href="./restaurant-service"
class="ui-btn ui-shadow ui-corner-all"
role="button">Restaurant Service</a>
</div>
</stripes:layout-component>
- Restart NORD POS and refresh pages.
READY