LoginSignup
1
0

More than 5 years have passed since last update.

GlassFishを起動しようとしたら Application with name appName is already registered. となってしまった時の対応方法

Last updated at Posted at 2017-11-06
  • 環境
    • OS : Windows7
    • Eclipse : Kepler Service Release 2
    • GlassFish : 4.1.1

事象

Eclipse で GlassFish を起動したらエラーになって起動できなかった。

ダイアログに表示されたエラー
cannot Deploy appName
deploy is failing=Error occurred during deployment: Application with name appName is already registered. Either specify that redeployment must be forced, or redeploy the application. Or if this is a new deployment, pick a different name. Please see server.log for more details.

原因 : 不明

appNameという名前のアプリケーションがすでに登録されています。 と言われても・・・何度GlassFish配下のアプリケーションを削除してCleanしても解決しない・・・。

対応方法

  1. GlassFishを停止します。
  2. 同じアプリケーションをうまくデプロイできた人のdomain.xmlをもらいます。
  3. もらったdomain.xmlを開きます。
  4. 以下をコピーします。
もらったdomain.xml
<applications>
    <application .......各設定値.........>
      <省略>
    </application>
  </applications>

5. 自分のdomain.xmlの同じ位置に貼り付けます。
6. デプロイしてGlassFishを起動します。
7. GlassFishを停止 > Clean > デプロイして起動します。

1
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
1
0