Can you give a bit more information.
We are good, but we don't read minds :-)
How have you packaged the jar?
Are there any errors in jboss/log/server.log?
Does the jboss-test.ear work for you?
Sorry for giving that less information....but your answer helped me finding the reason: I have had no alias for "localhost" in /etc/hosts. Now it works. Thanks!