© 2023 iamfortress.net
- This document demonstrates how to obtain, build and deploy the Apache Fortress Wicket Sample application.
- To complete this tutorial, first follow the steps in this README.
- Followed by the steps here: README-ENABLE-FORTRESS.md
- Java >= 17
- Apache Maven >= 3
- Apache Tomcat >= 10
- Stage the project source:
a. Download and extract from Github:
wget https://github.com/shawnmckinney/wicket-sample/archive/master.zip
-- Or --
b. Or git clone
locally:
git clone https://github.com/shawnmckinney/wicket-sample.git
-
cd wicket-sample
-
Set java and maven home env variables.
-
Prepare tomcat to allow autodeploy of wicketsample web app:
sudo vi /usr/local/tomcat8/conf/tomcat-users.xml
- Add tomcat user to deploy wicketsample:
<role rolename="manager-script"/>
<user username="tcmanager" password="m@nager123" roles="manager-script"/>
-
Save and exit tomcat-users.xml file and restart tomcat.
-
Run this command from the root package:
mvn clean tomcat:deploy
Note: if problem with auto-deploy, manually deploy wicket-sample.war to webapps
- Open link to http://localhost:8080/wicket-sample
-
click on the page links
-
click on the buttons
-
Notice that there is no security enabled for this app
Follow the instructions here: README-ENABLE-FORTRESS.md