tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Williams" <...@csunv.com>
Subject RE: More (Unending) "Resource Not Found"/ Directory Problems
Date Thu, 25 May 2006 19:42:51 GMT
I just checked the log files, and found an error because

Document base
/usr/local/tomcat/webapps/usr/local/tomcat/webapps/smsinfo does
not exist or is not a readable directory.

Well, this tells me two things: it is looking in the right place
(at least for the document base) and it does NOT want an
absolute path (unless it wants one of the form
"http://localhost:8080/smsinfo"; is that possible?).

Hmph.

> -----Original Message-----
> From: Allen Williams [mailto:anw@csunv.com]
> 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:marc.farrow@gmail.com]
> > 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 <anw@csunv.com> 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:hassan.schroeder@gmail.com]
> > > > 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 <anw@csunv.com> 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 ------------------------ hassan.schroeder@gmail.com
> > > >
> > > > 
> ---------------------------------------------------------------------
> > > > To start a new topic, e-mail: users@tomcat.apache.org
> > > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > > For additional commands, e-mail: users-help@tomcat.apache.org
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To start a new topic, e-mail: users@tomcat.apache.org
> > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > For additional commands, e-mail: users-help@tomcat.apache.org
> > >
> > >
> > 
> > 
> > -- 
> > Marc Farrow
> > 
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


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


Mime
View raw message