Please file a GlassFish issue.
I was able to reproduce it in NB 7. After deployment, domain.xml contains
the following (note the name attr value is the same as the default appName):
<application
location="file:/Users/cf126330/tmp/renamed/test/test-ear/target/gfdeploy/com.example_test-ear_ear_1.0-SNAPSHOT/"
name="com.example_test-ear_ear_1.0-SNAPSHOT" directory-deployed="true"
object-type="user">
<property name="appLocation"
value="file:/Users/cf126330/tmp/renamed/test/test-ear/target/gfdeploy/com.example_test-ear_ear_1.0-SNAPSHOT/"></property>
<property name="org.glassfish.ejb.container.application_unique_id"
value="85658066449334272"></property>
<property name="isComposite" value="true"></property>
<property name="defaultAppName"
value="com.example_test-ear_ear_1.0-SNAPSHOT"></property>
<engine sniffer="ear"></engine>
<module name="test-ejb-1.0-SNAPSHOT.jar">
<engine sniffer="ejb"></engine>
<engine sniffer="security"></engine>
</module>
<module name="test-web-1.0-SNAPSHOT.war">
<engine sniffer="security"></engine>
<engine sniffer="web"></engine>
</module>
</application>
The generated application.xml also contains the correct appName, which
suggests the correct application.xml was processed, but somehow in this
particular path, it's ignored when registering the app.
But when I run 'asadmin deploy .' in
test-ear/target/gfdeploy/com.example_test-ear_ear_1.0-SNAPSHOT, to do a
directory deploy, it works fine.
--
[Message sent by forum member 'cf126330']
View Post: http://forums.java.net/node/808442