質問編集履歴
1
server.xmlのソースコード追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -249,7 +249,55 @@
|
|
249
249
|
</session-config>
|
250
250
|
</web-app>
|
251
251
|
```
|
252
|
+
```ここに言語を入力
|
253
|
+
server.xml
|
254
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
252
255
|
|
256
|
+
<Server port="8005" shutdown="SHUTDOWN">
|
257
|
+
<Listener className="org.apache.catalina.startup.VersionLoggerListener" />
|
258
|
+
<!--APR library loader. Documentation at /docs/apr.html -->
|
259
|
+
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
|
260
|
+
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
|
261
|
+
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
|
262
|
+
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
|
263
|
+
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
|
264
|
+
|
265
|
+
|
266
|
+
<GlobalNamingResources>
|
267
|
+
|
268
|
+
<Resource name="UserDatabase" auth="Container"
|
269
|
+
type="org.apache.catalina.UserDatabase"
|
270
|
+
description="User database that can be updated and saved"
|
271
|
+
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
|
272
|
+
pathname="conf/tomcat-users.xml" />
|
273
|
+
</GlobalNamingResources>
|
274
|
+
|
275
|
+
<Service name="Catalina">
|
276
|
+
|
277
|
+
<Connector port="8080" protocol="HTTP/1.1"
|
278
|
+
connectionTimeout="20000"
|
279
|
+
redirectPort="8443" />
|
280
|
+
|
281
|
+
<Engine name="Catalina" defaultHost="localhost">
|
282
|
+
|
283
|
+
<Realm className="org.apache.catalina.realm.LockOutRealm">
|
284
|
+
|
285
|
+
<Realm className="org.apache.catalina.realm.JDBCRealm" connectionName="(ユーザ名)" connectionPassword="(パスワード)" connectionURL="jdbc:mysql://localhost:3306/myrecipe_db" driverName="com.mysql.jdbc.Driver" roleNameCol="rolename" userCredCol="password" userNameCol="username" userRoleTable="auth_roles" userTable="auth_users">
|
286
|
+
<CredentialHandler algorithm="SHA-256" className="org.apache.catalina.realm.MessageDigestCredentialHandler"/>
|
287
|
+
</Realm>
|
288
|
+
</Realm>
|
289
|
+
|
290
|
+
<Host name="localhost" appBase="webapps"
|
291
|
+
unpackWARs="true" autoDeploy="true">
|
292
|
+
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
|
293
|
+
prefix="localhost_access_log" suffix=".txt"
|
294
|
+
pattern="%h %l %u %t "%r" %s %b" />
|
295
|
+
</Host>
|
296
|
+
</Engine>
|
297
|
+
</Service>
|
298
|
+
</Server>
|
299
|
+
```
|
300
|
+
|
253
301
|
### 試したこと
|
254
302
|
|
255
303
|
各jspを指定して実行(エラーなく遷移した)
|