Glassfish 4.1.2 ”cannot Deploy xxx deploy is failing=Application with name [xxx] is not deployed”の解決方法

環境
Eclipse 4.14
Glassfish 4.1.2

エラー現象:
cannot Deploy cft
deploy is failing=Application with name [cft] is not deployed

解決方法
domain.xmlの確認
場所
D:\glassfish-4.1.2\glassfish4\glassfish\domains\domain1\config
1.server-configの設定内容を確認します

<server config-ref="server-config" name="server">
<application-ref ref="cft" virtual-servers="server"></application-ref>
</server>

2.context-rootの設定内容を確認します

<application context-root="/cft" object-type="user" name="cft" location="${com.sun.aas.instanceRootURI}/applications/cft/">
   <property name="archiveType" value="war"></property>
   <property name="keepstate" value="true"></property>
   <property name="appLocation" value="${com.sun.aas.instanceRootURI}/applications/__internal/cft/cft.war"></property>
     <property name="defaultAppName" value="cft"></property>
     <module name="cft">
       <engine sniffer="security"></engine>
        <engine sniffer="web"></engine>
    </module>
</application>

3.eclipseAppsフォルダの「cft」ファイルを削除します
D:\glassfish-4.1.2\glassfish4\glassfish\domains\domain1\eclipseApps

4.applicationsフォルダの「cft」ファイルを削除します
D:\glassfish-4.1.2\glassfish4\glassfish\domains\domain1\applications

 

Glassfish

Posted by arkgame