Larry, Thanks for the suggestion. I made this change and made a request to nickmain.spinweb.net to snoop.jsp and got the following output:
2002-05-13 14:58:44 - ContextManager: Host = nickmain.spinweb.net 2002-05-13 14:58:44 - ContextManager: SM: Prefix match /examples/jsp/snp/snoop.jsp -> null null 2002-05-13 14:58:44 - SimpleMapper1: Default map /examples/jsp/snp/snoop.jsp null 2002-05-13 14:58:44 - ContextManager: SM: Extension match /examples/jsp/snp/snoop.jsp .jsp 2002-05-13 14:58:44 - SimpleMapper1: SM: Found extension mapping ServletH jsp(SW (null CN=jsp)) 2002-05-13 14:58:44 - SimpleMapper1: SM: After mapping R( + /examples/jsp/snp/snoop.jsp + null) ServletH jsp(SW (null CN=jsp)) 2002-05-13 14:58:44 - SimpleMapper1: SM: exact map nickmain.spinweb.net:/examples/jsp/snp/snoop.jsp -> Ct (/examples/jsp/snp/snoop.jsp ServletH TOMCAT/JSP/examples/jsp/snp/snoop.jsp(SW (/examples/jsp/snp/snoop.jsp CN=TOMCAT/JSP/examples/jsp/snp/snoop.jsp)) ) 2002-05-13 14:58:44 - Ctx() : Compiling: /examples/jsp/snp/snoop.jsp to examples.jsp.snp.snoop_0 This looks right, and I tried a few other hosts and I've found a curious thing. Now the compiled class files from JSP requests are showing up in the correct work directory. Before adding the debug line I don't think this was happening. It is working perfectly now. I'm rather puzzled, but quite relieved. I appreciate your help and input on the problem. Duane On Monday, May 13, 2002, at 03:54 PM, Larry Isaacs wrote: > Try setting debug="1" on the <SimpleMapper1 ...> element in your > server.xml. This will cause a group of lines to appear in the > Tomcat log for each request. The first of these lines identifies > the host Tomcat thinks the request is for. Do you see the > different host names here? > > Cheers, > Larry > > >> -----Original Message----- >> From: Duane Gran [mailto:[EMAIL PROTECTED]] >> Sent: Monday, May 13, 2002 2:13 PM >> To: Tomcat Users List >> Subject: Re: simple ContextManager question >> >> >> 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: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]>