Context are usually created implicitly by deploying WAR or EAR files.
Why do you want to create a context manually?
I am also having this problem. I would like to add jsp files to a context on the fly. I would also like my context to reside outside the deploy directory. The only way I can find to add a context is to drop a war file in the deploy directory.
I have tried to add a tag to the jboss-service.xml file in the jbossweb sar, but it did not work. How can I add a context with a fully qualified path?
Any help is appreciated