One of the issues is that the online version of the book is based on Beta3 or Beta4 (it's been a while so I can't remember exactly which), and things have moved since then. (In fact, things are continuing to move with config setting and files playing an elaborate game of musical chairs).
The job of the *.deployer entries in the deployer directory is to deploy applications of their respective types. For example, the jbossweb.deployer is responsible for deploying WAR files. On the other hand, the jbossweb.sar in the deploy directory is a service that contains the embedded JBoss Web Server (based on Tomcat), which is the servlet container for JBossAS. Configuration settings related specifically to running of JBoss Web Server (ex: server.xml) are located in jbossweb.sar, while configuration settings related to deployment of WAR files (ex: the global web.xml) are located in jbossweb.deployer.
In earlier versions of 5.0, such as Beta4, all of the above files were located in deployers/jbossweb.deployer. The new locations seems to make better sense.
Thanks for your reply.
It's already a bit clearer to me.
Although I'm not sure whether these new locations make better sense. As you said, the JBoss Web service is used to serve servlets and the jbossweb.deployer is used to deploy .war files. Now, the best way of deploying servlets is by using war files. And this is where things get confusing with the current file layout.
Although, it might just be me as well :-) Maybe after I finish the book, this isn't a point for me anymore.
Congrats on the book by the way. As for now I like it.
Although, if I can give hint for the next revision. I think it would be a good idea to backup the nice explanation of how JBoss works with some exercises. Maybe having some todos at the end of each chapter will help to actually force you to apply what you just have read.