Matthew Brown wrote:String and ArrayList don't have anything in common, so if you really want to have a map that can contain both (and I'd personally be looking for a different solution), just use Map<String, Object>. You're not gaining anything with wildcards.
The reason what you've got doesn't compile is that Map<String, ?> means "a map of some unknown but specific type". That's why you can't add anything to it - because the compiler doesn't know whether it's safe or not. It could be a Map<String, Integer>, for example.
Peter Johnson wrote:1) Exactly how are you starting JBoss AS?
2) Have you changed any of the ports, especially the JNDI port (1099 by default)?
3) Is JBoss AS is running in the same box as the client?
4) Have you using any OS tools (such as netstat) to verify that the ports are actually open?
5) Which OS are you using? I suspect Linux, but knowing which distro and version would help.
6) If you are running Linux, do you by any chance have SELinux enabled?