I'm afraid I don't quite follow. Can you kindly outline step-by-step the failure case (the success case does not matter much) and possibly attach the ear file in question?
I´have found the solution:
As we are deploying on a standalone server, whe have to use --target server and not --target domain.
That fixes my problem!
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.