I am not using a context.xml.  Someone suggested I do so, it would be
under META-INF, but I don't have a META-INF subdir except under one
of the example apps.  I'm more than happy to do so in the future,
which this person pointed out was better form (more modular?), but
not sure where it is supposed to go, and for the moment just want
to get back to square one, with everything working.

Therefore, the germane addition to my server.xml file is here:

**************************************************************
      <!-- Define the default virtual host
           Note: XML Schema validation will not work with Xerces 2.2.
       -->
        <!-- ==== I changed the following line (put absolute path in appBase) 
==== -->
      <Host name="localhost" appBase="/usr/local/tomcat/webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">

        <!-- === I added this context element, and experimented
                 wildly with absolute paths for both path and
                   docbase === -->
        <Context path="/smsinfo"
                 docbase="/usr/local/tomcat/webapps/smsinfo"
                 debug="5" reloadable="true" />

        <!-- Defines a cluster for this node,
             By defining this element, means that every manager will be changed.
             So when running a cluster, only make sure that you have webapps in 
there
             that need to be clustered and remove the other ones.
             A cluster has the following parameters:

             className = the fully qualified name of the cluster class

             clusterName = a descriptive name for your cluster, can be anything

             mcastAddr = the multicast address, has to be the same for all the 
nodes

             mcastPort = the multicast port, has to be the same for all the 
nodes

             mcastBindAddress = bind the multicast socket to a specific address
**************************************************************

Anything else I can add?

