質問編集履歴
1
削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,441 +1,3 @@
|
|
1
|
-
|
1
|
+
こちらの質問ですが、
|
2
2
|
|
3
|
-
webサーバ、apサーバ、dbサーバを構築中です。
|
4
|
-
|
5
|
-
webサーバにはapache、apサーバにはTomcat、dbサーバにはPostgreSQLをインストールしています。
|
6
|
-
|
7
|
-
先日、apサーバ側でJDBC設定(server.xmlの編集)を行ったところ、tomcatが停止できなくなってしまいました。
|
8
|
-
|
9
|
-
起動はできるのですが、netstatを打っても何も出てこないので、実際は動いてないのではないかと思います。
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
3
|
+
急ぎ削除したいため編集しました。
|
14
|
-
|
15
|
-
初めての投稿でなにぶん慣れておりませんので、不足している情報などあればご指摘ください。
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
### 発生している問題・エラーメッセージ
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
```
|
24
|
-
|
25
|
-
#./shutdown.sh
|
26
|
-
|
27
|
-
Using CATALINA_BASE: /opt/apache-tomcat/apache-tomcat-7.0.94
|
28
|
-
|
29
|
-
Using CATALINA_HOME: /opt/apache-tomcat/apache-tomcat-7.0.94
|
30
|
-
|
31
|
-
Using CATALINA_TMPDIR: /opt/apache-tomcat/apache-tomcat-7.0.94/temp
|
32
|
-
|
33
|
-
Using JRE_HOME: /usr/java/default
|
34
|
-
|
35
|
-
Using CLASSPATH: /opt/apache-tomcat/apache-tomcat-7.0.94/bin/bootstrap.jar:/opt/apache-tomcat/apache-tomcat-7.0.94/bin/tomcat-juli.jar
|
36
|
-
|
37
|
-
/opt/apache-tomcat/apache-tomcat-7.0.94/bin/catalina.sh: line 492: /usr/java/default/bin/java: No such file or directory
|
38
|
-
|
39
|
-
```
|
40
|
-
|
41
|
-
###Server.xml
|
42
|
-
|
43
|
-
```
|
44
|
-
|
45
|
-
<?xml version='1.0' encoding='utf-8'?>
|
46
|
-
|
47
|
-
<!--
|
48
|
-
|
49
|
-
Licensed to the Apache Software Foundation (ASF) under one or more
|
50
|
-
|
51
|
-
contributor license agreements. See the NOTICE file distributed with
|
52
|
-
|
53
|
-
this work for additional information regarding copyright ownership.
|
54
|
-
|
55
|
-
The ASF licenses this file to You under the Apache License, Version 2.0
|
56
|
-
|
57
|
-
(the "License"); you may not use this file except in compliance with
|
58
|
-
|
59
|
-
the License. You may obtain a copy of the License at
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
Unless required by applicable law or agreed to in writing, software
|
68
|
-
|
69
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
70
|
-
|
71
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
72
|
-
|
73
|
-
See the License for the specific language governing permissions and
|
74
|
-
|
75
|
-
limitations under the License.
|
76
|
-
|
77
|
-
-->
|
78
|
-
|
79
|
-
<!-- Note: A "Server" is not itself a "Container", so you may not
|
80
|
-
|
81
|
-
define subcomponents such as "Valves" at this level.
|
82
|
-
|
83
|
-
Documentation at /docs/config/server.html
|
84
|
-
|
85
|
-
-->
|
86
|
-
|
87
|
-
<Server port="8005" shutdown="SHUTDOWN">
|
88
|
-
|
89
|
-
<Listener className="org.apache.catalina.startup.VersionLoggerListener" />
|
90
|
-
|
91
|
-
<!-- Security listener. Documentation at /docs/config/listeners.html
|
92
|
-
|
93
|
-
<Listener className="org.apache.catalina.security.SecurityListener" />
|
94
|
-
|
95
|
-
-->
|
96
|
-
|
97
|
-
<!--APR library loader. Documentation at /docs/apr.html -->
|
98
|
-
|
99
|
-
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
|
100
|
-
|
101
|
-
<!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
|
102
|
-
|
103
|
-
<Listener className="org.apache.catalina.core.JasperListener" />
|
104
|
-
|
105
|
-
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
|
106
|
-
|
107
|
-
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
|
108
|
-
|
109
|
-
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
|
110
|
-
|
111
|
-
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
<!-- Global JNDI resources
|
116
|
-
|
117
|
-
Documentation at /docs/jndi-resources-howto.html
|
118
|
-
|
119
|
-
-->
|
120
|
-
|
121
|
-
<GlobalNamingResources>
|
122
|
-
|
123
|
-
<!-- Editable user database that can also be used by
|
124
|
-
|
125
|
-
UserDatabaseRealm to authenticate users
|
126
|
-
|
127
|
-
-->
|
128
|
-
|
129
|
-
<Resource name="UserDatabase" auth="Container"
|
130
|
-
|
131
|
-
type="org.apache.catalina.UserDatabase"
|
132
|
-
|
133
|
-
description="User database that can be updated and saved"
|
134
|
-
|
135
|
-
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
|
136
|
-
|
137
|
-
pathname="conf/tomcat-users.xml" />
|
138
|
-
|
139
|
-
</GlobalNamingResources>
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
<!-- A "Service" is a collection of one or more "Connectors" that share
|
144
|
-
|
145
|
-
a single "Container" Note: A "Service" is not itself a "Container",
|
146
|
-
|
147
|
-
so you may not define subcomponents such as "Valves" at this level.
|
148
|
-
|
149
|
-
Documentation at /docs/config/service.html
|
150
|
-
|
151
|
-
-->
|
152
|
-
|
153
|
-
<Service name="Catalina">
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
<!--The connectors can use a shared executor, you can define one or more named thread pools-->
|
158
|
-
|
159
|
-
<!--
|
160
|
-
|
161
|
-
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
|
162
|
-
|
163
|
-
maxThreads="150" minSpareThreads="4"/>
|
164
|
-
|
165
|
-
-->
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
<!-- A "Connector" represents an endpoint by which requests are received
|
172
|
-
|
173
|
-
and responses are returned. Documentation at :
|
174
|
-
|
175
|
-
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
|
176
|
-
|
177
|
-
Java AJP Connector: /docs/config/ajp.html
|
178
|
-
|
179
|
-
APR (HTTP/AJP) Connector: /docs/apr.html
|
180
|
-
|
181
|
-
Define a non-SSL HTTP/1.1 Connector on port 8080
|
182
|
-
|
183
|
-
-->
|
184
|
-
|
185
|
-
<!--
|
186
|
-
|
187
|
-
<Connector port="8080" protocol="HTTP/1.1"
|
188
|
-
|
189
|
-
connectionTimeout="20000"
|
190
|
-
|
191
|
-
redirectPort="8443" />
|
192
|
-
|
193
|
-
-->
|
194
|
-
|
195
|
-
<!-- A "Connector" using the shared thread pool-->
|
196
|
-
|
197
|
-
<!--
|
198
|
-
|
199
|
-
<Connector executor="tomcatThreadPool"
|
200
|
-
|
201
|
-
port="8080" protocol="HTTP/1.1"
|
202
|
-
|
203
|
-
connectionTimeout="20000"
|
204
|
-
|
205
|
-
redirectPort="8443" />
|
206
|
-
|
207
|
-
-->
|
208
|
-
|
209
|
-
<!-- Define a SSL HTTP/1.1 Connector on port 8443
|
210
|
-
|
211
|
-
This connector uses the BIO implementation that requires the JSSE
|
212
|
-
|
213
|
-
style configuration. When using the APR/native implementation, the
|
214
|
-
|
215
|
-
OpenSSL style configuration is required as described in the APR/native
|
216
|
-
|
217
|
-
documentation -->
|
218
|
-
|
219
|
-
<!--
|
220
|
-
|
221
|
-
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
|
222
|
-
|
223
|
-
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
|
224
|
-
|
225
|
-
clientAuth="false" sslProtocol="TLS" />
|
226
|
-
|
227
|
-
-->
|
228
|
-
|
229
|
-
<!-- Define an AJP 1.3 Connector on port 8009 -->
|
230
|
-
|
231
|
-
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
<!-- An Engine represents the entry point (within Catalina) that processes
|
236
|
-
|
237
|
-
every request. The Engine implementation for Tomcat stand alone
|
238
|
-
|
239
|
-
analyzes the HTTP headers included with the request, and passes them
|
240
|
-
|
241
|
-
on to the appropriate Host (virtual host).
|
242
|
-
|
243
|
-
Documentation at /docs/config/engine.html -->
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
<!-- You should set jvmRoute to support load-balancing via AJP ie :
|
248
|
-
|
249
|
-
<Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
|
250
|
-
|
251
|
-
-->
|
252
|
-
|
253
|
-
<Engine name="Catalina" defaultHost="localhost">
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
<!--For clustering, please take a look at documentation at:
|
258
|
-
|
259
|
-
/docs/cluster-howto.html (simple how to)
|
260
|
-
|
261
|
-
/docs/config/cluster.html (reference documentation) -->
|
262
|
-
|
263
|
-
<!--
|
264
|
-
|
265
|
-
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
|
266
|
-
|
267
|
-
-->
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
<!-- Use the LockOutRealm to prevent attempts to guess user passwords
|
272
|
-
|
273
|
-
via a brute-force attack -->
|
274
|
-
|
275
|
-
<Realm className="org.apache.catalina.realm.LockOutRealm">
|
276
|
-
|
277
|
-
<!-- This Realm uses the UserDatabase configured in the global JNDI
|
278
|
-
|
279
|
-
resources under the key "UserDatabase". Any edits
|
280
|
-
|
281
|
-
that are performed against this UserDatabase are immediately
|
282
|
-
|
283
|
-
available for use by the Realm. -->
|
284
|
-
|
285
|
-
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
|
286
|
-
|
287
|
-
resourceName="UserDatabase"/>
|
288
|
-
|
289
|
-
</Realm>
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
<Host name="localhost" appBase="webapps"
|
294
|
-
|
295
|
-
unpackWARs="true" autoDeploy="true">
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
<DefaultContext>
|
300
|
-
|
301
|
-
<Resource name="PostgreSQL_JDBC" auth="Container"
|
302
|
-
|
303
|
-
type="javax.sql.DataSource"/>
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
<ResourceParams name="PostgreSQL_JDBC">
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
<parameter>
|
312
|
-
|
313
|
-
<name>factory</name>
|
314
|
-
|
315
|
-
<value>
|
316
|
-
|
317
|
-
org.apache.commons.dbcp.BasicDataSourceFactory
|
318
|
-
|
319
|
-
</value>
|
320
|
-
|
321
|
-
</parameter>
|
322
|
-
|
323
|
-
<parameter>
|
324
|
-
|
325
|
-
<name>maxActive</name>
|
326
|
-
|
327
|
-
<value>20</value>
|
328
|
-
|
329
|
-
</parameter>
|
330
|
-
|
331
|
-
<parameter>
|
332
|
-
|
333
|
-
<name>maxIdle</name>
|
334
|
-
|
335
|
-
<value>30000</value>
|
336
|
-
|
337
|
-
</parameter>
|
338
|
-
|
339
|
-
<parameter>
|
340
|
-
|
341
|
-
<name>maxWait</name>
|
342
|
-
|
343
|
-
<value>100</value>
|
344
|
-
|
345
|
-
</parameter>
|
346
|
-
|
347
|
-
<parameter>
|
348
|
-
|
349
|
-
<name>username</name>
|
350
|
-
|
351
|
-
<value>test</value>
|
352
|
-
|
353
|
-
</parameter>
|
354
|
-
|
355
|
-
<parameter>
|
356
|
-
|
357
|
-
<name>password</name>
|
358
|
-
|
359
|
-
<value>Ganbaru123!!</value>
|
360
|
-
|
361
|
-
</parameter>
|
362
|
-
|
363
|
-
<parameter>
|
364
|
-
|
365
|
-
<name>driverClassName</name>
|
366
|
-
|
367
|
-
<value>org.postgresql.Driver</value>
|
368
|
-
|
369
|
-
</parameter>
|
370
|
-
|
371
|
-
<parameter>
|
372
|
-
|
373
|
-
<name>url</name>
|
374
|
-
|
375
|
-
<value>jdbc:postgresql://52.246.167.96:5432/sample</value>
|
376
|
-
|
377
|
-
</parameter>
|
378
|
-
|
379
|
-
</ResourceParams>
|
380
|
-
|
381
|
-
</DefaultContext>
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
<!-- SingleSignOn valve, share authentication between web applications
|
386
|
-
|
387
|
-
Documentation at: /docs/config/valve.html -->
|
388
|
-
|
389
|
-
<!--
|
390
|
-
|
391
|
-
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
|
392
|
-
|
393
|
-
-->
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
<!-- Access log processes all example.
|
398
|
-
|
399
|
-
Documentation at: /docs/config/valve.html
|
400
|
-
|
401
|
-
Note: The pattern used is equivalent to using pattern="common" -->
|
402
|
-
|
403
|
-
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
|
404
|
-
|
405
|
-
prefix="localhost_access_log." suffix=".txt"
|
406
|
-
|
407
|
-
pattern="%h %l %u %t "%r" %s %b" />
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
</Host>
|
412
|
-
|
413
|
-
</Engine>
|
414
|
-
|
415
|
-
</Service>
|
416
|
-
|
417
|
-
</Server>
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
```
|
422
|
-
|
423
|
-
### 試したこと
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
下記サイトを参考に、alternatives コマンドを使用した java バージョンの切り替えを実施
|
428
|
-
|
429
|
-
http://idease.info/?p=388
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
SELINUXを無効化
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
### 補足情報(FW/ツールのバージョンなど)
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
ここにより詳細な情報を記載してください。
|