some time ago, I filed a JIRA issue about problems with the MainDeployer: https://jira.jboss.org/jira/browse/JBAS-5643 . It was closed without being fixed.
Maybe things as "listDeployed" only work for apps which were deployed the the MainDeployer MBean, but not for those apps which were copied to the "deploy" folder.
Wolfgang: Ummm... Very interesting. If they closed the JIRA I guess that's the normal behaviour, as you state.
In the end I decided to continue with my manual deployment instead of using the console (be it the JMX console or the administration console). Basically because during the development of my applications I always prefer to use directories instead of pure JAR, WAR or EAR files (because of matter of speed) and, although I only used the "start" and "stop" operations in the console, some times my applications got deleted.
I still don't know why, because as far as I know even re-deploying an application the original source (the JAR file for example) isn't deleted, but the files which were extracted from it, Right?
Whatever it's the cause I think that I'll continue using my OS-dependent batch files for quick start and stop operations during the development.
Thank you very much for your answer, Wolfgang ;) .
if you want to deploy only for development purposes, you might take a look at JSR88 deployment: http://www.jboss.org/community/wiki/JSR88Client
This works for JBoss 4.x and 5.x. The only limitation: deployment is not persistent. After a server restart, the app is gone.
Wolfgang: I'll take a look when I've more free time. It sounds interesting. Thank you a lot again :) .