質問編集履歴
5
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -20,11 +20,15 @@
|
|
20
20
|
|user02 |password|
|
21
21
|
|user03 |password|
|
22
22
|
|
23
|
-
|
23
|
+
login.jspを実行するとログイン画面が表示されて、
|
24
|
-
userid:user01、password:passwordと打ち込
|
24
|
+
userid:user01、password:passwordと打ち込むと、
|
25
|
+
|
26
|
+
ウェブ:http://localhost:8080/10_todo_425_442/j_security_checkで、
|
27
|
+
「ログインエラーです。」という表示がでてログインできません。
|
25
28
|
すべての./jsp/*,./servlet/*のファイルが同じ症状です。
|
26
29
|
|
30
|
+
エラーを見てserver.xml,tomcat-uses.xml,Context.xml,web.xmlをいろいろ値を変えてみたのですが。
|
27
|
-
お願いいたします。
|
31
|
+
うまくいきません。よろしくお願いいたします。
|
28
32
|
|
29
33
|
|
30
34
|
|
@@ -83,8 +87,36 @@
|
|
83
87
|
|
84
88
|
|
85
89
|
```
|
90
|
+
```ここに言語を入力
|
91
|
+
//WebContent/META-INF/context.xml
|
92
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
86
93
|
|
94
|
+
<!DOCTYPE html>
|
95
|
+
|
96
|
+
<Context>
|
97
|
+
|
98
|
+
<Resource driverClassName="org.mariadb.jdbc.Driver"
|
99
|
+
|
100
|
+
auth="Container"
|
101
|
+
initialSize="1"
|
102
|
+
maxIdle="1"
|
103
|
+
maxWaitMillis="-1"
|
104
|
+
name="jdbc/MariaDB"
|
105
|
+
type="javax.sql.DataSource"
|
106
|
+
url="jdbc:mysql://127.0.0.1:3306/test"
|
107
|
+
username="root"
|
108
|
+
password="password"
|
109
|
+
defaultAutoCommit="false" />
|
110
|
+
<ResourceLink name="jdbc/MariaDB" //参考書:jdbc/authDBで結果は同じ表示です
|
111
|
+
|
112
|
+
global="jdbc/MariaDB" //参考書:jdbc/authDBで結果は同じ表示です
|
113
|
+
type="javax.sql.DataSource" />
|
114
|
+
|
115
|
+
</Context>
|
116
|
+
|
117
|
+
|
87
118
|
```
|
119
|
+
```
|
88
120
|
//WebContent/WEB-INF/web.xml
|
89
121
|
<?xml version="1.0" encoding="UTF-8"?>
|
90
122
|
<web-app
|
@@ -151,70 +183,7 @@
|
|
151
183
|
```
|
152
184
|
|
153
185
|
```
|
154
|
-
// SearchServlet.javaを実行して一覧画面を表示する。
|
155
186
|
|
156
|
-
package todo.web;
|
157
|
-
|
158
|
-
import java.io.IOException;
|
159
|
-
import java.util.List;
|
160
|
-
|
161
|
-
import javax.servlet.RequestDispatcher;
|
162
|
-
import javax.servlet.ServletException;
|
163
|
-
import javax.servlet.annotation.WebServlet;
|
164
|
-
import javax.servlet.http.HttpServlet;
|
165
|
-
import javax.servlet.http.HttpServletRequest;
|
166
|
-
import javax.servlet.http.HttpServletResponse;
|
167
|
-
|
168
|
-
import todo.dao.TodoDAO;
|
169
|
-
import todo.dto.Todo;
|
170
|
-
|
171
|
-
/**
|
172
|
-
* 検索機能。タスク一覧を取得し、一覧結果へフォワードする。
|
173
|
-
*/
|
174
|
-
@WebServlet( urlPatterns={"/todo/search"})
|
175
|
-
public class SearchServlet extends HttpServlet {
|
176
|
-
|
177
|
-
private static final long serialVersionUID = 1L;
|
178
|
-
|
179
|
-
protected void doGet(HttpServletRequest request,
|
180
|
-
HttpServletResponse response) throws ServletException, IOException {
|
181
|
-
|
182
|
-
// 認証情報の取得処理を追加↓
|
183
|
-
String userid = request.getRemoteUser();
|
184
|
-
request.setAttribute("LoginUserId", userid);
|
185
|
-
|
186
|
-
// adminロールを所有するユーザーであるかを判定する
|
187
|
-
boolean isAdmin = request.isUserInRole("admin");
|
188
|
-
request.setAttribute("isAdmin", isAdmin);
|
189
|
-
|
190
|
-
// DAOの取得
|
191
|
-
try(TodoDAO dao = new TodoDAO()) {
|
192
|
-
|
193
|
-
// タスクのリストを一覧で取得し、リクエスト属性へ格納する
|
194
|
-
List<Todo> list = dao.todoList();
|
195
|
-
|
196
|
-
request.setAttribute("todoList", list);
|
197
|
-
|
198
|
-
} catch (Exception e) {
|
199
|
-
throw new ServletException(e);
|
200
|
-
}
|
201
|
-
|
202
|
-
// 検索一覧を表示する
|
203
|
-
RequestDispatcher rd = request.getRequestDispatcher("/search.jsp");
|
204
|
-
|
205
|
-
rd.forward(request, response);
|
206
|
-
|
207
|
-
}
|
208
|
-
|
209
|
-
@Override
|
210
|
-
protected void doPost(HttpServletRequest request, HttpServletResponse response)
|
211
|
-
throws ServletException, IOException {
|
212
|
-
|
213
|
-
doGet(request, response);
|
214
|
-
|
215
|
-
}
|
216
|
-
}
|
217
|
-
|
218
187
|
```
|
219
188
|
//login.jsp
|
220
189
|
|
@@ -259,35 +228,35 @@
|
|
259
228
|
```
|
260
229
|
|
261
230
|
```
|
231
|
+
//Eclipseのコンソール抜粋
|
232
|
+
9 06, 2019 8:44:17 午前 org.apache.catalina.startup.Catalina start
|
262
|
-
|
233
|
+
情報: Server startup in 1415 ms
|
234
|
+
9 06, 2019 8:44:31 午前 org.apache.catalina.realm.DataSourceRealm open
|
235
|
+
重大: 認証を実行中の例外です
|
236
|
+
javax.naming.NameNotFoundException: 名前 [jdbc/MariaDB] はこのコンテキストにバインドされていません
|
237
|
+
at org.apache.naming.NamingContext.lookup(NamingContext.java:816)
|
238
|
+
at org.apache.naming.NamingContext.lookup(NamingContext.java:173)
|
239
|
+
at org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:393)
|
240
|
+
at org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:263)
|
241
|
+
at org.apache.catalina.realm.CombinedRealm.authenticate(CombinedRealm.java:195)
|
242
|
+
at org.apache.catalina.realm.LockOutRealm.authenticate(LockOutRealm.java:158)
|
243
|
+
at org.apache.catalina.authenticator.FormAuthenticator.doAuthenticate(FormAuthenticator.java:264)
|
244
|
+
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:575)
|
245
|
+
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
|
246
|
+
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
|
247
|
+
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660)
|
248
|
+
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
|
249
|
+
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
|
250
|
+
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798)
|
251
|
+
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
|
252
|
+
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:808)
|
253
|
+
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
|
254
|
+
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
|
255
|
+
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
|
256
|
+
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
|
257
|
+
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
|
258
|
+
at java.lang.Thread.run(Thread.java:748)
|
263
259
|
|
264
|
-
メッセージ /10_todo_testfile/j_security_check
|
265
260
|
|
266
|
-
説明 The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
|
267
261
|
|
268
|
-
コンソール:エラー画面
|
269
|
-
8 29, 2019 2:59:44 午後 org.apache.catalina.startup.VersionLoggerListener log
|
270
|
-
情報: Server version: Apache Tomcat/8.5.43
|
271
|
-
省略
|
272
|
-
at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:483)
|
273
|
-
... 23 more
|
274
|
-
|
275
|
-
8 29, 2019 2:59:44 午後 org.apache.catalina.core.NamingContextListener addResource
|
276
|
-
警告: naming.jmxRegistrationFailed
|
277
|
-
8 29, 2019 2:59:44 午後 org.apache.naming.NamingContext lookup
|
278
|
-
警告: 参照の解決中に予測しない例外が発生しました
|
279
|
-
java.sql.SQLException: Cannot load JDBC driver class 'org.mariadb.jdbc.Driver'
|
280
|
-
at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:489)
|
281
|
-
at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:599)
|
282
|
-
at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.getLogWriter(BasicDataSource.java:1125)
|
283
|
-
at org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory.createDataSource(BasicDataSourceFactory.java:554)
|
284
|
-
at org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory.getObjectInstance(BasicDataSourceFactory.java:236)
|
285
|
-
at org.apache.naming.factory.FactoryBase.getObjectInstance(FactoryBase.java:94)
|
286
|
-
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
|
287
|
-
at org.apache.naming.NamingContext.lookup(NamingContext.java:839)
|
288
|
-
at org.apache.naming.NamingContext.lookup(NamingContext.java:159)
|
289
|
-
at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:117)
|
290
|
-
at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
|
291
|
-
at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:34)
|
292
|
-
at
|
293
262
|
```
|
4
少し整頓しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
参考書 「はじめてのJSP&サーブレット」で勉強しています。
|
2
|
-
「chapter10:webアプリケーション開発実践」にきています。
|
3
|
-
ちなみに[10章の内容がほぼ同じサイト](http://i-b-c.jp/java/java-10/)があり、同じ著者の
|
4
|
-
ものと思われます。
|
5
|
-
|
6
2
|
windows10,Eclipse 4.6.3,MariaDB,HeidiSQLを使っています。
|
7
3
|
|
8
|
-
login.jspでform認証用に作成したログイン画面でログインできません。
|
4
|
+
login.jspでform認証用に作成したログイン画面でログインできません。
|
5
|
+
|
9
|
-
|
6
|
+
ここまででしたことは、認証レルム設定を行っterapadserver.xmlの変更(2か所),/WEB-INF/web.xmlの変更、login.jspの追加です。
|
10
7
|
MariaDB/testデータベースにログインするための、テーブルをauth_roles,auth_usersを作成しています。
|
11
8
|
|
12
9
|
|
@@ -24,17 +21,14 @@
|
|
24
21
|
|user03 |password|
|
25
22
|
|
26
23
|
SearchServlet.jspを実行するとログイン画面が表示されて、
|
27
|
-
userid:user01、password:
|
24
|
+
userid:user01、password:passwordと打ち込んでもログインできません。
|
28
25
|
すべての./jsp/*,./servlet/*のファイルが同じ症状です。
|
29
26
|
|
30
|
-
server.xmlの変更(2か所)が間違っているかもしれませんチェックしていただけませんか。
|
31
|
-
足りない情報があったらお知らせ下さい
|
32
|
-
|
33
27
|
お願いいたします。
|
34
28
|
|
35
29
|
|
36
|
-
変更内容は以下です。
|
37
30
|
|
31
|
+
|
38
32
|
```
|
39
33
|
// server.xml
|
40
34
|
<?xml version="1.0" encoding="UTF-8"?>
|
@@ -91,7 +85,7 @@
|
|
91
85
|
```
|
92
86
|
|
93
87
|
```
|
94
|
-
//web.xml
|
88
|
+
//WebContent/WEB-INF/web.xml
|
95
89
|
<?xml version="1.0" encoding="UTF-8"?>
|
96
90
|
<web-app
|
97
91
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
@@ -155,42 +149,8 @@
|
|
155
149
|
</web-app>
|
156
150
|
|
157
151
|
```
|
158
|
-
```ここに言語を入力
|
159
|
-
//META-INF/context.xml
|
160
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
161
152
|
|
162
|
-
<!DOCTYPE html>
|
163
|
-
|
164
|
-
<Context allowCasualMultipartParsing="true">
|
165
|
-
|
166
|
-
<Resource driverClassName="org.mariadb.jdbc.Driver"
|
167
|
-
|
168
|
-
auth="Container"
|
169
|
-
|
170
|
-
initialSize="1"
|
171
|
-
|
172
|
-
maxIdle="1"
|
173
|
-
|
174
|
-
maxWaitMillis="-1"
|
175
|
-
|
176
|
-
name="jdbc/MariaDB"
|
177
|
-
|
178
|
-
type="javax.sql.DataSource"
|
179
|
-
|
180
|
-
url="jdbc:mysql://127.0.0.1:3306/test"
|
181
|
-
|
182
|
-
username="root"
|
183
|
-
|
184
|
-
password="password"
|
185
|
-
|
186
|
-
defaultAutoCommit="false" />
|
187
|
-
|
188
|
-
<ResourceLink name="jdbc/authDB" global="jdbc/authDB" type="javax.sql.DataSource" />
|
189
|
-
|
190
|
-
</Context>
|
191
153
|
```
|
192
|
-
|
193
|
-
```
|
194
154
|
// SearchServlet.javaを実行して一覧画面を表示する。
|
195
155
|
|
196
156
|
package todo.web;
|
3
変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -301,9 +301,6 @@
|
|
301
301
|
```
|
302
302
|
HTTPステータス 404 - Not Found
|
303
303
|
|
304
|
-
|
305
|
-
Type ステータスレポート
|
306
|
-
|
307
304
|
メッセージ /10_todo_testfile/j_security_check
|
308
305
|
|
309
306
|
説明 The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
|
@@ -333,11 +330,4 @@
|
|
333
330
|
at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
|
334
331
|
at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:34)
|
335
332
|
at
|
336
|
-
```
|
333
|
+
```
|
337
|
-
### 試したこと
|
338
|
-
|
339
|
-
SearchServlet.javaを実行すると
|
340
|
-
ログイン画面が出て、ID,passwordを打ち込んでもログインできない
|
341
|
-
|
342
|
-
|
343
|
-
ここにより詳細な情報を記載してください。
|
2
実行するサーブレットの差し替え
title
CHANGED
File without changes
|
body
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
|user02 |password|
|
24
24
|
|user03 |password|
|
25
25
|
|
26
|
-
|
26
|
+
SearchServlet.jspを実行するとログイン画面が表示されて、
|
27
27
|
userid:user01、password:adminと打ち込んでもログインできません。
|
28
28
|
すべての./jsp/*,./servlet/*のファイルが同じ症状です。
|
29
29
|
|
@@ -85,24 +85,9 @@
|
|
85
85
|
</Realm>
|
86
86
|
|
87
87
|
-->
|
88
|
+
...中略...
|
88
89
|
|
89
|
-
|
90
|
-
|
91
|
-
<!-- SingleSignOn valve, share authentication between web applications
|
92
|
-
Documentation at: /docs/config/valve.html -->
|
93
|
-
<!--
|
94
|
-
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
|
95
|
-
-->
|
96
|
-
|
97
|
-
<!-- Access log processes all example.
|
98
|
-
Documentation at: /docs/config/valve.html
|
99
|
-
Note: The pattern used is equivalent to using pattern="common" -->
|
100
|
-
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t "%r" %s %b" prefix="localhost_access_log" suffix=".txt"/>
|
101
|
-
|
102
|
-
<Context docBase="10_todo_443_452" path="/10_todo_443_452" reloadable="false" source="org.eclipse.jst.jee.server:10_todo_443_452"/><Context docBase="10_todo_426_442" path="/10_todo_426_442" reloadable="false" source="org.eclipse.jst.jee.server:10_todo_426_442"/><Context docBase="10_todo-367-389" path="/10_todo-367-389" reloadable="false" source="org.eclipse.jst.jee.server:10_todo-367-389"/><Context docBase="10_todo-390_399" path="/10_todo-390_399" reloadable="false" source="org.eclipse.jst.jee.server:10_todo-390_399"/><Context docBase="10_todo_416_424" path="/10_todo_416_424" reloadable="false" source="org.eclipse.jst.jee.server:10_todo_416_424"/><Context docBase="10_todo_400_405" path="/10_todo_400_405" reloadable="false" source="org.eclipse.jst.jee.server:10_todo_400_405"/><Context docBase="10_tod0_411_415" path="/10_tod0_411_415" reloadable="false" source="org.eclipse.jst.jee.server:10_tod0_411_415"/><Context docBase="10_tod0_406_410" path="/10_tod0_406_410" reloadable="false" source="org.eclipse.jst.jee.server:10_tod0_406_410"/><Context docBase="10_todo" path="/10_todo" reloadable="false" source="org.eclipse.jst.jee.server:10_todo"/><Context docBase="10_todo_testfile" path="/10_todo_testfile" reloadable="false" source="org.eclipse.jst.jee.server:10_todo_testfile"/></Host>
|
103
|
-
</Engine>
|
104
|
-
</Service>
|
105
|
-
</Server>
|
90
|
+
|
106
91
|
```
|
107
92
|
|
108
93
|
```
|
@@ -206,59 +191,70 @@
|
|
206
191
|
```
|
207
192
|
|
208
193
|
```
|
209
|
-
//
|
194
|
+
// SearchServlet.javaを実行して一覧画面を表示する。
|
210
|
-
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
211
|
-
pageEncoding="UTF-8"%>
|
212
195
|
|
213
|
-
|
196
|
+
package todo.web;
|
214
197
|
|
215
|
-
<html>
|
216
|
-
<head>
|
217
|
-
|
198
|
+
import java.io.IOException;
|
218
|
-
|
199
|
+
import java.util.List;
|
219
200
|
|
201
|
+
import javax.servlet.RequestDispatcher;
|
202
|
+
import javax.servlet.ServletException;
|
203
|
+
import javax.servlet.annotation.WebServlet;
|
204
|
+
import javax.servlet.http.HttpServlet;
|
220
|
-
|
205
|
+
import javax.servlet.http.HttpServletRequest;
|
206
|
+
import javax.servlet.http.HttpServletResponse;
|
221
207
|
|
222
|
-
<style type="text/css">
|
223
|
-
body {
|
224
|
-
|
208
|
+
import todo.dao.TodoDAO;
|
225
|
-
}
|
226
|
-
|
209
|
+
import todo.dto.Todo;
|
227
210
|
|
211
|
+
/**
|
212
|
+
* 検索機能。タスク一覧を取得し、一覧結果へフォワードする。
|
213
|
+
*/
|
228
|
-
|
214
|
+
@WebServlet( urlPatterns={"/todo/search"})
|
215
|
+
public class SearchServlet extends HttpServlet {
|
229
216
|
|
230
|
-
|
217
|
+
private static final long serialVersionUID = 1L;
|
231
218
|
|
232
|
-
|
219
|
+
protected void doGet(HttpServletRequest request,
|
233
|
-
|
220
|
+
HttpServletResponse response) throws ServletException, IOException {
|
234
221
|
|
235
|
-
|
222
|
+
// 認証情報の取得処理を追加↓
|
223
|
+
String userid = request.getRemoteUser();
|
236
|
-
|
224
|
+
request.setAttribute("LoginUserId", userid);
|
237
225
|
|
226
|
+
// adminロールを所有するユーザーであるかを判定する
|
227
|
+
boolean isAdmin = request.isUserInRole("admin");
|
238
|
-
|
228
|
+
request.setAttribute("isAdmin", isAdmin);
|
239
229
|
|
230
|
+
// DAOの取得
|
240
|
-
|
231
|
+
try(TodoDAO dao = new TodoDAO()) {
|
241
232
|
|
242
|
-
|
233
|
+
// タスクのリストを一覧で取得し、リクエスト属性へ格納する
|
243
|
-
<
|
234
|
+
List<Todo> list = dao.todoList();
|
244
235
|
|
245
|
-
|
236
|
+
request.setAttribute("todoList", list);
|
246
237
|
|
238
|
+
} catch (Exception e) {
|
247
|
-
|
239
|
+
throw new ServletException(e);
|
248
|
-
|
240
|
+
}
|
249
241
|
|
250
|
-
|
242
|
+
// 検索一覧を表示する
|
243
|
+
RequestDispatcher rd = request.getRequestDispatcher("/search.jsp");
|
251
244
|
|
252
|
-
|
245
|
+
rd.forward(request, response);
|
253
|
-
ここはコンテンツ本体を出力します。
|
254
|
-
</div>
|
255
246
|
|
256
|
-
</body>
|
257
|
-
</html>
|
258
|
-
|
247
|
+
}
|
259
248
|
|
249
|
+
@Override
|
250
|
+
protected void doPost(HttpServletRequest request, HttpServletResponse response)
|
251
|
+
throws ServletException, IOException {
|
260
252
|
|
253
|
+
doGet(request, response);
|
261
254
|
|
255
|
+
}
|
256
|
+
}
|
257
|
+
|
262
258
|
```
|
263
259
|
//login.jsp
|
264
260
|
|
@@ -312,10 +308,36 @@
|
|
312
308
|
|
313
309
|
説明 The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
|
314
310
|
|
311
|
+
コンソール:エラー画面
|
312
|
+
8 29, 2019 2:59:44 午後 org.apache.catalina.startup.VersionLoggerListener log
|
313
|
+
情報: Server version: Apache Tomcat/8.5.43
|
314
|
+
省略
|
315
|
+
at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:483)
|
316
|
+
... 23 more
|
317
|
+
|
318
|
+
8 29, 2019 2:59:44 午後 org.apache.catalina.core.NamingContextListener addResource
|
319
|
+
警告: naming.jmxRegistrationFailed
|
320
|
+
8 29, 2019 2:59:44 午後 org.apache.naming.NamingContext lookup
|
321
|
+
警告: 参照の解決中に予測しない例外が発生しました
|
322
|
+
java.sql.SQLException: Cannot load JDBC driver class 'org.mariadb.jdbc.Driver'
|
323
|
+
at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:489)
|
324
|
+
at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:599)
|
325
|
+
at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.getLogWriter(BasicDataSource.java:1125)
|
326
|
+
at org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory.createDataSource(BasicDataSourceFactory.java:554)
|
327
|
+
at org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory.getObjectInstance(BasicDataSourceFactory.java:236)
|
328
|
+
at org.apache.naming.factory.FactoryBase.getObjectInstance(FactoryBase.java:94)
|
329
|
+
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
|
330
|
+
at org.apache.naming.NamingContext.lookup(NamingContext.java:839)
|
331
|
+
at org.apache.naming.NamingContext.lookup(NamingContext.java:159)
|
332
|
+
at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:117)
|
333
|
+
at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
|
334
|
+
at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:34)
|
335
|
+
at
|
315
336
|
```
|
316
337
|
### 試したこと
|
317
338
|
|
339
|
+
SearchServlet.javaを実行すると
|
318
|
-
|
340
|
+
ログイン画面が出て、ID,passwordを打ち込んでもログインできない
|
319
341
|
|
320
342
|
|
321
343
|
ここにより詳細な情報を記載してください。
|
1
追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -301,10 +301,21 @@
|
|
301
301
|
</body>
|
302
302
|
</html>
|
303
303
|
```
|
304
|
+
|
305
|
+
```
|
306
|
+
HTTPステータス 404 - Not Found
|
307
|
+
|
308
|
+
|
309
|
+
Type ステータスレポート
|
310
|
+
|
311
|
+
メッセージ /10_todo_testfile/j_security_check
|
312
|
+
|
313
|
+
説明 The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
|
314
|
+
|
315
|
+
```
|
304
316
|
### 試したこと
|
305
317
|
|
306
|
-
|
318
|
+
web.xmlを追加した部分を外すとログイン画面が出てそのあとID,password入力で上のエラーになります。
|
307
319
|
|
308
|
-
### 補足情報(FW/ツールのバージョンなど)
|
309
320
|
|
310
321
|
ここにより詳細な情報を記載してください。
|