My Shitty Code

Embracing the Messiness in Search of Epic Solutions

Tag: Jetty

  • Maven + Jetty: Enabling SSL on Jetty Maven Plugin

    PROBLEM In order to run our web application using HTTPS, we need to enable SSL first on Jetty. SOLUTION #1: Generating Certificate on the Fly One clean solution by @PascalThivent is to recreate the certificate whenever Jetty starts. Not to steal any credits from him, but here’s a slightly modified configuration using more recent plugin […]

  • Managing Log4j Configuration for Both Development and Production Environments

    PROBLEM Most of the time, we set the Log4j’s log levels to something lower (debug or info) during our local development. Once it is ready for production, we normally set the Log4j’s log levels to something higher (warn or even error) to prevent meaningless information from flooding the server log. One way to do this […]