HTTPS in Tomcat
and require https connection for obvious reasons, so you need to make sure that your tomcat instance is https enabled.
There is an in-depth article for configuring this on Tomcat 7but if you just want a quick and dirty self signed certificate what you need to do is:
1. Generate a self signed certificate using java key tool
Use command line to generate a certificate:
Follow the steps in key tool and put relevant information in.
2. Tell tomcat connector to use generated certificate
Navigate to server.xml that is located in $CATALINA_HOME/conf/ and change the following connector settings:
if you are running tomcat behind Apache HTTP or use native tomcat libraries the above approach will not
work as you need to configure SSL on the AJP Connector. Please consult relevant Tomcat version documentation for this.
Upload file size
Sometimes import files that you will use inwill cause tomcat to crash. In most cases this is due to the file size limit.
To increase the allowed upload file size you need to set it on all applicable connectors in server.xml.
The server.xml is located in $CATALINA_HOME/conf/.
You need to locate each Connector tag required and set the maxPostSize size to a value you require. By default this value is set to 2MB.
For example to increase size to 100MB the connector configuration must look something like this:
By default Logback starts working when web apps are loaded with context of those web apps. Therefore some logging messages might be missed out.
In order to address this Logback has tutorial on configurations for