1 <?xml version="1.0" encoding="utf-8"?>
3 Licensed to the Apache Software Foundation (ASF) under one or more
4 contributor license agreements. See the NOTICE file distributed with
5 this work for additional information regarding copyright ownership.
6 The ASF licenses this file to You under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with
8 the License. You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
18 <!-- Note: A "Server" is not itself a "Container", so you may not
19 define subcomponents such as "Valves" at this level.
20 Documentation at /docs/config/server.html
22 <Server port="8005" shutdown="SHUTDOWN">
23 <Listener className="org.apache.catalina.startup.VersionLoggerListener"/>
24 <!-- Security listener. Documentation at /docs/config/listeners.html
25 <Listener className="org.apache.catalina.security.SecurityListener" />
27 <!--APR library loader. Documentation at /docs/apr.html -->
28 <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on"/>
29 <!-- Prevent memory leaks due to use of particular java/javax APIs-->
30 <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
31 <Listener className="org.camunda.bpm.container.impl.tomcat.TomcatBpmPlatformBootstrap"/>
32 <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
33 <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/>
34 <!-- Global JNDI resources
35 Documentation at /docs/jndi-resources-howto.html
37 <GlobalNamingResources>
38 <!-- Editable user database that can also be used by
39 UserDatabaseRealm to authenticate users
41 <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml"/>
42 <!-- Additional properties can be set to avoid a common exception
43 regarding connection timeout in the connection pool:
45 validationQuery="SELECT 1"
47 <Resource name="jdbc/ProcessEngine" auth="Container" type="javax.sql.DataSource" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" uniqueResourceName="process-engine" driverClassName="org.h2.Driver" url="jdbc:h2:./camunda-h2-dbs/process-engine;MVCC=TRUE;TRACE_LEVEL_FILE=0;DB_CLOSE_ON_EXIT=FALSE" defaultTransactionIsolation="READ_COMMITTED" username="sa" password="sa" maxActive="20" minIdle="5" maxIdle="20"/>
48 <Resource name="global/camunda-bpm-platform/process-engine/ProcessEngineService!org.camunda.bpm.ProcessEngineService" auth="Container" type="org.camunda.bpm.ProcessEngineService" description="camunda BPM platform Process Engine Service" factory="org.camunda.bpm.container.impl.jndi.ProcessEngineServiceObjectFactory"/>
49 <Resource name="global/camunda-bpm-platform/process-engine/ProcessApplicationService!org.camunda.bpm.ProcessApplicationService" auth="Container" type="org.camunda.bpm.ProcessApplicationService" description="camunda BPM platform Process Application Service" factory="org.camunda.bpm.container.impl.jndi.ProcessApplicationServiceObjectFactory"/>
50 </GlobalNamingResources>
51 <!-- A "Service" is a collection of one or more "Connectors" that share
52 a single "Container" Note: A "Service" is not itself a "Container",
53 so you may not define subcomponents such as "Valves" at this level.
54 Documentation at /docs/config/service.html
56 <Service name="Catalina">
57 <!--The connectors can use a shared executor, you can define one or more named thread pools-->
59 <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
60 maxThreads="150" minSpareThreads="4"/>
62 <!-- A "Connector" represents an endpoint by which requests are received
63 and responses are returned. Documentation at :
64 Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
65 Java AJP Connector: /docs/config/ajp.html
66 APR (HTTP/AJP) Connector: /docs/apr.html
67 Define a non-SSL HTTP/1.1 Connector on port 8080
69 <Connector port="8085" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"/>
70 <!-- A "Connector" using the shared thread pool-->
72 <Connector executor="tomcatThreadPool"
73 port="8080" protocol="HTTP/1.1"
74 connectionTimeout="20000"
75 redirectPort="8443" />
77 <!-- Define a SSL HTTP/1.1 Connector on port 8443
78 This connector uses the JSSE configuration, when using APR, the
79 connector should be using the OpenSSL style configuration
80 described in the APR documentation -->
82 <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
83 maxThreads="150" scheme="https" secure="true"
84 clientAuth="false" sslProtocol="TLS" />
86 <!-- Define an AJP 1.3 Connector on port 8009 -->
87 <Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>
88 <!-- An Engine represents the entry point (within Catalina) that processes
89 every request. The Engine implementation for Tomcat stand alone
90 analyzes the HTTP headers included with the request, and passes them
91 on to the appropriate Host (virtual host).
92 Documentation at /docs/config/engine.html -->
93 <!-- You should set jvmRoute to support load-balancing via AJP ie :
94 <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
96 <Engine name="Catalina" defaultHost="localhost">
97 <!--For clustering, please take a look at documentation at:
98 /docs/cluster-howto.html (simple how to)
99 /docs/config/cluster.html (reference documentation) -->
101 <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
103 <!-- Use the LockOutRealm to prevent attempts to guess user passwords
104 via a brute-force attack -->
105 <Realm className="org.apache.catalina.realm.LockOutRealm">
106 <!-- This Realm uses the UserDatabase configured in the global JNDI
107 resources under the key "UserDatabase". Any edits
108 that are performed against this UserDatabase are immediately
109 available for use by the Realm. -->
110 <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
112 <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
113 <!-- SingleSignOn valve, share authentication between web applications
114 Documentation at: /docs/config/valve.html -->
116 <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
118 <!-- Access log processes all example.
119 Documentation at: /docs/config/valve.html
120 Note: The pattern used is equivalent to using pattern="common" -->
121 <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b"/>