- PR -

eclipseでweb.xmlを開いてワークベンチを立ち上げると。。。

1
投稿者投稿内容
Masumi
会議室デビュー日: 2006/10/12
投稿数: 11
投稿日時: 2006-12-10 00:18
OS:fedora6
eclipse:eclipse3.2
java:1.5.0.09

こんばんわ
eclipseでjspの勉強をしています。
eclipseにてプロジェクト内のWEB-INFフォルダの下に
web.xmlを作成してそのファイルを開いたままワークベンチを閉じます。
で次にeclipseを立ち上げたときに以下のエラーがgnomeの端末に残っています。
スキーマが見付からないらしいエラーが出てるのですが、
インターネットにはつながっています。(この投稿もLINUXよりです。)

[Warning] :115:47: schema_reference.4: Failed to read schema document 'j2ee_1_4.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
[Warning] :116:46: schema_reference.4: Failed to read schema document 'jsp_2_0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
[Error] :1117:47: src-resolve: Cannot resolve the name 'j2ee:descriptionGroup' to a(n) 'group' component.
[Error] :1160:55: src-resolve: Cannot resolve the name 'j2ee:jndiEnvironmentRefsGroup' to a(n) 'group' component.
[Error] :351:44: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :376:43: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :415:59: src-resolve: Cannot resolve the name 'j2ee:xsdPositiveIntegerType' to a(n) 'type definition' component.
[Error] :822:43: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :530:54: src-ct.2.1: Complex Type Definition Representation Error for type 'filter-nameType'. When <simpleContent> is used, the base type must be a complexType whose content type is simple, or, only if restriction is specified, a complex type with mixed content and emptiable particle, or, only if extension is specified, a simple type. 'nonEmptyStringType' satisfies none of these conditions.
[Error] :553:47: src-resolve: Cannot resolve the name 'j2ee:descriptionGroup' to a(n) 'group' component.
[Error] :647:43: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :806:43: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :898:54: src-ct.2.1: Complex Type Definition Representation Error for type 'servlet-nameType'. When <simpleContent> is used, the base type must be a complexType whose content type is simple, or, only if restriction is specified, a complex type with mixed content and emptiable particle, or, only if extension is specified, a simple type. 'nonEmptyStringType' satisfies none of these conditions.
[Error] :920:47: src-resolve: Cannot resolve the name 'j2ee:descriptionGroup' to a(n) 'group' component.
[Error] :1042:43: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :1089:43: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :1119:29: src-resolve: Cannot resolve the name 'j2ee:emptyType' to a(n) 'type definition' component.
[Error] :1121:34: src-resolve: Cannot resolve the name 'j2ee:param-valueType' to a(n) 'type definition' component.
[Error] :1139:32: src-resolve: Cannot resolve the name 'j2ee:listenerType' to a(n) 'type definition' component.
[Error] :1153:34: src-resolve: Cannot resolve the name 'j2ee:jsp-configType' to a(n) 'type definition' component.
[Error] :1159:37: src-resolve: Cannot resolve the name 'j2ee:security-roleType' to a(n) 'type definition' component.
[Error] :1162:43: src-resolve: Cannot resolve the name 'j2ee:message-destinationType' to a(n) 'type definition' component.
[Error] :323:43: src-resolve: Cannot resolve the name 'j2ee:descriptionType' to a(n) 'type definition' component.
[Error] :326:43: src-resolve: Cannot resolve the name 'j2ee:role-nameType' to a(n) 'type definition' component.
[Error] :443:46: src-resolve: Cannot resolve the name 'j2ee:fully-qualified-classType' to a(n) 'type definition' component.
[Error] :502:37: src-resolve: Cannot resolve the name 'j2ee:url-patternType' to a(n) 'type definition' component.
[Error] :557:44: src-resolve: Cannot resolve the name 'j2ee:fully-qualified-classType' to a(n) 'type definition' component.
[Error] :569:42: src-resolve: Cannot resolve the name 'j2ee:param-valueType' to a(n) 'type definition' component.
[Error] :740:39: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :782:26: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :847:29: src-resolve: Cannot resolve the name 'j2ee:display-nameType' to a(n) 'type definition' component.
[Error] :879:35: src-resolve: Cannot resolve the name 'j2ee:url-patternType' to a(n) 'type definition' component.
[Error] :925:46: src-resolve: Cannot resolve the name 'j2ee:fully-qualified-classType' to a(n) 'type definition' component.
[Error] :937:34: src-resolve: Cannot resolve the name 'j2ee:jsp-fileType' to a(n) 'type definition' component.
[Error] :943:43: src-resolve: Cannot resolve the name 'j2ee:param-valueType' to a(n) 'type definition' component.
[Error] :946:20: src-resolve: Cannot resolve the name 'j2ee:xsdIntegerType' to a(n) 'type definition' component.
[Error] :972:21: src-resolve: Cannot resolve the name 'j2ee:run-asType' to a(n) 'type definition' component.
[Error] :975:43: src-resolve: Cannot resolve the name 'j2ee:security-role-refType' to a(n) 'type definition' component.
[Error] :997:20: src-resolve: Cannot resolve the name 'j2ee:xsdIntegerType' to a(n) 'type definition' component.
[Error] :1069:29: src-resolve: Cannot resolve the name 'j2ee:descriptionType' to a(n) 'type definition' component.
[Error] :1192:25: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :1205:29: src-resolve: Cannot resolve the name 'j2ee:descriptionType' to a(n) 'type definition' component.
[Error] :1208:29: src-resolve: Cannot resolve the name 'j2ee:url-patternType' to a(n) 'type definition' component.
[Warning] :115:47: schema_reference.4: Failed to read schema document 'j2ee_1_4.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
[Warning] :116:46: schema_reference.4: Failed to read schema document 'jsp_2_0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
[Error] :1117:47: src-resolve: Cannot resolve the name 'j2ee:descriptionGroup' to a(n) 'group' component.
[Error] :1160:55: src-resolve: Cannot resolve the name 'j2ee:jndiEnvironmentRefsGroup' to a(n) 'group' component.
[Error] :351:44: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :376:43: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :415:59: src-resolve: Cannot resolve the name 'j2ee:xsdPositiveIntegerType' to a(n) 'type definition' component.
[Error] :822:43: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :530:54: src-ct.2.1: Complex Type Definition Representation Error for type 'filter-nameType'. When <simpleContent> is used, the base type must be a complexType whose content type is simple, or, only if restriction is specified, a complex type with mixed content and emptiable particle, or, only if extension is specified, a simple type. 'nonEmptyStringType' satisfies none of these conditions.
[Error] :553:47: src-resolve: Cannot resolve the name 'j2ee:descriptionGroup' to a(n) 'group' component.
[Error] :647:43: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :806:43: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :898:54: src-ct.2.1: Complex Type Definition Representation Error for type 'servlet-nameType'. When <simpleContent> is used, the base type must be a complexType whose content type is simple, or, only if restriction is specified, a complex type with mixed content and emptiable particle, or, only if extension is specified, a simple type. 'nonEmptyStringType' satisfies none of these conditions.
[Error] :920:47: src-resolve: Cannot resolve the name 'j2ee:descriptionGroup' to a(n) 'group' component.
[Error] :1042:43: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :1089:43: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :1119:29: src-resolve: Cannot resolve the name 'j2ee:emptyType' to a(n) 'type definition' component.
[Error] :1121:34: src-resolve: Cannot resolve the name 'j2ee:param-valueType' to a(n) 'type definition' component.
[Error] :1139:32: src-resolve: Cannot resolve the name 'j2ee:listenerType' to a(n) 'type definition' component.
[Error] :1153:34: src-resolve: Cannot resolve the name 'j2ee:jsp-configType' to a(n) 'type definition' component.
[Error] :1159:37: src-resolve: Cannot resolve the name 'j2ee:security-roleType' to a(n) 'type definition' component.
[Error] :1162:43: src-resolve: Cannot resolve the name 'j2ee:message-destinationType' to a(n) 'type definition' component.
[Error] :323:43: src-resolve: Cannot resolve the name 'j2ee:descriptionType' to a(n) 'type definition' component.
[Error] :326:43: src-resolve: Cannot resolve the name 'j2ee:role-nameType' to a(n) 'type definition' component.
[Error] :443:46: src-resolve: Cannot resolve the name 'j2ee:fully-qualified-classType' to a(n) 'type definition' component.
[Error] :502:37: src-resolve: Cannot resolve the name 'j2ee:url-patternType' to a(n) 'type definition' component.
[Error] :557:44: src-resolve: Cannot resolve the name 'j2ee:fully-qualified-classType' to a(n) 'type definition' component.
[Error] :569:42: src-resolve: Cannot resolve the name 'j2ee:param-valueType' to a(n) 'type definition' component.
[Error] :740:39: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :782:26: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :847:29: src-resolve: Cannot resolve the name 'j2ee:display-nameType' to a(n) 'type definition' component.
[Error] :879:35: src-resolve: Cannot resolve the name 'j2ee:url-patternType' to a(n) 'type definition' component.
[Error] :925:46: src-resolve: Cannot resolve the name 'j2ee:fully-qualified-classType' to a(n) 'type definition' component.
[Error] :937:34: src-resolve: Cannot resolve the name 'j2ee:jsp-fileType' to a(n) 'type definition' component.
[Error] :943:43: src-resolve: Cannot resolve the name 'j2ee:param-valueType' to a(n) 'type definition' component.
[Error] :946:20: src-resolve: Cannot resolve the name 'j2ee:xsdIntegerType' to a(n) 'type definition' component.
[Error] :972:21: src-resolve: Cannot resolve the name 'j2ee:run-asType' to a(n) 'type definition' component.
[Error] :975:43: src-resolve: Cannot resolve the name 'j2ee:security-role-refType' to a(n) 'type definition' component.
[Error] :997:20: src-resolve: Cannot resolve the name 'j2ee:xsdIntegerType' to a(n) 'type definition' component.
[Error] :1069:29: src-resolve: Cannot resolve the name 'j2ee:descriptionType' to a(n) 'type definition' component.
[Error] :1192:25: src-resolve: Cannot resolve the name 'j2ee:string' to a(n) 'type definition' component.
[Error] :1205:29: src-resolve: Cannot resolve the name 'j2ee:descriptionType' to a(n) 'type definition' component.
[Error] :1208:29: src-resolve: Cannot resolve the name 'j2ee:url-patternType' to a(n) 'type definition' component.

/////////////////////////
ps web.xmlの内容も投稿させていただきます。

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd"
version="2.4">
</web-app>

よろしくお願いします。<o>
99ri
大ベテラン
会議室デビュー日: 2006/09/09
投稿数: 129
投稿日時: 2006-12-13 06:15
xsi:schemaLocation="名前空間 名前空間で使用するスキーマ定義ファイル"
なので
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
とすべきでは?
または
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
Masumi
会議室デビュー日: 2006/10/12
投稿数: 11
投稿日時: 2006-12-16 21:55
ありがとうございます。
教えていただいたとおりにやってみたのですが、
だめです。。。。
なのに、JSPもサーブレットもちゃんと動いています。
????
99ri
大ベテラン
会議室デビュー日: 2006/09/09
投稿数: 129
投稿日時: 2006-12-19 05:58
JSPもサーブレットもちゃんと動いているとのことですが
eclipseからTomcat等のJSP実行環境が起動できる状態にある
ということでしょうか?

上記環境にあるのにeclipse起動時にエラーが出力される
ということでしょうか?
1

スキルアップ/キャリアアップ(JOB@IT)