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 Runが動かなくなった

Posted at

環境

以下リンクと同じ

症状

grettyのTomcat Runタスク(jetty Run や App Runでも同じ)でエラー

Cannot cast object 'null' with class 'null' to class 'int'. Try 'java.lang.Integer' instead

原因

プロジェクト > build > gretty_ports.properties
の中身が空だった。

解決

ファイルごと消したら通った。
Tomcat Runを実行したら以下のような中身で再生成された。

gretty_ports.properties
#Sun Jun 16 12:15:41 JST 2019
statusPort=53051
servicePort=53050

追伸

再生成されるたびにポート番号は違うっぽい?

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?