質問編集履歴

1

文章変更

2020/03/31 05:06

投稿

kenken2525
kenken2525

スコア8

test CHANGED
File without changes
test CHANGED
@@ -9,3 +9,245 @@
9
9
  そのあと、ほかのプロジェクトで簡易的に作ったところ、遷移はできた。
10
10
 
11
11
  svnを使用したソースコード共有を行いたいのでどうにかならないだろうか?
12
+
13
+
14
+
15
+ ### 発生している問題・エラーメッセージ
16
+
17
+
18
+
19
+ ```
20
+
21
+ HTTPステータス 404 - Not Found
22
+
23
+ Type ステータスレポート
24
+
25
+
26
+
27
+ メッセージ /SunselcoR2/loginservlet
28
+
29
+
30
+
31
+ 説明 The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
32
+
33
+
34
+
35
+ Apache Tomcat/9.0.10
36
+
37
+ ```
38
+
39
+ ```
40
+
41
+ 情報: Server version: Apache Tomcat/9.0.10 [火 3月 31 13:57:07 JST 2020]
42
+
43
+ 情報: Server built: Jun 20 2018 17:32:21 UTC [火 3月 31 13:57:07 JST 2020]
44
+
45
+ 情報: Server number: 9.0.10.0 [火 3月 31 13:57:07 JST 2020]
46
+
47
+ 情報: OS Name: Windows 10 [火 3月 31 13:57:07 JST 2020]
48
+
49
+ 情報: OS Version: 10.0 [火 3月 31 13:57:07 JST 2020]
50
+
51
+ 情報: Architecture: amd64 [火 3月 31 13:57:07 JST 2020]
52
+
53
+ 情報: Java Home: C:\pleiades3\java\10 [火 3月 31 13:57:07 JST 2020]
54
+
55
+ 情報: JVM Version: 10.0.1+10 [火 3月 31 13:57:07 JST 2020]
56
+
57
+ 情報: JVM Vendor: "Oracle Corporation" [火 3月 31 13:57:07 JST 2020]
58
+
59
+ 情報: CATALINA_BASE: C:\pleiades3\bteam.metadata.plugins\org.eclipse.wst.server.core\tmp0 [火 3月 31 13:57:07 JST 2020]
60
+
61
+ 情報: CATALINA_HOME: C:\pleiades3\tomcat\9 [火 3月 31 13:57:07 JST 2020]
62
+
63
+ 情報: Command line argument: -Dcatalina.base=C:\pleiades3\bteam.metadata.plugins\org.eclipse.wst.server.core\tmp0 [火 3月 31 13:57:07 JST 2020]
64
+
65
+ 情報: Command line argument: -Dcatalina.home=C:\pleiades3\tomcat\9 [火 3月 31 13:57:07 JST 2020]
66
+
67
+ 情報: Command line argument: -Dwtp.deploy=C:\pleiades3\bteam.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps [火 3月 31 13:57:07 JST 2020]
68
+
69
+ 情報: Command line argument: -Dfile.encoding=UTF-8 [火 3月 31 13:57:07 JST 2020]
70
+
71
+ 情報: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\pleiades3\java\10\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/pleiades3/eclipse/jre/bin/../jre/bin/server;C:/pleiades3/eclipse/jre/bin/../jre/bin;C:/pleiades3/eclipse/jre/bin/../jre/lib/amd64;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\PostgreSQL\10\bin;C:\Program Files\Git\cmd;C:\Program Files\Java\jdk1.8.0_231\bin;C:\MySQL\MySQL Server 5.7\bin;C:\Program Files\MySQL\MySQL Server 5.7\bin;C:\Users\user\AppData\Local\Microsoft\WindowsApps;;C:\pleiades3\eclipse;;.] [火 3月 31 13:57:07 JST 2020]
72
+
73
+ 情報: Initializing ProtocolHandler ["http-nio-8080"] [火 3月 31 13:57:07 JST 2020]
74
+
75
+ 情報: Using a shared selector for servlet write/read [火 3月 31 13:57:08 JST 2020]
76
+
77
+ 情報: Initializing ProtocolHandler ["ajp-nio-8009"] [火 3月 31 13:57:08 JST 2020]
78
+
79
+ 情報: Using a shared selector for servlet write/read [火 3月 31 13:57:08 JST 2020]
80
+
81
+ 情報: Initialization processed in 1478 ms [火 3月 31 13:57:08 JST 2020]
82
+
83
+ 情報: サービス [Catalina] を起動します [火 3月 31 13:57:08 JST 2020]
84
+
85
+ 情報: Starting Servlet Engine: Apache Tomcat/9.0.10 [火 3月 31 13:57:08 JST 2020]
86
+
87
+ 情報: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. [火 3月 31 13:57:09 JST 2020]
88
+
89
+ 警告: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [173] milliseconds. [火 3月 31 13:57:09 JST 2020]
90
+
91
+ 情報: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. [火 3月 31 13:57:09 JST 2020]
92
+
93
+ 情報: Starting ProtocolHandler ["http-nio-8080"] [火 3月 31 13:57:09 JST 2020]
94
+
95
+ 情報: Starting ProtocolHandler ["ajp-nio-8009"] [火 3月 31 13:57:09 JST 2020]
96
+
97
+ 情報: Server startup in 1745 ms [火 3月 31 13:57:09 JST 2020]
98
+
99
+
100
+
101
+ ```
102
+
103
+ ### 該当のソースコード
104
+
105
+
106
+
107
+ ```jsp
108
+
109
+ <%@ page language="java" contentType="text/html; charset=UTF-8"
110
+
111
+ pageEncoding="UTF-8"%>
112
+
113
+ <!DOCTYPE html>
114
+
115
+ <html>
116
+
117
+ <head>
118
+
119
+ <meta charset="UTF-8">
120
+
121
+ <link rel="stylesheet" href="index.css" type="text/css">
122
+
123
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=10.0, user-scalable=yes">
124
+
125
+ <meta name="apple-mobile-web-app-capable" content="yes">
126
+
127
+ <link rel="apple-touch-icon" href="サン.png">
128
+
129
+ <title>TOP画面</title>
130
+
131
+ </head>
132
+
133
+
134
+
135
+ <body>
136
+
137
+ <!-- <p class="stitch">僕たちのライフ<br>~幸せなサンの見つけ方~</p> -->
138
+
139
+ <br>
140
+
141
+ <p><img src="僕たちの.png"></p>
142
+
143
+ <p><img src="幸.png"></p>
144
+
145
+ <p><img src="サ.jpg"></p>
146
+
147
+
148
+
149
+ <form action="/SunselcoR2/loginservlet" method="POST">
150
+
151
+ <input type="submit" class="btn" value="メニューへ">
152
+
153
+ </form>
154
+
155
+
156
+
157
+
158
+
159
+ </body>
160
+
161
+ </html>
162
+
163
+ ```
164
+
165
+ ```java
166
+
167
+ ackage servlet;
168
+
169
+
170
+
171
+ import java.io.IOException;
172
+
173
+
174
+
175
+ import javax.servlet.RequestDispatcher;
176
+
177
+ import javax.servlet.ServletException;
178
+
179
+ import javax.servlet.annotation.WebServlet;
180
+
181
+ import javax.servlet.http.HttpServlet;
182
+
183
+ import javax.servlet.http.HttpServletRequest;
184
+
185
+ import javax.servlet.http.HttpServletResponse;
186
+
187
+
188
+
189
+
190
+
191
+ @WebServlet("/loginservlet")
192
+
193
+ public class loginservlet extends HttpServlet {
194
+
195
+ private static final long serialVersionUID = 1L;
196
+
197
+
198
+
199
+
200
+
201
+ public loginservlet() {
202
+
203
+ super();
204
+
205
+ }
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
214
+
215
+ RequestDispatcher dis=request.getRequestDispatcher("/WEB-INF/jsp/loginPage.jsp");
216
+
217
+ dis.forward(request, response);
218
+
219
+ }
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
228
+
229
+ // TODO Auto-generated method stub
230
+
231
+ doGet(request, response);
232
+
233
+ }
234
+
235
+
236
+
237
+ }
238
+
239
+
240
+
241
+
242
+
243
+ ```
244
+
245
+
246
+
247
+
248
+
249
+ ### 補足情報(FW/ツールのバージョンなど)
250
+
251
+
252
+
253
+ ![ディレクトリ構造](11daa1c5c3af21b8befa3b9b50676560.png)