Larry, Thanks for the additional information. Upon further reflection, I notice that all JSPs are compiled into the following directory:
$TOMCAT_HOME/work/DEFAULT/examples/jsp The problem is that requests to domain1.com/examples/ and domain2.com/examples/ are treated the same, and I would like Tomcat to use the work directories for each domain, not the DEFAULT. Recall, the purpose is to have a playground where users on the system can fiddle with the examples directory to learn and explore. I had this working with Tomcat 3.2, but I don't see the configuration analog between the two systems. Maybe a better way of phrasing my question would be, how do I make sure the /examples is treated on a per-host basis, not system-wide through the default? Again, the help and input is very appreciated. Duane On Monday, May 13, 2002, at 02:03 PM, Larry Isaacs wrote: > I don't think there is an error. path="" has a special meaning, > i.e. this is the default context. When a request fails > to match any other context, the request is sent to the default > context. > > Internally, the default context is assigned the name "ROOT". > That name is displayed in the startup messages you see and is > used in other ways, such as the work directory name for the > context. Consistent with this, auto-deployment of a web application > named ROOT implies it should be the default context, and not served as > "/ROOT". > > Cheers, > Larry > >> -----Original Message----- >> From: Duane Gran [mailto:[EMAIL PROTECTED]] >> Sent: Monday, May 13, 2002 1:41 PM >> To: [EMAIL PROTECTED] >> Subject: simple ContextManager question >> >> >> Tomcat users, >> >> I'm running Tomcat 3.3 with multiple virtual hosts and using >> the handy >> feature where Tomcat reads the >> $TOMCAT_HOME/conf/apps-user.xml files for >> each web app. Things are working well, but I believe all the web >> applications are being mapped to the /ROOT webapp, which isn't what I >> want. I copied over the examples directory to each user's >> area so they >> would have their own "playground" so to speak. >> >> My reason for thinking this is because of the following output when >> starting Tomcat: >> >> 2002-05-13 12:23:16 - ContextManager: Adding >> dezrtfox.spinweb.net:/ROOT >> 2002-05-13 12:23:16 - ContextManager: Adding >> nickmain.spinweb.net:/ROOT >> 2002-05-13 12:23:16 - ContextManager: Adding >> cogsense.spinweb.net:/ROOT >> 2002-05-13 12:23:16 - ContextManager: Adding >> mudgecko.spinweb.net:/ROOT >> 2002-05-13 12:23:16 - ContextManager: Adding jpinto.spinweb.net:/ROOT >> >> I've looked at the docs, but haven't found the source of my >> error. If >> things work correctly I should expect to see files generated from JSP >> processing in the $TOMCAT_HOME/work/DOMAIN directory, but I >> don't. This >> leads me to think that Tomcat isn't mapping the context >> correctly to the >> directory I've specified. Just for kicks, here is one of my webapp >> config files: >> >> <?xml version="1.0" encoding="ISO-8859-1"?> >> <webapps> >> <!-- Begin account nickmain --> >> <Host name="nickmain.spinweb.net"> >> <Context path="" >> >> docBase="/usr/local/apache/sites/anotherbigidea.com/htdocs" >> debug="1" >> reloadable="true"> >> </Context> >> <Alias>anotherbigidea.com</Alias> >> </Host> >> <!-- End account nickmain --> >> </webapps> >> >> Can someone enlighten me on this? I would be very >> appreciative and I'll >> be glad to furnish more details. >> >> Duane >> >> >> -- >> To unsubscribe, e-mail: >> <mailto:tomcat-user-> [EMAIL PROTECTED]> >> For >> additional commands, >> e-mail: <mailto:[EMAIL PROTECTED]> >> > > -- > To unsubscribe, e-mail: <mailto:tomcat-user- > [EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:tomcat-user- > [EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>