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 3 years have passed since last update.

とあるTomcatプラグインの停止ポート(8081)

Posted at

はじめに

久しぶりにあるWebアプリとそこから呼び出される別のWebAPIシステムの改修作業が入ったので、開発環境を立ち上げようとしたらWebアプリが起動しなかったんだぁ。
Docker?何それ美味しいの?

環境(細かいのは職場のなので不明)

  • Webアプリ
  • WebAPI
    • SpringBoot

なにが起きたか

  1. WebAPIの実行可能jarをport8081で立ち上げる
  • java -jar xxx.jar --server.port=8081
  1. Webアプリをgradleタスクから立ち上げる
  • gradle tomcatRun
  1. 起動しない\(^o^)/

--traceをつけて実行するとportが使われている様子

Address already in use: JVM_Bind

でもnetstat /nao | findstr "8080"しても該当がない

はて...

なんだったのか

githubに書いてあるのですが、TomcatPluginではtomcatの停止portとして8081を使用していました。
WebAPI側を8090に変更したら正常に動きました。

どうすればすぐに気づけたか

  • さっさと詳細なログを出せばよかった
  • いきなりnetstatで8080に絞り込むべきではなかった
    • WebAPIで使用してるポート側からも探すべきだった
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?