- 環境
- 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しても解決しない・・・。
対応方法
- GlassFishを停止します。
- 同じアプリケーションをうまくデプロイできた人のdomain.xmlをもらいます。
- もらったdomain.xmlを開きます。
- 以下をコピーします。
もらったdomain.xml
<applications>
<application .......各設定値.........>
<省略>
</application>
</applications>
5. 自分のdomain.xmlの同じ位置に貼り付けます。
6. デプロイしてGlassFishを起動します。
7. GlassFishを停止 > Clean > デプロイして起動します。