...
Now that all the elements have been identified, it is necessary to package the sample application in a Web application Archive (.war). Open a command line window, change directory to <ldap_home> and run the following command:
{{jar -cvf ldap-demo.war *
}}
This command will package all the existing files and directories inside <ldap_home>. Although not needed inside the .war file, ldap-realm.xml and ldap-sample.ldif files will also be included.
...