You put it in the server.xml
Look for the examples Context tag
Or here is a complete installation guide for tomcat and jboss.
It is my understanding that JBoss 2.4.4 does not even read the server.xml...
I'm trying to do the same type of thing. Did you ever get a resolution for this?
Yes - Read the reply I got from Scott Stark - it worked fine for what I needed to do:
I found that JBoss 2.4 with Tomcat used the Server.xml, so I had no trouble using a virtual directory until now. However, with JBoss 3 and Tomcat 4, I cannot find a way as it ignores Server.xml, and the options in tomcat4-service.xml seem to be very limited!
This is frustrating as I do not want to use a WAR file for my web tier. I built OpenStandards.net, and found I was more productive and unlimited in capability without a WAR. I do use a JAR for the EJB side, and deploy that directly in JBoss.
Without getting into a discussion on whether or not a person SHOULD use a WAR, can someone please tell me how to configure JBoss to allow me to drop and edit my JSPs in a web folder that is not in a WAR with JBoss 3?!? This is a show stoppper, as I need backward compatibility.