I set up a JBOSS v. 5 instance on my home computer today so I could play with its new micro-container format and its implementation of EJB3.
I wanted to add it as a server in Eclipse’s list of avaiable runtime environments on my machine, but when I pointed Eclipse to the JBOSS installation, it complained about a missing JAR (mail.jar) in the default configuration’s lib dir, and I was unable to add the server to Eclipse.
After some Googling (yes, googling), I found this bug. Once I patched my local installation with the jboss5.serverdef file attached to the bug I was able to associate the server with my Eclipse projects. I could then use Eclipse to start/stop the server, run in debug mode, and view the JBOSS server log.