- PR -

tomcatで致命的: Parse Error

1
投稿者投稿内容
Javaスターター
ベテラン
会議室デビュー日: 2004/06/14
投稿数: 67
投稿日時: 2004-08-01 21:56
eclipseでtomcatを起動したら、以下のようなエラー出ているのですが、
何が原因かわかりません。エラーは出ているのですが、servletプログラムは正常に動作しwebで表示できます。何のエラーなのかアドバイスいただけますでしょうか。気にしなくていいのでしょうか?
ご多忙中恐縮ですが、よろしくお願いいたします。

2004/08/01 21:39:19 org.apache.commons.digester.Digester error
致命的: Parse Error at line 20 column 11: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
org.xml.sax.SAXParseException: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
meltingpot
常連さん
会議室デビュー日: 2004/06/15
投稿数: 24
投稿日時: 2004-08-02 00:26
エラーからは追加したWebアプリケーションのweb.xmlの記述内容に誤りがあると思われます。
web.xmlの記述内容はそれ用のDTDやXML Schemaに定められているので見直してみて
下さい。
Kissinger
ぬし
会議室デビュー日: 2002/04/30
投稿数: 428
お住まい・勤務地: 愛知県
投稿日時: 2004-08-02 02:52
Javaスターターさん、こんにちは。

エラーメッセージに
引用:

The content of element type "web-app" must match 〜


と書かれているようなので、web-appの型が示されている
どれにも合致しないのでしょうね。

示されている行番号の箇所を確かめてみてはいかがでしょう?
1

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