Install the source RPM for apache. The spec file is in /usr/src/redhat/xxxxx/SPEC or something like that. "xxxx" is the name of the httpd server package. The JBoss source RPM is not part of the desktop linuxes. For that, you'd have to pull from the Red Hat Enterprise Linux collection. CentOS may have a publicly-accessible copy.
An IDE is no substitute for an Intelligent Developer.