▪️ MySQL Server version 8.0 or later 1 installed and running
Download MySQL Server.
Read/download MySQL Installation Guide.
▪️ A database the application communicates with
To import required database into MySQL server run the web\WEB-INF\ext_libraries\sql\eshoptest.sql
SQL script.
Learn how to import data/database in MySQL via mysqlimport client or via MySQL Workbench.
▪️ JDBC driver for MySQL (MySQL Connector/J) 1
Download the connector from here or from here.
Place downloaded library in /web/WEB-INF/ext_libraries
project folder.
Learn how to add MySQL connector jar file to the current project using NetBeans.
▪️ GlassFish Java application server - Full Platform edition
Recommended versions: 4.1.1; 5.0.1;
Download GlassFish server from here.
GlassFish Server Quick Start Guide.
▪️ PrimeFaces for JavaServerFaces (JSF)
PrimeFaces is a popular open source framework for JavaServerFaces featuring over 100 components.
Download PrimeFaces 5.0 from here or from here.
Download aggregate PrimeFaces themes jar file (all-themes-1.0.10.jar) from here or from here.
Place downloaded libraries in /web/WEB-INF/ext_libraries
project folder.
1 During the application creation MySQL Community Server version 8.0.18 and MySQL Connector/J version 8.0.19 were used.
▪️ Build the project.
▪️ Deploy the war
artifact to a running server and enable the application.
▪️ Access the E-Shop by entering http://localhost:8080/EShopDemo/
in your web browser.
▪️ Get access to administration section via login page by providing admin
as username and password.