> -----Original Message-----
> From: Marc Farrow [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 25, 2006 3:57 PM
> To: Tomcat Users List
> Subject: Re: More (Unending) "Resource Not Found"/ Directory Problems
> 
> 
> paste your context.xml and server.xml.  As info.  The docbase can be
> absolute or relative.  I would suggest using relative (which would be
> relative to appBase).
> 
> On 5/25/06, AJ Jonen <[EMAIL PROTECTED]> wrote:
> >
> > Linux is case sensitive do you have the write case.
> >
> >
> > Allen Williams wrote:
> >
> > >Nope, unfortunately, didn't work.  Still get the "Resource not
> > >found" message.
> > >
> > >What am I missing here?
> > >
> > >
> > >
> > >>-----Original Message-----
> > >>From: Allen Williams [mailto:[EMAIL PROTECTED]
> > >>Sent: Thursday, May 25, 2006 3:28 PM
> > >>To: Tomcat Users List
> > >>Subject: RE: More (Unending) "Resource Not Found"/ Directory Problems
> > >>
> > >>
> > >>Ahh!  Thanks!  I found the appBase attribute in the <Host> element.
> > >>I'm putting absolute paths in everything (of the form
> > >>"/usr/local/tomcat/...",
> > >>not of the form
> > >>"http://localhost:8080/...";)
> > >>to see if that gets it working.  The only context.xml
> > >>file I've found is in the CATALINA_HOME/conf directory, not a META-INF
> > >>directory.
> > >>
> > >>
> > >>
> > >>>-----Original Message-----
> > >>>From: Marc Farrow [mailto:[EMAIL PROTECTED]
> > >>>Sent: Thursday, May 25, 2006 3:18 PM
> > >>>To: Tomcat Users List
> > >>>Subject: Re: More (Unending) "Resource Not Found"/ Directory Problems
> > >>>
> > >>>
> > >>>the appBase is an attribute that is defined in your server.xml.
> > >>>By default
> > >>>it is your TOMCAT_HOME/WEBAPPS folder.
> > >>>
> > >>>On 5/25/06, Allen Williams <[EMAIL PROTECTED]> wrote:
> > >>>
> > >>>
> > >>>>I will take your advice and figure out how to use 
> META-INF/context.xml
> > >>>>as soon as I get back to where I was (I wondered what that META-INF
> > >>>>directory was for;-). Are the absolute paths like
> > >>>>"http://localhost:8080/smsinfo";
> > >>>>or like "/usr/local/tomcat/webapps/smsinfo"?  This has always been a
> > >>>>point of confusion for me.
> > >>>>
> > >>>>Also, I assume by docBase you mean the docbase attribute in
> > >>>>
> > >>>>
> > >>the Context
> > >>
> > >>
> > >>>>element.
> > >>>>What do you mean by appBase?
> > >>>>
> > >>>>TIA
> > >>>>
> > >>>>
> > >>>>
> > >>>>>-----Original Message-----
> > >>>>>From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
> > >>>>>Sent: Thursday, May 25, 2006 11:45 AM
> > >>>>>To: Tomcat Users List
> > >>>>>Subject: Re: More (Unending) "Resource Not Found"/
> > >>>>>
> > >>>>>
> > >>Directory Problems
> > >>
> > >>
> > >>>>>On 5/25/06, Allen Williams <[EMAIL PROTECTED]> wrote:
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>>I added this to the server.xml file:
> > >>>>>>
> > >>>>>>      <Host name="localhost" appBase="webapps"
> > >>>>>>       unpackWARs="true" autoDeploy="true"
> > >>>>>>       xmlValidation="false" xmlNamespaceAware="false">
> > >>>>>>
> > >>>>>><!-- This is what I added; note above, it is contained withing
> > >>>>>>
> > >>>>>>
> > >>>>>the localhost
> > >>>>>
> > >>>>>
> > >>>>>>elements -->
> > >>>>>>        <Context path="/smsinfo" docbase="smsinfo"
> > >>>>>>                 debug="5" reloadable="true" />
> > >>>>>>
> > >>>>>>
> > >>>>>>What's wrong here, and can someone help me with this immediate
> > >>>>>>
> > >>>>>>
> > >>>>problem?
> > >>>>
> > >>>>
> > >>>>>1) putting context configuration in server.xml is
> > >>>>>
> > >>>>>
> > >>>discouraged; you'd be
> > >>>
> > >>>
> > >>>>>    well off to get used to using META-INF/context.xml early
> > >>>>>
> > >>>>>
> > >>>:-)  but --
> > >>>
> > >>>
> > >>>>>2) when troubleshooting a problem like this, especially if
> > >>>>>
> > >>>>>
> > >>you've been
> > >>
> > >>
> > >>>>>     moving things around,  try using *absolute paths* for
> > >>>>>
> > >>>>>
> > >>appBase and
> > >>
> > >>
> > >>>>>     docBase so you *know* there's no ambiguity.
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>>Is there some definitive guide to how the hell you're supposed
> > >>>>>>
> > >>>>>>
> > >>>>>to organize a
> > >>>>>
> > >>>>>
> > >>>>>>directory structure with multiple applications?
> > >>>>>>
> > >>>>>>
> > >>>>>Exactly as you have it, as proven by the fact that the ROOT
> > >>>>>
> > >>>>>
> > >>>and example
> > >>>
> > >>>
> > >>>>>contexts work -- it's your context config that's causing
> > >>>>>
> > >>>>>
> > >>your problem.
> > >>
> > >>
> > >>>>>HTH!
> > >>>>>--
> > >>>>>Hassan Schroeder ------------------------ 
> [EMAIL PROTECTED]
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>
> > >>---------------------------------------------------------------------
> > >>
> > >>
> > >>>>>To start a new topic, e-mail: users@tomcat.apache.org
> > >>>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>>>>For additional commands, e-mail: [EMAIL PROTECTED]
> > >>>>>
> > >>>>>
> > 
> >>>>---------------------------------------------------------------------
> > >>>>To start a new topic, e-mail: users@tomcat.apache.org
> > >>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>>>For additional commands, e-mail: [EMAIL PROTECTED]
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>--
> > >>>Marc Farrow
> > >>>
> > >>>
> > >>>
> > >>---------------------------------------------------------------------
> > >>To start a new topic, e-mail: users@tomcat.apache.org
> > >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>For additional commands, e-mail: [EMAIL PROTECTED]
> > >>
> > >>
> > >>
> > >
> > >
> > >---------------------------------------------------------------------
> > >To start a new topic, e-mail: users@tomcat.apache.org
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> Marc Farrow
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to