For the installation of the CrontoSign Libraries J2EE sample application for Java, deploy the CrontoSignSample.war file.
To deploy CrontoSignSample.war
Open your web browser and go to http://localhost:8080/.
Click the link to the Tomcat Web Application Manager and log in as administrator.
Select Deploy > WAR file to deploy.
Select CrontoSignSample.war and click Deploy.
Copy the Authentication Suite Java wrapper (aal2wrap.jar) to the WEB-INF\lib folder of the J2EE application.
The JSP application is now deployed and ready for configuration. It is accessible at http://localhost:8080/CrontoSignSample.
URLs are case sensitive on most application servers. On Apache Tomcat, for example, you will not be able to access the J2EE application if you use http://-localhost:8080/crontosignsample.
To configure the database
Stop the Apache Tomcat application server.
In TOMCAT_HOME/webapps/CrontoSignSample/WEB-INF/conf/config.properties, define the
database.fullpathproperty.This property defines the database name and path that the sample will use. The database is an SQLite database and will be created in the defined path. The default name of the sample database is crontosignSample.db.
Make sure you have read and write permissions to ensure the database is created properly and in the required location.
To clear the database
Stop the Apache Tomcat application server.
Navigate to the location of the database file as defined with the
database.fullpathproperty (see the application configuration above).Delete the database file.
Restart the application server.