diff --git a/README.md b/README.md index 9949aa0..6523783 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,4 @@ Patterns for enabling JSON Logging on the Tomcat distribution of Camunda BPM Pla | Version | Description | | ------- | ----------- | -| [7.9.0](./tomcat/7.9.0/docker) | Docker base image for pulling into other projects or use as a `docker run` command. Modifies Tomcat logging for usage with Logback, SLFJ4, and JSON logging using logstash-logback-encoder. +| [7.9.0](./tomcat/7.9.0/docker), [7.10.0](./tomcat/7.10.0/docker) | Docker base image for pulling into other projects or use as a `docker run` command. Modifies Tomcat logging for usage with Logback, SLFJ4, and JSON logging using logstash-logback-encoder. diff --git a/tomcat/7.10/docker/Dockerfile b/tomcat/7.10/docker/Dockerfile new file mode 100644 index 0000000..fde75e0 --- /dev/null +++ b/tomcat/7.10/docker/Dockerfile @@ -0,0 +1,22 @@ +# Pull upstream CamundaBPM Tomcat image +FROM camunda/camunda-bpm-platform:tomcat-7.10.0 + +ENV PRETTY_JSON_LOG=false + +# Remove the slf4j-jdj14 bridge library that is packaged with CamundaBPM tomcat distribution +RUN rm -rf /camunda/lib/slf4j-jdk14-1.7.7.jar + +# Add logback configuration +RUN mkdir /camunda/conf/logback +COPY docker/camunda/conf/logback/logback.xml /camunda/conf/logback/logback.xml + +# Overwrite global logging configuration for tomcat +COPY docker/camunda/conf/logging.properties /camunda/conf/logging.properties + +# Copy Jar for logging +COPY docker/camunda/lib/ /camunda/lib/ + +# Overwrite setenv.sh with additional CLASSPATH config that exposes the libraries at tomcat startup +COPY docker/camunda/bin/setenv.sh /camunda/bin/setenv.sh + + diff --git a/tomcat/7.10/docker/README.md b/tomcat/7.10/docker/README.md new file mode 100644 index 0000000..58b406a --- /dev/null +++ b/tomcat/7.10/docker/README.md @@ -0,0 +1,262 @@ +# Camunda BPM Tomcat 7.10.0 JSON Logging: Docker Image Pattern + +A image which pulls Camunda 7.10.0-Tomcat and extends the image with proper configuration for Logging in a JSON format. + +# JSON Logging + +JSON logging is provided using the logstash-logback-encoded-5.2.jar and the relevant dependencies for SLF4j-api, logback, jul-to-slf4j, and jackson (for JSON processing). + +Logback and slf4j-api dependencies were based on the [parent pom.xml](https://github.com/camunda/camunda-bpm-platform/blob/7.10.0/parent/pom.xml#L24-L25) from the camunda-bpm-platform repository for 7.10.0 tag. + +# Performance + +Note that in order to send the Tomcat/catalina logs into the JSON encoders, the `SLF4JBridgeHandler` (jul-to-slf4j-1.7.7.jar) is used within the global logging.properties file. See the handlers [documentation for notes about performance](https://www.slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html). In order to mitigate the performance issues outlined in the Handler's documentation, the `LevelChangePropagator` is added into the logback configuration. See the [logback documentation](https://logback.qos.ch/manual/configuration.html#LevelChangePropagator) for further notes about LevelChangePropagator's usage. + +:exclamation: It is very important for Camunda Tomcat distribution logging that the LevelChangePropagator is used as described above! It is already provided in the logback configuration file located in the docker/camunda/conf/logback folder. If you make changes to this file, make sure to keep the LevelChangePropagator settings. :exclamation: + + +# How it works + +The pattern is simple: + +1. Pull the Camunda BPM Platform 7.10.0 Tomcat image from DockerHub +2. Extend the image with relevant JSON logging configurations and Jars +3. Return a finalized image that is "the same" as the source image from Camunda's dockerhub, but with the added configuration and jars. + +This image is posted on Dockerhub under + +https://hub.docker.com/r/digitalstate/camunda-bpm-platform/ + +## JSON Logging Dependencies + +A centralized package has been generated using maven in the `../json-logging-dependency-package` folder. This package provides a single jar with all of the required jars needed for JSON logging using logback. + +## Pull Image + +Command Line: + +`docker pull digitalstate/camunda-bpm-platform:tomcat-7.10.0-json-logging` + +Within another dockerfile: + +```dockerfile +FROM digitalstate/camunda-bpm-platform:tomcat-7.10.0-json-logging +... +``` + +## Running Image: + +Command Line: + +`docker run --name camunda -p 8080:8080 digitalstate/camunda-bpm-platform:tomcat-7.10.0-json-logging` + +or use a dockerfile similar to the ./docker-compose.yml, but swap `build:` with `image: digitalstate/camunda-bpm-platform:tomcat-7.10.0-json-logging` + +### Pretty-Print ENV Variable. + +In the default logback.xml configuration, there has been a conditional statement added to support easy to use logging in Pretty-Print formatting. This is typically used for development purposes: + +`PRETTY_JSON_LOG=true` will enable the pretty-print. By default, the env value is set to false. + +Example: + +`docker run --name camunda -p 8080:8080 -e PRETTY_JSON_LOG=true digitalstate/camunda-bpm-platform:tomcat-7.10.0-json-logging` + + +# Building a new image + +`docker build -t digitalstate/camunda-bpm-platform:tomcat-7.10.0-json-logging .` + + +# docker-compose file usage + +The docker-compose file can be used for quick testing locally. Generally the docker-compose file will not be used. The Dockerfile will be used to generate the image which will then be pulled from your own Dockerfile/Docker-Compose/Kubernetes. + + +# Custom logback.xml usage + +In order to provide a custom logback.xml file, it is suggested that you use Docker Volumes; where the volume points to `/camunda/conf/logback` folder. Within this folder you will provide the `logback.xml` file with your configuration. See the docker/docker/conf/logback.logback.xml file for a working example/the default logback.xml file that is used. + +A 30 second refresh has been configured on the logback.xml file. If the file is changed through a volume, you can make updates to the logging configuration without having to restart the Camunda docker container. +See the logback.xml file for further details. + +## Pretty-Print JSON + +By default pretty-print of the JSON is disabled. This is to ensure maximum compatibility for production use of the base image. + +In order to enable pretty-print of JSON (should only be used for debug/development purposes, due to performance impacts): in the camunda/conf/logback/logback.xml file, within the `json` ``, un-comment the line: +```xml + +``` + +The `PrettyPrintingJsonGeneratorDecorator` will then process the json into a pretty-print format within the console. + +A Env variable has been added into the image (`PRETTY_JSON_LOG=false`) which can be set to true to enable Pretty-Print Json Logging. This configuration is found through the logback.xml. See the [Running Image](#running-image) section of this document for further information. + +## Timestamp Customization: Timezone + +See the logstash-logback-encoded [Timezone documentation](https://github.com/logstash/logstash-logback-encoder/tree/logstash-logback-encoder-5.2#customizing-timestamp) for details on how to customize the logback configuration for timezone conversions. + +# Customize JSON format and content + +The pattern uses the [Logstash-Logback-Encoder library v5.2](https://github.com/logstash/logstash-logback-encoder/tree/logstash-logback-encoder-5.2). See the Readme of the library for further configuration options. + + +# Docker Logs + +Logs are being sent into the docker console. It will still be up to your deployment to configure docker logging to be in a JSON format. + + +# Sample JSON Output + +```shell +$ docker run --name camunda -p 8080:8080 digitalstate/camunda-bpm-platform:tomcat-7.10.0-json-logging + +Configure database +OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 +OpenJDK 64-Bit Server VM warning: ignoring option PermSize=256m; support was removed in 8.0 +16:57:07,194 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] +16:57:07,194 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] +16:57:07,195 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/camunda/conf/logback/logback.xml] +16:57:07,284 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set +16:57:07,299 |-INFO in ch.qos.logback.classic.joran.action.LoggerContextListenerAction - Adding LoggerContextListener of type [ch.qos.logback.classic.jul.LevelChangePropagator] to the object stack +16:57:07,377 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@770c2e6b - Propagating DEBUG level on Logger[ROOT] onto the JUL framework +16:57:07,378 |-INFO in ch.qos.logback.classic.joran.action.LoggerContextListenerAction - Starting LoggerContextListener +16:57:07,378 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] +16:57:07,384 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT] +16:57:07,409 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property +16:57:07,555 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] +16:57:07,555 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [json] +16:57:08,007 |-WARN in net.logstash.logback.encoder.LogstashEncoder@1a052a00 - Logback version is prior to 1.2.0. Enabling backwards compatible encoding. Logback 1.2.1 or greater is recommended. +16:57:08,008 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO +16:57:08,008 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@770c2e6b - Propagating INFO level on Logger[ROOT] onto the JUL framework +16:57:08,008 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [json] to Logger[ROOT] +16:57:08,009 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration. +16:57:08,011 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@4d826d77 - Registering current configuration as safe fallback point + +{"@timestamp":"2018-08-07T16:57:08.864+00:00","@version":"1","message":"Server version: Apache Tomcat/9.0.5","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.892+00:00","@version":"1","message":"Server built: Feb 6 2018 21:42:23 UTC","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.893+00:00","@version":"1","message":"Server number: 9.0.5.0","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.894+00:00","@version":"1","message":"OS Name: Linux","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.895+00:00","@version":"1","message":"OS Version: 4.9.93-linuxkit-aufs","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.896+00:00","@version":"1","message":"Architecture: amd64","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.905+00:00","@version":"1","message":"Java Home: /usr/lib/jvm/java-1.8-openjdk/jre","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.907+00:00","@version":"1","message":"JVM Version: 1.8.0_151-b12","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.908+00:00","@version":"1","message":"JVM Vendor: Oracle Corporation","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.909+00:00","@version":"1","message":"CATALINA_BASE: /camunda","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.913+00:00","@version":"1","message":"CATALINA_HOME: /camunda","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.916+00:00","@version":"1","message":"Command line argument: -Djava.util.logging.config.file=/camunda/conf/logging.properties","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.917+00:00","@version":"1","message":"Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.918+00:00","@version":"1","message":"Command line argument: -Djdk.tls.ephemeralDHKeySize=2048","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.919+00:00","@version":"1","message":"Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.920+00:00","@version":"1","message":"Command line argument: -Xmx512m","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.920+00:00","@version":"1","message":"Command line argument: -XX:MaxPermSize=256m","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.921+00:00","@version":"1","message":"Command line argument: -XX:PermSize=256m","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.921+00:00","@version":"1","message":"Command line argument: -Dignore.endorsed.dirs=","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.922+00:00","@version":"1","message":"Command line argument: -Dcatalina.base=/camunda","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.922+00:00","@version":"1","message":"Command line argument: -Dcatalina.home=/camunda","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.923+00:00","@version":"1","message":"Command line argument: -Djava.io.tmpdir=/camunda/temp","logger_name":"org.apache.catalina.startup.VersionLoggerListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:08.923+00:00","@version":"1","message":"The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64:/usr/lib/jvm/java-1.8-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]","logger_name":"org.apache.catalina.core.AprLifecycleListener","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:09.223+00:00","@version":"1","message":"Initializing ProtocolHandler [\"http-nio-8080\"]","logger_name":"org.apache.coyote.http11.Http11NioProtocol","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:09.260+00:00","@version":"1","message":"Using a shared selector for servlet write/read","logger_name":"org.apache.tomcat.util.net.NioSelectorPool","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:09.296+00:00","@version":"1","message":"Initializing ProtocolHandler [\"ajp-nio-8009\"]","logger_name":"org.apache.coyote.ajp.AjpNioProtocol","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:09.298+00:00","@version":"1","message":"Using a shared selector for servlet write/read","logger_name":"org.apache.tomcat.util.net.NioSelectorPool","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:09.299+00:00","@version":"1","message":"Initialization processed in 2470 ms","logger_name":"org.apache.catalina.startup.Catalina","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:09.869+00:00","@version":"1","message":"ENGINE-08046 Found camunda bpm platform configuration in CATALINA_BASE/CATALINA_HOME conf directory [/camunda/conf/bpm-platform.xml] at 'file:/camunda/conf/bpm-platform.xml'","logger_name":"org.camunda.bpm.container","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:10.707+00:00","@version":"1","message":"ENGINE-12003 Plugin 'ProcessApplicationEventListenerPlugin' activated on process engine 'default'","logger_name":"org.camunda.bpm.engine.cfg","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:10.739+00:00","@version":"1","message":"ENGINE-12003 Plugin 'SpinProcessEnginePlugin' activated on process engine 'default'","logger_name":"org.camunda.bpm.engine.cfg","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:10.759+00:00","@version":"1","message":"SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormatProvider[name = application/json]","logger_name":"org.camunda.spin","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:11.403+00:00","@version":"1","message":"SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormatProvider[name = application/xml]","logger_name":"org.camunda.spin","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:11.452+00:00","@version":"1","message":"SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormat[name = application/xml]","logger_name":"org.camunda.spin","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:11.453+00:00","@version":"1","message":"SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormat[name = application/json]","logger_name":"org.camunda.spin","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:11.453+00:00","@version":"1","message":"ENGINE-12003 Plugin 'ConnectProcessEnginePlugin' activated on process engine 'default'","logger_name":"org.camunda.bpm.engine.cfg","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:12.515+00:00","@version":"1","message":"CNCT-01004 Discovered provider for connector id 'http-connector' and class 'org.camunda.connect.httpclient.impl.HttpConnectorImpl': 'org.camunda.connect.httpclient.impl.HttpConnectorProviderImpl'","logger_name":"org.camunda.bpm.connect","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:12.530+00:00","@version":"1","message":"CNCT-01004 Discovered provider for connector id 'soap-http-connector' and class 'org.camunda.connect.httpclient.soap.impl.SoapHttpConnectorImpl': 'org.camunda.connect.httpclient.soap.impl.SoapHttpConnectorProviderImpl'","logger_name":"org.camunda.bpm.connect","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:19.680+00:00","@version":"1","message":"ENGINE-03016 Performing database operation 'create' on component 'engine' with resource 'org/camunda/bpm/engine/db/create/activiti.h2.create.engine.sql'","logger_name":"org.camunda.bpm.engine.persistence","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:19.774+00:00","@version":"1","message":"ENGINE-03016 Performing database operation 'create' on component 'history' with resource 'org/camunda/bpm/engine/db/create/activiti.h2.create.history.sql'","logger_name":"org.camunda.bpm.engine.persistence","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:19.813+00:00","@version":"1","message":"ENGINE-03016 Performing database operation 'create' on component 'identity' with resource 'org/camunda/bpm/engine/db/create/activiti.h2.create.identity.sql'","logger_name":"org.camunda.bpm.engine.persistence","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:19.850+00:00","@version":"1","message":"ENGINE-03016 Performing database operation 'create' on component 'case.engine' with resource 'org/camunda/bpm/engine/db/create/activiti.h2.create.case.engine.sql'","logger_name":"org.camunda.bpm.engine.persistence","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:19.861+00:00","@version":"1","message":"ENGINE-03016 Performing database operation 'create' on component 'case.history' with resource 'org/camunda/bpm/engine/db/create/activiti.h2.create.case.history.sql'","logger_name":"org.camunda.bpm.engine.persistence","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:19.873+00:00","@version":"1","message":"ENGINE-03016 Performing database operation 'create' on component 'decision.engine' with resource 'org/camunda/bpm/engine/db/create/activiti.h2.create.decision.engine.sql'","logger_name":"org.camunda.bpm.engine.persistence","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:19.889+00:00","@version":"1","message":"ENGINE-03016 Performing database operation 'create' on component 'decision.history' with resource 'org/camunda/bpm/engine/db/create/activiti.h2.create.decision.history.sql'","logger_name":"org.camunda.bpm.engine.persistence","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:19.999+00:00","@version":"1","message":"ENGINE-03067 No history level property found in database","logger_name":"org.camunda.bpm.engine.persistence","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:20.001+00:00","@version":"1","message":"ENGINE-03065 Creating historyLevel property in database for level: HistoryLevelFull(name=full, id=3)","logger_name":"org.camunda.bpm.engine.persistence","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:20.216+00:00","@version":"1","message":"ENGINE-00001 Process Engine default created.","logger_name":"org.camunda.bpm.engine","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:20.228+00:00","@version":"1","message":"ENGINE-14014 Starting up the JobExecutor[org.camunda.bpm.engine.impl.jobexecutor.RuntimeContainerJobExecutor].","logger_name":"org.camunda.bpm.engine.jobexecutor","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:20.238+00:00","@version":"1","message":"ENGINE-14018 JobExecutor[org.camunda.bpm.engine.impl.jobexecutor.RuntimeContainerJobExecutor] starting to acquire jobs","logger_name":"org.camunda.bpm.engine.jobexecutor","thread_name":"Thread-5","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:20.248+00:00","@version":"1","message":"ENGINE-08048 Camunda BPM platform sucessfully started at 'Apache Tomcat/9.0.5'.","logger_name":"org.camunda.bpm.container","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:20.337+00:00","@version":"1","message":"Starting service [Catalina]","logger_name":"org.apache.catalina.core.StandardService","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:20.348+00:00","@version":"1","message":"Starting Servlet Engine: Apache Tomcat/9.0.5","logger_name":"org.apache.catalina.core.StandardEngine","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:20.412+00:00","@version":"1","message":"Deploying web application directory [/camunda/webapps/host-manager]","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:24.632+00:00","@version":"1","message":"At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.","logger_name":"org.apache.jasper.servlet.TldScanner","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:24.824+00:00","@version":"1","message":"Deployment of web application directory [/camunda/webapps/host-manager] has finished in [4,411] ms","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:24.827+00:00","@version":"1","message":"Deploying web application directory [/camunda/webapps/examples]","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:27.337+00:00","@version":"1","message":"At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.","logger_name":"org.apache.jasper.servlet.TldScanner","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:27.479+00:00","@version":"1","message":"ContextListener: contextInitialized()","logger_name":"org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples]","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:27.484+00:00","@version":"1","message":"SessionListener: contextInitialized()","logger_name":"org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples]","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:27.493+00:00","@version":"1","message":"ContextListener: attributeAdded('StockTicker', 'async.Stockticker@7a9dfe2c')","logger_name":"org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples]","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:27.516+00:00","@version":"1","message":"Deployment of web application directory [/camunda/webapps/examples] has finished in [2,688] ms","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:27.519+00:00","@version":"1","message":"Deploying web application directory [/camunda/webapps/camunda-welcome]","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:29.868+00:00","@version":"1","message":"At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.","logger_name":"org.apache.jasper.servlet.TldScanner","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:29.890+00:00","@version":"1","message":"Deployment of web application directory [/camunda/webapps/camunda-welcome] has finished in [2,371] ms","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:29.891+00:00","@version":"1","message":"Deploying web application directory [/camunda/webapps/ROOT]","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:33.090+00:00","@version":"1","message":"At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.","logger_name":"org.apache.jasper.servlet.TldScanner","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:33.095+00:00","@version":"1","message":"Deployment of web application directory [/camunda/webapps/ROOT] has finished in [3,203] ms","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:33.095+00:00","@version":"1","message":"Deploying web application directory [/camunda/webapps/manager]","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:35.566+00:00","@version":"1","message":"At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.","logger_name":"org.apache.jasper.servlet.TldScanner","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:35.570+00:00","@version":"1","message":"Deployment of web application directory [/camunda/webapps/manager] has finished in [2,474] ms","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:35.570+00:00","@version":"1","message":"Deploying web application directory [/camunda/webapps/docs]","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:37.986+00:00","@version":"1","message":"At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.","logger_name":"org.apache.jasper.servlet.TldScanner","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:37.991+00:00","@version":"1","message":"Deployment of web application directory [/camunda/webapps/docs] has finished in [2,421] ms","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:37.992+00:00","@version":"1","message":"Deploying web application directory [/camunda/webapps/h2]","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:40.037+00:00","@version":"1","message":"At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.","logger_name":"org.apache.jasper.servlet.TldScanner","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:40.065+00:00","@version":"1","message":"Deployment of web application directory [/camunda/webapps/h2] has finished in [2,073] ms","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:40.067+00:00","@version":"1","message":"Deploying web application directory [/camunda/webapps/camunda]","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:42.400+00:00","@version":"1","message":"At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.","logger_name":"org.apache.jasper.servlet.TldScanner","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:42.983+00:00","@version":"1","message":"Deployment of web application directory [/camunda/webapps/camunda] has finished in [2,916] ms","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:42.984+00:00","@version":"1","message":"Deploying web application directory [/camunda/webapps/engine-rest]","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:45.050+00:00","@version":"1","message":"At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.","logger_name":"org.apache.jasper.servlet.TldScanner","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:45.313+00:00","@version":"1","message":"Deployment of web application directory [/camunda/webapps/engine-rest] has finished in [2,329] ms","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:45.315+00:00","@version":"1","message":"Deploying web application directory [/camunda/webapps/camunda-invoice]","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:47.029+00:00","@version":"1","message":"At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.","logger_name":"org.apache.jasper.servlet.TldScanner","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:47.031+00:00","@version":"1","message":"ENGINE-07015 Detected @ProcessApplication class 'org.camunda.bpm.example.invoice.InvoiceProcessApplication'","logger_name":"org.camunda.bpm.application","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:47.062+00:00","@version":"1","message":"ENGINE-08024 Found processes.xml file at file:/camunda/webapps/camunda-invoice/WEB-INF/classes/META-INF/processes.xml","logger_name":"org.camunda.bpm.container","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:48.346+00:00","@version":"1","message":"ENGINE-07021 ProcessApplication 'camunda-invoice' registered for DB deployments [02a3d070-9a63-11e8-810e-0242ac110002]. Will execute process definitions \n\n invoice[version: 1, id: invoice:1:02db3424-9a63-11e8-810e-0242ac110002]\n\nWill execute case definitions \n\n ReviewInvoiceCase[version: 1, id: ReviewInvoiceCase:1:03292d16-9a63-11e8-810e-0242ac110002]\n","logger_name":"org.camunda.bpm.application","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:48.395+00:00","@version":"1","message":"ENGINE-08023 Deployment summary for process archive 'camunda-invoice': \n\n invoiceBusinessDecisions.dmn\n invoice.v2.bpmn\n review-invoice.cmmn\n","logger_name":"org.camunda.bpm.container","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:48.685+00:00","@version":"1","message":"ENGINE-07021 ProcessApplication 'camunda-invoice' registered for DB deployments [02a3d070-9a63-11e8-810e-0242ac110002, 036e255a-9a63-11e8-810e-0242ac110002]. Will execute process definitions \n\n invoice[version: 1, id: invoice:1:02db3424-9a63-11e8-810e-0242ac110002]\n invoice[version: 2, id: invoice:2:037e51fe-9a63-11e8-810e-0242ac110002]\n\nWill execute case definitions \n\n ReviewInvoiceCase[version: 1, id: ReviewInvoiceCase:1:03292d16-9a63-11e8-810e-0242ac110002]\n ReviewInvoiceCase[version: 2, id: ReviewInvoiceCase:2:0386b670-9a63-11e8-810e-0242ac110002]\n","logger_name":"org.camunda.bpm.application","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:48.714+00:00","@version":"1","message":"SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormatProvider[name = application/json]","logger_name":"org.camunda.spin","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:48.718+00:00","@version":"1","message":"SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormatProvider[name = application/xml]","logger_name":"org.camunda.spin","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:48.721+00:00","@version":"1","message":"SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormat[name = application/xml]","logger_name":"org.camunda.spin","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:48.722+00:00","@version":"1","message":"SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormat[name = application/json]","logger_name":"org.camunda.spin","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:48.786+00:00","@version":"1","message":"Generating demo data for invoice showcase","logger_name":"org.camunda.bpm.example.invoice.DemoDataGenerator","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:49.977+00:00","@version":"1","message":"Start 3 instances of Invoice Receipt, version 1","logger_name":"org.camunda.bpm.example.invoice.InvoiceProcessApplication","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:53.905+00:00","@version":"1","message":"\n\n ... Now notifying creditor Bobby's Office Supplies\n\n","logger_name":"org.camunda.bpm.example.invoice.service.NotifyCreditorService","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:55.167+00:00","@version":"1","message":"Start 3 instances of Invoice Receipt, version 2","logger_name":"org.camunda.bpm.example.invoice.InvoiceProcessApplication","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:56.376+00:00","@version":"1","message":"ENGINE-08050 Process application camunda-invoice successfully deployed","logger_name":"org.camunda.bpm.container","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:56.383+00:00","@version":"1","message":"Deployment of web application directory [/camunda/webapps/camunda-invoice] has finished in [11,067] ms","logger_name":"org.apache.catalina.startup.HostConfig","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:56.421+00:00","@version":"1","message":"Starting ProtocolHandler [\"http-nio-8080\"]","logger_name":"org.apache.coyote.http11.Http11NioProtocol","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:56.485+00:00","@version":"1","message":"Starting ProtocolHandler [\"ajp-nio-8009\"]","logger_name":"org.apache.coyote.ajp.AjpNioProtocol","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:57:56.494+00:00","@version":"1","message":"Server startup in 47233 ms","logger_name":"org.apache.catalina.startup.Catalina","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:58:15.607+00:00","@version":"1","message":"Deploying javax.ws.rs.core.Application: class org.camunda.bpm.tasklist.impl.web.TasklistApplication","logger_name":"org.jboss.resteasy.spi.ResteasyDeployment","thread_name":"http-nio-8080-exec-7","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:58:16.431+00:00","@version":"1","message":"Deploying javax.ws.rs.core.Application: class org.camunda.bpm.webapp.impl.engine.EngineRestApplication","logger_name":"org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher","thread_name":"http-nio-8080-exec-10","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T16:58:16.480+00:00","@version":"1","message":"Deploying javax.ws.rs.core.Application: class org.camunda.bpm.admin.impl.web.AdminApplication","logger_name":"org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher","thread_name":"http-nio-8080-exec-1","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} + +$ ^C +load: 2.36 cmd: docker 35628 running 0.12u 0.19s + +{"@timestamp":"2018-08-07T17:01:08.749+00:00","@version":"1","message":"ENGINE-14015 Shutting down the JobExecutor[org.camunda.bpm.engine.impl.jobexecutor.RuntimeContainerJobExecutor]","logger_name":"org.camunda.bpm.engine.jobexecutor","thread_name":"Thread-7","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T17:01:08.750+00:00","@version":"1","message":"ENGINE-14020 JobExecutor[org.camunda.bpm.engine.impl.jobexecutor.RuntimeContainerJobExecutor] stopped job acquisition","logger_name":"org.camunda.bpm.engine.jobexecutor","thread_name":"Thread-5","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T17:01:08.906+00:00","@version":"1","message":"ENGINE-08051 Process application camunda-invoice undeployed","logger_name":"org.camunda.bpm.container","thread_name":"Thread-7","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T17:01:08.953+00:00","@version":"1","message":"ENGINE-00007 Process Engine default closed","logger_name":"org.camunda.bpm.engine","thread_name":"Thread-7","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T17:01:08.957+00:00","@version":"1","message":"ENGINE-08049 Camunda BPM platform stopped at 'Apache Tomcat/9.0.5'","logger_name":"org.camunda.bpm.container","thread_name":"Thread-7","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T17:01:08.964+00:00","@version":"1","message":"Pausing ProtocolHandler [\"http-nio-8080\"]","logger_name":"org.apache.coyote.http11.Http11NioProtocol","thread_name":"Thread-7","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T17:01:08.985+00:00","@version":"1","message":"Pausing ProtocolHandler [\"ajp-nio-8009\"]","logger_name":"org.apache.coyote.ajp.AjpNioProtocol","thread_name":"Thread-7","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T17:01:09.044+00:00","@version":"1","message":"Stopping service [Catalina]","logger_name":"org.apache.catalina.core.StandardService","thread_name":"Thread-7","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T17:01:09.204+00:00","@version":"1","message":"SessionListener: contextDestroyed()","logger_name":"org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples]","thread_name":"Thread-7","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T17:01:09.206+00:00","@version":"1","message":"ContextListener: contextDestroyed()","logger_name":"org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples]","thread_name":"Thread-7","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T17:01:09.237+00:00","@version":"1","message":"ENGINE-07017 Calling undeploy() on process application that is not deployed.","logger_name":"org.camunda.bpm.application","thread_name":"Thread-7","level":"WARN","level_value":30000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T17:01:09.397+00:00","@version":"1","message":"Stopping ProtocolHandler [\"http-nio-8080\"]","logger_name":"org.apache.coyote.http11.Http11NioProtocol","thread_name":"Thread-7","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T17:01:09.412+00:00","@version":"1","message":"Stopping ProtocolHandler [\"ajp-nio-8009\"]","logger_name":"org.apache.coyote.ajp.AjpNioProtocol","thread_name":"Thread-7","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T17:01:09.423+00:00","@version":"1","message":"Destroying ProtocolHandler [\"http-nio-8080\"]","logger_name":"org.apache.coyote.http11.Http11NioProtocol","thread_name":"Thread-7","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +{"@timestamp":"2018-08-07T17:01:09.429+00:00","@version":"1","message":"Destroying ProtocolHandler [\"ajp-nio-8009\"]","logger_name":"org.apache.coyote.ajp.AjpNioProtocol","thread_name":"Thread-7","level":"INFO","level_value":20000,"HOSTNAME":"760651e5c675"} +``` \ No newline at end of file diff --git a/tomcat/7.10/docker/docker-compose.yml b/tomcat/7.10/docker/docker-compose.yml new file mode 100644 index 0000000..a93bdd7 --- /dev/null +++ b/tomcat/7.10/docker/docker-compose.yml @@ -0,0 +1,15 @@ +version: '3.2' + +services: + camunda: + build: . + environment: + - JAVA_OPTS=-Djava.security.egd=file:/dev/./urandom -Duser.timezone=America/Montreal + ports: + - "8080:8080" + networks: + - mynetwork + +networks: + mynetwork: + driver: bridge \ No newline at end of file diff --git a/tomcat/7.10/docker/docker/camunda/bin/setenv.sh b/tomcat/7.10/docker/docker/camunda/bin/setenv.sh new file mode 100644 index 0000000..a1f3813 --- /dev/null +++ b/tomcat/7.10/docker/docker/camunda/bin/setenv.sh @@ -0,0 +1,4 @@ +export CATALINA_OPTS="-Xmx512m -XX:MaxPermSize=256m -XX:PermSize=256m" + +# Sets the initial classpath to have the needed JUL->SLF4J jars + the logstash/Logback libraries +CLASSPATH=$CATALINA_HOME/lib/camunda-json-logging-tomcat-${CAMUNDA_VERSION}.jar:$CATALINA_HOME/conf/logback/ \ No newline at end of file diff --git a/tomcat/7.10/docker/docker/camunda/conf/logback/logback.xml b/tomcat/7.10/docker/docker/camunda/conf/logback/logback.xml new file mode 100644 index 0000000..db39846 --- /dev/null +++ b/tomcat/7.10/docker/docker/camunda/conf/logback/logback.xml @@ -0,0 +1,71 @@ + + + + + true + + + + + + %d{HH:mm:ss.SSS} -- [%thread] %-5level %logger{36} - %msg%n + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tomcat/7.10/docker/docker/camunda/conf/logging.properties b/tomcat/7.10/docker/docker/camunda/conf/logging.properties new file mode 100644 index 0000000..2f5ec24 --- /dev/null +++ b/tomcat/7.10/docker/docker/camunda/conf/logging.properties @@ -0,0 +1 @@ +handlers = org.slf4j.bridge.SLF4JBridgeHandler \ No newline at end of file diff --git a/tomcat/7.10/docker/docker/camunda/lib/camunda-json-logging-tomcat-7.10.0.jar b/tomcat/7.10/docker/docker/camunda/lib/camunda-json-logging-tomcat-7.10.0.jar new file mode 100644 index 0000000..0bb33a3 Binary files /dev/null and b/tomcat/7.10/docker/docker/camunda/lib/camunda-json-logging-tomcat-7.10.0.jar differ diff --git a/tomcat/7.10/json-logging-dependency-package/.gitignore b/tomcat/7.10/json-logging-dependency-package/.gitignore new file mode 100755 index 0000000..47a4b8f --- /dev/null +++ b/tomcat/7.10/json-logging-dependency-package/.gitignore @@ -0,0 +1,13 @@ +.gradle +build/ +target/ +bin/ +.settings +.sts* + +.vscode/ +.classpath +.project + +.idea/ +.mvn/wrapper/maven-wrapper.jar \ No newline at end of file diff --git a/tomcat/7.10/json-logging-dependency-package/.mvn/wrapper/MavenWrapperDownloader.java b/tomcat/7.10/json-logging-dependency-package/.mvn/wrapper/MavenWrapperDownloader.java new file mode 100755 index 0000000..d475a89 --- /dev/null +++ b/tomcat/7.10/json-logging-dependency-package/.mvn/wrapper/MavenWrapperDownloader.java @@ -0,0 +1,110 @@ +/* +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +*/ + +import java.net.*; +import java.io.*; +import java.nio.channels.*; +import java.util.Properties; + +public class MavenWrapperDownloader { + + /** + * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided. + */ + private static final String DEFAULT_DOWNLOAD_URL = + "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.0/maven-wrapper-0.4.0.jar"; + + /** + * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to + * use instead of the default one. + */ + private static final String MAVEN_WRAPPER_PROPERTIES_PATH = + ".mvn/wrapper/maven-wrapper.properties"; + + /** + * Path where the maven-wrapper.jar will be saved to. + */ + private static final String MAVEN_WRAPPER_JAR_PATH = + ".mvn/wrapper/maven-wrapper.jar"; + + /** + * Name of the property which should be used to override the default download url for the wrapper. + */ + private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl"; + + public static void main(String args[]) { + System.out.println("- Downloader started"); + File baseDirectory = new File(args[0]); + System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath()); + + // If the maven-wrapper.properties exists, read it and check if it contains a custom + // wrapperUrl parameter. + File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH); + String url = DEFAULT_DOWNLOAD_URL; + if(mavenWrapperPropertyFile.exists()) { + FileInputStream mavenWrapperPropertyFileInputStream = null; + try { + mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile); + Properties mavenWrapperProperties = new Properties(); + mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream); + url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url); + } catch (IOException e) { + System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'"); + } finally { + try { + if(mavenWrapperPropertyFileInputStream != null) { + mavenWrapperPropertyFileInputStream.close(); + } + } catch (IOException e) { + // Ignore ... + } + } + } + System.out.println("- Downloading from: : " + url); + + File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH); + if(!outputFile.getParentFile().exists()) { + if(!outputFile.getParentFile().mkdirs()) { + System.out.println( + "- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'"); + } + } + System.out.println("- Downloading to: " + outputFile.getAbsolutePath()); + try { + downloadFileFromURL(url, outputFile); + System.out.println("Done"); + System.exit(0); + } catch (Throwable e) { + System.out.println("- Error downloading"); + e.printStackTrace(); + System.exit(1); + } + } + + private static void downloadFileFromURL(String urlString, File destination) throws Exception { + URL website = new URL(urlString); + ReadableByteChannel rbc; + rbc = Channels.newChannel(website.openStream()); + FileOutputStream fos = new FileOutputStream(destination); + fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE); + fos.close(); + rbc.close(); + } + +} diff --git a/tomcat/7.10/json-logging-dependency-package/.mvn/wrapper/maven-wrapper.properties b/tomcat/7.10/json-logging-dependency-package/.mvn/wrapper/maven-wrapper.properties new file mode 100755 index 0000000..a5fcc11 --- /dev/null +++ b/tomcat/7.10/json-logging-dependency-package/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1 @@ +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.2/apache-maven-3.5.2-bin.zip \ No newline at end of file diff --git a/tomcat/7.10/json-logging-dependency-package/mvnw b/tomcat/7.10/json-logging-dependency-package/mvnw new file mode 100755 index 0000000..961a825 --- /dev/null +++ b/tomcat/7.10/json-logging-dependency-package/mvnw @@ -0,0 +1,286 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Maven2 Start Up Batch script +# +# Required ENV vars: +# ------------------ +# JAVA_HOME - location of a JDK home dir +# +# Optional ENV vars +# ----------------- +# M2_HOME - location of maven2's installed home dir +# MAVEN_OPTS - parameters passed to the Java VM when running Maven +# e.g. to debug Maven itself, use +# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +# MAVEN_SKIP_RC - flag to disable loading of mavenrc files +# ---------------------------------------------------------------------------- + +if [ -z "$MAVEN_SKIP_RC" ] ; then + + if [ -f /etc/mavenrc ] ; then + . /etc/mavenrc + fi + + if [ -f "$HOME/.mavenrc" ] ; then + . "$HOME/.mavenrc" + fi + +fi + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +mingw=false +case "`uname`" in + CYGWIN*) cygwin=true ;; + MINGW*) mingw=true;; + Darwin*) darwin=true + # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home + # See https://developer.apple.com/library/mac/qa/qa1170/_index.html + if [ -z "$JAVA_HOME" ]; then + if [ -x "/usr/libexec/java_home" ]; then + export JAVA_HOME="`/usr/libexec/java_home`" + else + export JAVA_HOME="/Library/Java/Home" + fi + fi + ;; +esac + +if [ -z "$JAVA_HOME" ] ; then + if [ -r /etc/gentoo-release ] ; then + JAVA_HOME=`java-config --jre-home` + fi +fi + +if [ -z "$M2_HOME" ] ; then + ## resolve links - $0 may be a link to maven's home + PRG="$0" + + # need this for relative symlinks + while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi + done + + saveddir=`pwd` + + M2_HOME=`dirname "$PRG"`/.. + + # make it fully qualified + M2_HOME=`cd "$M2_HOME" && pwd` + + cd "$saveddir" + # echo Using m2 at $M2_HOME +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --unix "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +fi + +# For Mingw, ensure paths are in UNIX format before anything is touched +if $mingw ; then + [ -n "$M2_HOME" ] && + M2_HOME="`(cd "$M2_HOME"; pwd)`" + [ -n "$JAVA_HOME" ] && + JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" + # TODO classpath? +fi + +if [ -z "$JAVA_HOME" ]; then + javaExecutable="`which javac`" + if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then + # readlink(1) is not available as standard on Solaris 10. + readLink=`which readlink` + if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then + if $darwin ; then + javaHome="`dirname \"$javaExecutable\"`" + javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" + else + javaExecutable="`readlink -f \"$javaExecutable\"`" + fi + javaHome="`dirname \"$javaExecutable\"`" + javaHome=`expr "$javaHome" : '\(.*\)/bin'` + JAVA_HOME="$javaHome" + export JAVA_HOME + fi + fi +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD="`which java`" + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." >&2 + echo " We cannot execute $JAVACMD" >&2 + exit 1 +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." +fi + +CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher + +# traverses directory structure from process work directory to filesystem root +# first directory with .mvn subdirectory is considered project base directory +find_maven_basedir() { + + if [ -z "$1" ] + then + echo "Path not specified to find_maven_basedir" + return 1 + fi + + basedir="$1" + wdir="$1" + while [ "$wdir" != '/' ] ; do + if [ -d "$wdir"/.mvn ] ; then + basedir=$wdir + break + fi + # workaround for JBEAP-8937 (on Solaris 10/Sparc) + if [ -d "${wdir}" ]; then + wdir=`cd "$wdir/.."; pwd` + fi + # end of workaround + done + echo "${basedir}" +} + +# concatenates all lines of a file +concat_lines() { + if [ -f "$1" ]; then + echo "$(tr -s '\n' ' ' < "$1")" + fi +} + +BASE_DIR=`find_maven_basedir "$(pwd)"` +if [ -z "$BASE_DIR" ]; then + exit 1; +fi + +########################################################################################## +# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central +# This allows using the maven wrapper in projects that prohibit checking in binary data. +########################################################################################## +if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found .mvn/wrapper/maven-wrapper.jar" + fi +else + if [ "$MVNW_VERBOSE" = true ]; then + echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." + fi + jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.0/maven-wrapper-0.4.0.jar" + while IFS="=" read key value; do + case "$key" in (wrapperUrl) jarUrl="$value"; break ;; + esac + done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" + if [ "$MVNW_VERBOSE" = true ]; then + echo "Downloading from: $jarUrl" + fi + wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" + + if command -v wget > /dev/null; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found wget ... using wget" + fi + wget "$jarUrl" -O "$wrapperJarPath" + elif command -v curl > /dev/null; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found curl ... using curl" + fi + curl -o "$wrapperJarPath" "$jarUrl" + else + if [ "$MVNW_VERBOSE" = true ]; then + echo "Falling back to using Java to download" + fi + javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" + if [ -e "$javaClass" ]; then + if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then + if [ "$MVNW_VERBOSE" = true ]; then + echo " - Compiling MavenWrapperDownloader.java ..." + fi + # Compiling the Java class + ("$JAVA_HOME/bin/javac" "$javaClass") + fi + if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then + # Running the downloader + if [ "$MVNW_VERBOSE" = true ]; then + echo " - Running MavenWrapperDownloader.java ..." + fi + ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") + fi + fi + fi +fi +########################################################################################## +# End of extension +########################################################################################## + +export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} +if [ "$MVNW_VERBOSE" = true ]; then + echo $MAVEN_PROJECTBASEDIR +fi +MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --path --windows "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --windows "$CLASSPATH"` + [ -n "$MAVEN_PROJECTBASEDIR" ] && + MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` +fi + +WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +exec "$JAVACMD" \ + $MAVEN_OPTS \ + -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ + "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ + ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/tomcat/7.10/json-logging-dependency-package/mvnw.cmd b/tomcat/7.10/json-logging-dependency-package/mvnw.cmd new file mode 100755 index 0000000..03d90e9 --- /dev/null +++ b/tomcat/7.10/json-logging-dependency-package/mvnw.cmd @@ -0,0 +1,161 @@ +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Maven2 Start Up Batch script +@REM +@REM Required ENV vars: +@REM JAVA_HOME - location of a JDK home dir +@REM +@REM Optional ENV vars +@REM M2_HOME - location of maven2's installed home dir +@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands +@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending +@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven +@REM e.g. to debug Maven itself, use +@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files +@REM ---------------------------------------------------------------------------- + +@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' +@echo off +@REM set title of command window +title %0 +@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on' +@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% + +@REM set %HOME% to equivalent of $HOME +if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") + +@REM Execute a user defined script before this one +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre +@REM check for pre script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" +if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" +:skipRcPre + +@setlocal + +set ERROR_CODE=0 + +@REM To isolate internal variables from possible post scripts, we use another setlocal +@setlocal + +@REM ==== START VALIDATION ==== +if not "%JAVA_HOME%" == "" goto OkJHome + +echo. +echo Error: JAVA_HOME not found in your environment. >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +:OkJHome +if exist "%JAVA_HOME%\bin\java.exe" goto init + +echo. +echo Error: JAVA_HOME is set to an invalid directory. >&2 +echo JAVA_HOME = "%JAVA_HOME%" >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +@REM ==== END VALIDATION ==== + +:init + +@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". +@REM Fallback to current working directory if not found. + +set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% +IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir + +set EXEC_DIR=%CD% +set WDIR=%EXEC_DIR% +:findBaseDir +IF EXIST "%WDIR%"\.mvn goto baseDirFound +cd .. +IF "%WDIR%"=="%CD%" goto baseDirNotFound +set WDIR=%CD% +goto findBaseDir + +:baseDirFound +set MAVEN_PROJECTBASEDIR=%WDIR% +cd "%EXEC_DIR%" +goto endDetectBaseDir + +:baseDirNotFound +set MAVEN_PROJECTBASEDIR=%EXEC_DIR% +cd "%EXEC_DIR%" + +:endDetectBaseDir + +IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig + +@setlocal EnableExtensions EnableDelayedExpansion +for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a +@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% + +:endReadAdditionalConfig + +SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" +set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" +set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.0/maven-wrapper-0.4.0.jar" +FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO ( + IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B +) + +@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central +@REM This allows using the maven wrapper in projects that prohibit checking in binary data. +if exist %WRAPPER_JAR% ( + echo Found %WRAPPER_JAR% +) else ( + echo Couldn't find %WRAPPER_JAR%, downloading it ... + echo Downloading from: %DOWNLOAD_URL% + powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')" + echo Finished downloading %WRAPPER_JAR% +) +@REM End of extension + +%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* +if ERRORLEVEL 1 goto error +goto end + +:error +set ERROR_CODE=1 + +:end +@endlocal & set ERROR_CODE=%ERROR_CODE% + +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost +@REM check for post script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" +if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" +:skipRcPost + +@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' +if "%MAVEN_BATCH_PAUSE%" == "on" pause + +if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% + +exit /B %ERROR_CODE% diff --git a/tomcat/7.10/json-logging-dependency-package/pom.xml b/tomcat/7.10/json-logging-dependency-package/pom.xml new file mode 100644 index 0000000..0cd5fe8 --- /dev/null +++ b/tomcat/7.10/json-logging-dependency-package/pom.xml @@ -0,0 +1,108 @@ + + + 4.0.0 + + io.digitalstate.camunda.logging + camunda-json-logging-tomcat + 1.0 + jar + + JSON Logging Dependencies for Camunda Tomcat + + + 1.8 + 7.10.0 + 1.5.1 + UTF-8 + + + + + + org.camunda.bpm + camunda-parent + ${version.camunda} + pom + import + + + org.camunda.spin + camunda-spin-root + ${version.camunda.spin} + pom + import + + + + + + + org.slf4j + jul-to-slf4j + + + + com.fasterxml.jackson.core + jackson-core + + + com.fasterxml.jackson.core + jackson-databind + + + + ch.qos.logback + logback-classic + + + + net.logstash.logback + logstash-logback-encoder + 5.2 + + + + org.codehaus.janino + janino + 3.0.6 + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + ${version.java} + ${version.java} + + + + maven-assembly-plugin + 2.2.1 + + false + + jar-with-dependencies + + ${project.artifactId}-${version.camunda} + + + + make-assembly + package + + single + + + + + + + +