When you deploy via the rest interface the exception causing the deployment to fail is not in the payload. This makes it very difficult to report problems if they occur.
clone Seam Solder at https://github.com/seam/solder
mvn integration-test -Dincontainer-glassfish-rest -Dtest=ServiceHandlerTest
Or use the attached war via curl:
curl -s -S -H 'Accept: application/xml' -X POST -F firstname.lastname@example.orgHandler.ServiceHandlerTest_test.war -F force=true http://localhost:4848/management/domain/applications/application