質問編集履歴
1
あああああああああああああああああああああああああああああああああああああああああああああああ
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
|
1
|
+
あああああああああああああああああああああああああああああああああああああああああああああああ
|
body
CHANGED
@@ -1,68 +1,1 @@
|
|
1
|
-
|
2
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
3
|
-
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:web="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd http://java.sun.com/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee" id="WebApp_ID" version="2.5">
|
4
|
-
<display-name>SampleServlet</display-name>
|
5
|
-
<welcome-file-list>
|
6
|
-
<welcome-file>index.html</welcome-file>
|
7
|
-
<welcome-file>index.htm</welcome-file>
|
8
|
-
<welcome-file>index.jsp</welcome-file>
|
9
|
-
<welcome-file>default.html</welcome-file>
|
10
|
-
<welcome-file>default.htm</welcome-file>
|
11
|
-
<welcome-file>default.jsp</welcome-file>
|
12
|
-
</welcome-file-list>
|
13
|
-
<servlet>
|
14
|
-
<description></description>
|
15
|
-
<display-name>HelloServlet</display-name>
|
16
|
-
<servlet-name>HelloServlet</servlet-name>
|
17
|
-
<servlet-class>Sample.HelloServlet</servlet-class>
|
18
|
-
</servlet>
|
19
|
-
<servlet-mapping>
|
20
|
-
<servlet-name>HelloServlet</servlet-name>
|
21
|
-
<url-pattern>/HelloServlet</url-pattern>
|
22
|
-
</servlet-mapping>
|
23
|
-
</web-app>
|
24
|
-
```
|
25
|
-
### 前提・実現したいこと
|
26
|
-
xmlファイルでエラーが出ているので、それを解消したい。
|
27
|
-
|
28
|
-
### 発生している問題・エラーメッセージ
|
29
|
-
|
30
|
-
```
|
31
|
-
この行で見つかった複数の注釈:
|
32
|
-
- cvc-attribute.3: The value '2.5' of attribute 'version' on element 'web-app' is not valid with respect to its type, 'web-app-
|
33
|
-
versionType'.
|
34
|
-
- cvc-enumeration-valid: 値 '2.5' は列挙型 '[2.4]' に関して facet-valid (ファセット有効) でありません。It must be a value from the
|
35
|
-
enumeration.
|
36
|
-
- Value '2.5' is not in the enumeration list. It must be one of the following: - 2.4 Code:
|
37
|
-
```
|
38
|
-
|
39
|
-
### 該当のソースコード
|
40
|
-
|
41
|
-
```Java
|
42
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
43
|
-
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:web="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd http://java.sun.com/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee" id="WebApp_ID" version="2.5">
|
44
|
-
<display-name>SampleServlet</display-name>
|
45
|
-
<welcome-file-list>
|
46
|
-
<welcome-file>index.html</welcome-file>
|
47
|
-
<welcome-file>index.htm</welcome-file>
|
48
|
-
<welcome-file>index.jsp</welcome-file>
|
49
|
-
<welcome-file>default.html</welcome-file>
|
50
|
-
<welcome-file>default.htm</welcome-file>
|
51
|
-
<welcome-file>default.jsp</welcome-file>
|
52
|
-
</welcome-file-list>
|
53
|
-
<servlet>
|
54
|
-
<description></description>
|
55
|
-
<display-name>HelloServlet</display-name>
|
56
|
-
<servlet-name>HelloServlet</servlet-name>
|
57
|
-
<servlet-class>Sample.HelloServlet</servlet-class>
|
58
|
-
</servlet>
|
59
|
-
<servlet-mapping>
|
60
|
-
<servlet-name>HelloServlet</servlet-name>
|
61
|
-
<url-pattern>/HelloServlet</url-pattern>
|
62
|
-
</servlet-mapping>
|
63
|
-
</web-app>
|
64
|
-
```
|
65
|
-
|
66
|
-
### 試したこと
|
67
|
-
|
68
|
-
プロジェクトのクリーン及びリフレッシュをしましたが、特に解消できませんでした。
|
1
|
+
あああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ
|