As an alternative to the Jespa Start executable jar, there is also a webapp war file version of Jespa Start located in the jespa-start-webapp directory of the standard Jespa package. The Jespa Start webapp is meant to be a good example of how to integrate Jespa into a Jakarta application.
Specifically, consider the file:
jespa-start-webapp/src/main/webapp/WEB-INF/web.xml
and how it uses jespa.servlet.SsoOrLoginSecurityFilter and jespa.servlet.LoginServlet as generic components.
Before we do anything else, we need an HttpSecurityService (HSS) properties file.
With the application server running with HTTPS, run HssSetup like:
$ cd jespa-2.1.1 $ bin/HssSetup.sh jespa1.prp -- HttpSecurityService Setup / Jespa 2.1.1 ...
See steps 1 and 2 from Install the HttpSecurityService for Windows Silent SSO with SPNEGO for details about generating an HSS properties file.
Copy the HSS properties file to the specific name jespa.prp in the context root of your application server (like $CATALINA_BASE or $JETTY_BASE).
To build the war file, you must first install the Jespa jar file (the jakarta version) into your local Maven repo with a command like:
$ cd jespa-2.1.1 $ mvn install:install-file -Dfile=jespa-jakarta-2.1.1.jar -DgroupId=com.ioplex -DartifactId=jespa-jakarta -Dversion=2.1.1 -Dpackaging=jar
Now you can build the war file like:
$ cd jespa-start-webapp $ mvn clean package
Deploy the target/jespa-start-webapp.war into your application server (such as by copying it to webapps/ROOT.war).
If necessary, create a logs directory in the application server context root (like $JETTY_BASE/logs) for the Jespa log file.
At this point, the Jespa Start webapp should be ready for clients. However, before trying to visit the site, you will probably need to adjust browser client settings and open a firewall port as described in Browser Settings and Adding a Firewall Rule.
Now visit the jespa-start resource. The URL might be like https://rkyas15.mega.corp:8443/jespa-start but substitute your host, port and context path.
Review logs/jespa.log for issues.
See also: Run the Jespa Start Executable Jar
To un-install the Jespa jar from your local Maven repo, use the following command:
$ mvn dependency:purge-local-repository -DmanualInclude="com.ioplex:jespa-jakarta"