In the jbossweb-tomcat55.sar/conf folder there is a web.xml file whose contents are basically integrated into the web.xml of every deployed web app. The servlets you see there are what allow things like serving static content and jsps to work. You could add your servlet to this file. Add your jar to server/xxx/lib or to the jbossweb-tomcat55.sar.
thank you very much!
this is very cool and opens alot of possibilities.
However, the servlet does not appear to be executing in the context of the war that it is being invoked through. Is there a way to have it defined globally but at the same time have it execute within the context of the web app that it is being invoked through?
Not sure what you mean by not "executing in the context of the war that it is being invoked through". Can you give an example?
(Advance warning: you've already hit the limit of my detail knowledge of how this works; hopefully others know more. I *vaguely* recall reading the code that gets executed as the war deploys and seeing that the conf/web.xml stuff gets added in as if were a regular web.xml; i.e. servlets independently added to the individual webapp as opposed to some central service or something.)