0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

TomcatサーバーのcontextPathが変わらなくて困った話

Posted at

環境

・eclipse
・tomcat8.0

起こったこと

・eclipse上でserverのWeb Modules→Modules→Pathを任意のものに書き換えた。
・serverをcleanして、起動した。
・書き換えたcontextPathでアクセスすると、404エラーが出る。
・server作成時のデフォルトで生成されるPathにアクセスすると、正しく繋がった。

解決策

・Project ExploerのServersから、該当のserverのconfigフォルダを開く。
・server.xmlを開いて、タグのpath="***"を確認する。
(何故か、ここが自動で書き変わっていなかった)
・手動でここを書き換える。

なぜserverのcleanで反映されなかったのかは不明

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?