回答編集履歴

4

質問者の回答に合わせてweb-app要素を修正

2018/04/19 05:44

投稿

Lulucom
Lulucom

スコア1899

test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  <?xml version="1.0" encoding="UTF-8"?>
14
14
 
15
- <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
15
+ <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
16
16
 
17
17
 
18
18
 

3

追記

2018/04/19 05:44

投稿

Lulucom
Lulucom

スコア1899

test CHANGED
@@ -23,3 +23,9 @@
23
23
  </web-app>
24
24
 
25
25
  ```
26
+
27
+
28
+
29
+ (追記)
30
+
31
+ Eclipseで、プロジェクトを作成するときや、後からweb.xmlを生成させる機能があったかと思いますので、それを利用されるのが良いかと思います。

2

等を追加

2018/04/19 05:03

投稿

Lulucom
Lulucom

スコア1899

test CHANGED
@@ -1,4 +1,4 @@
1
- xmlns属性が無いためではないでしょうか。
1
+ xmlns属性が無いためではないでしょうか。
2
2
 
3
3
  サーブレットのバージョンによって違うと思いますが、例えば以下のような記述でないといけない気がします。
4
4
 

1

サーブレットのバージョンによって違うということを追記

2018/04/19 04:50

投稿

Lulucom
Lulucom

スコア1899

test CHANGED
@@ -1,4 +1,6 @@
1
+ xmlns属性が無いためではないでしょうか。
2
+
1
- xmlns属性無いためではないでしょうか。以下のような記述でないといけない気がします。
3
+ サーブレットのバージョンによって違うと思います、例えば以下のような記述でないといけない気がします。
2
4
 
3
5
 
4
6