I think this is related to https://issues.jboss.org/browse/JBPAPP-2419
I suppose you have to declare the name of the application where you depend on like this:
And the dependency
Thank you! This now works for us.
Also I noticed the problem doesn't happen in JBoss 6 release. I think this is maybe fixed by https://issues.jboss.org/browse/JBAS-7789.
For those interested, in our case we got it to work by using 2 jars within an ear, one jar containing what we need to depend on, with it's jboss.xml specifying the jmx-name. The other jar has the dependency.