Oh, I forgot to add, the ear is an expanded dir structure, not a single ear file.
I've figured it ...
For public info:
It looks like *-service.xml files are not supported in ear files. The MBean services must be a sar with a corresponding entry in the jboss-app.xml file.
The sar can be a directory structure, but must have a META-INF dir with a jboss-service.xml file.
These needs to be done for even those services that have no additional classes. Effectively the sar will be empty apart from the META-INF/jboss-service.xml file.
The jboss-app.xml file is:
<jboss-app> <module> <service>myService.sar</service> </module> </jboss-app>
These are all legal to do in the jboss-app.xml as well
<jboss-app> <module> <service>some-service.xml</service> </module> <module> <service>some-ds.xml</service> </module> <module> <service>some-service.bsh</service> </module> </jboss-app>
the -service files belong at the root level of the ear.