質問するログイン新規登録

回答編集履歴

4

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

2018/04/19 05:44

投稿

Lulucom
Lulucom

スコア1904

answer CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  ```
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
- <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">
8
+ <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">
9
9
 
10
10
  ...省略...
11
11
 

3

追記

2018/04/19 05:44

投稿

Lulucom
Lulucom

スコア1904

answer CHANGED
@@ -10,4 +10,7 @@
10
10
  ...省略...
11
11
 
12
12
  </web-app>
13
- ```
13
+ ```
14
+
15
+ (追記)
16
+ Eclipseで、プロジェクトを作成するときや、後からweb.xmlを生成させる機能があったかと思いますので、それを利用されるのが良いかと思います。

2

等を追加

2018/04/19 05:03

投稿

Lulucom
Lulucom

スコア1904

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

1

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

2018/04/19 04:50

投稿

Lulucom
Lulucom

スコア1904

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