2017-02-02 7 views
0
<servlet-mapping> 
    <servlet-name>EDLControllerURI</servlet-name> 
    <url-pattern>/EDL/*.gw</url-pattern> 
</servlet-mapping> 

上記のようなJSPのURLパターンを使用したいと思います。しかし、EclipseがTomcatを起動しているときにエラーを表示します。このようにweb.xmlに登録するには?

localhostのサーバーTomcat v8.5サーバーの起動に失敗しました。

私はweb.xmlがその問題につながっているに違いないと思います。

上記のようなWeb.xmlを使用することはできませんか?

+1

サーバログの関連部分を投稿してください。 –

+0

質問にエラーを追加できますか? – Ali786

+0

2行目がエラーでコンソールメッセージを追加しました – Nick

答えて

0

Javaサーブレットのurl-pattern仕様は:

1)A string beginning with a '/' character and ending with a '/*' suffix is used for path mapping. 
    2) A string beginning with a '*.' prefix is used as an extension mapping. 
    3) A string containing only the '/' character indicates the "default" servlet of the application. In this case the servlet path is the request URI minus the context path and the path info is null. 
    4) All other strings are used for exact matches only. 
+0

ありがとうございました! – Nick

関連する問題