Skip to content

Commit 7ea7ded

Browse files
Damodarsedukull
authored andcommitted
CLOUDSTACK-7106 : RPM build failing with RHEL7 Reviewed By : Rayees
Signed-off-by: Santhosh Edukulla <santhosh.edukulla@gmail.com>
1 parent 902a9c5 commit 7ea7ded

11 files changed

Lines changed: 703 additions & 39 deletions

File tree

Lines changed: 231 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,231 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<!--
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
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
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.
17+
-->
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
21+
-->
22+
<Server port="8005" shutdown="SHUTDOWN">
23+
24+
<!--APR library loader. Documentation at /docs/apr.html -->
25+
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
26+
<!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
27+
<Listener className="org.apache.catalina.core.JasperListener" />
28+
<!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
29+
<!-- Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" / -->
30+
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
31+
32+
<!-- Global JNDI resources
33+
Documentation at /docs/jndi-resources-howto.html
34+
-->
35+
<GlobalNamingResources>
36+
<!-- Editable user database that can also be used by
37+
UserDatabaseRealm to authenticate users
38+
-->
39+
<Resource name="UserDatabase" auth="Container"
40+
type="org.apache.catalina.UserDatabase"
41+
description="User database that can be updated and saved"
42+
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
43+
pathname="conf/tomcat-users.xml" />
44+
</GlobalNamingResources>
45+
46+
<!-- A "Service" is a collection of one or more "Connectors" that share
47+
a single "Container" Note: A "Service" is not itself a "Container",
48+
so you may not define subcomponents such as "Valves" at this level.
49+
Documentation at /docs/config/service.html
50+
-->
51+
<Service name="Catalina">
52+
53+
<!--The connectors can use a shared executor, you can define one or more named thread pools-->
54+
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
55+
maxThreads="150" minSpareThreads="25"/>
56+
57+
58+
<!-- A "Connector" represents an endpoint by which requests are received
59+
and responses are returned. Documentation at :
60+
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
61+
Java AJP Connector: /docs/config/ajp.html
62+
APR (HTTP/AJP) Connector: /docs/apr.html
63+
Define a non-SSL HTTP/1.1 Connector on port 8080
64+
-->
65+
<!--
66+
<Connector port="8080" protocol="HTTP/1.1"
67+
connectionTimeout="20000"
68+
redirectPort="8443" />
69+
-->
70+
<!-- A "Connector" using the shared thread pool-->
71+
<Connector executor="tomcatThreadPool" URIEncoding="UTF-8"
72+
port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"
73+
connectionTimeout="20000" disableUploadTimeout="true"
74+
acceptCount="150" enableLookups="false" maxThreads="150"
75+
maxHttpHeaderSize="8192" redirectPort="8443" />
76+
77+
78+
<!-- Define a SSL HTTP/1.1 Connector on port 8443
79+
This connector uses the JSSE configuration, when using APR, the
80+
connector should be using the OpenSSL style configuration
81+
described in the APR documentation -->
82+
<!--
83+
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
84+
maxThreads="150" scheme="https" secure="true"
85+
clientAuth="false" sslProtocol="TLS"
86+
keystoreType="PKCS12"
87+
keystoreFile="conf\cloud-localhost.pk12"
88+
keystorePass="password"
89+
/>
90+
-->
91+
92+
<!-- Define an AJP 1.3 Connector on port 20400 -->
93+
<Connector port="20400" protocol="AJP/1.3" redirectPort="8443" />
94+
95+
96+
<!-- An Engine represents the entry point (within Catalina) that processes
97+
every request. The Engine implementation for Tomcat stand alone
98+
analyzes the HTTP headers included with the request, and passes them
99+
on to the appropriate Host (virtual host).
100+
Documentation at /docs/config/engine.html -->
101+
102+
<!-- You should set jvmRoute to support load-balancing via AJP ie :
103+
<Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
104+
-->
105+
<Engine name="Catalina" defaultHost="localhost">
106+
107+
<!--For clustering, please take a look at documentation at:
108+
/docs/cluster-howto.html (simple how to)
109+
/docs/config/cluster.html (reference documentation) -->
110+
<!--
111+
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
112+
-->
113+
114+
<!-- The request dumper valve dumps useful debugging information about
115+
the request and response data received and sent by Tomcat.
116+
Documentation at: /docs/config/valve.html -->
117+
<!--
118+
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
119+
-->
120+
121+
<!-- This Realm uses the UserDatabase configured in the global JNDI
122+
resources under the key "UserDatabase". Any edits
123+
that are performed against this UserDatabase are immediately
124+
available for use by the Realm. -->
125+
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
126+
resourceName="UserDatabase"/>
127+
128+
<!-- Define the default virtual host
129+
Note: XML Schema validation will not work with Xerces 2.2.
130+
-->
131+
<Host name="localhost" appBase="webapps"
132+
unpackWARs="true" autoDeploy="true"
133+
xmlValidation="false" xmlNamespaceAware="false">
134+
135+
<!-- SingleSignOn valve, share authentication between web applications
136+
Documentation at: /docs/config/valve.html -->
137+
<!--
138+
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
139+
-->
140+
141+
<!-- Access log processes all example.
142+
Documentation at: /docs/config/valve.html -->
143+
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
144+
prefix="access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
145+
146+
</Host>
147+
</Engine>
148+
</Service>
149+
150+
<Service name="Catalina7080">
151+
152+
<!--The connectors can use a shared executor, you can define one or more named thread pools-->
153+
154+
<Executor name="tomcatThreadPool-internal" namePrefix="catalina-exec-int-"
155+
maxThreads="150" minSpareThreads="25"/>
156+
157+
<Connector executor="tomcatThreadPool-internal" URIEncoding="UTF-8"
158+
port="7080" protocol="org.apache.coyote.http11.Http11NioProtocol"
159+
connectionTimeout="20000" disableUploadTimeout="true"
160+
acceptCount="150" enableLookups="false" maxThreads="150"
161+
maxHttpHeaderSize="8192" redirectPort="8443" />
162+
163+
<!-- Define a SSL HTTP/1.1 Connector on port 8443
164+
This connector uses the JSSE configuration, when using APR, the
165+
connector should be using the OpenSSL style configuration
166+
described in the APR documentation -->
167+
<!--
168+
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
169+
maxThreads="150" scheme="https" secure="true"
170+
clientAuth="false" sslProtocol="TLS"
171+
keystoreType="PKCS12"
172+
keystoreFile="conf\cloud-localhost.pk12"
173+
keystorePass="password"
174+
/>
175+
-->
176+
177+
<!-- Define an AJP 1.3 Connector on port 20400 -->
178+
179+
180+
<!-- An Engine represents the entry point (within Catalina) that processes
181+
every request. The Engine implementation for Tomcat stand alone
182+
analyzes the HTTP headers included with the request, and passes them
183+
on to the appropriate Host (virtual host).
184+
Documentation at /docs/config/engine.html -->
185+
186+
<Engine name="Catalina7080" defaultHost="localhost">
187+
188+
<!--For clustering, please take a look at documentation at:
189+
/docs/cluster-howto.html (simple how to)
190+
/docs/config/cluster.html (reference documentation) -->
191+
<!--
192+
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
193+
-->
194+
195+
<!-- The request dumper valve dumps useful debugging information about
196+
the request and response data received and sent by Tomcat.
197+
Documentation at: /docs/config/valve.html -->
198+
<!--
199+
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
200+
-->
201+
202+
<!-- This Realm uses the UserDatabase configured in the global JNDI
203+
resources under the key "UserDatabase". Any edits
204+
that are performed against this UserDatabase are immediately
205+
available for use by the Realm. -->
206+
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
207+
resourceName="UserDatabase"/>
208+
209+
<!-- Define the default virtual host
210+
Note: XML Schema validation will not work with Xerces 2.2.
211+
-->
212+
<Host name="localhost" appBase="webapps7080"
213+
unpackWARs="true" autoDeploy="true"
214+
xmlValidation="false" xmlNamespaceAware="false">
215+
216+
<!-- SingleSignOn valve, share authentication between web applications
217+
Documentation at: /docs/config/valve.html -->
218+
<!--
219+
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
220+
-->
221+
222+
<!-- Access log processes all example.
223+
Documentation at: /docs/config/valve.html -->
224+
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
225+
prefix="access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
226+
227+
</Host>
228+
</Engine>
229+
</Service>
230+
231+
</Server>

0 commit comments

Comments
 (0)