RE: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Allen Williams
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]



Re: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Marc Farrow

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


RE: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Allen Williams
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]



RE: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Allen Williams
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]



RE: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Allen Williams
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:[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]



Re: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread AJ Jonen

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]



Re: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Marc Farrow

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


RE: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Allen Williams
Appreciate the tip, but the cases are all OK.

 -Original Message-
 From: AJ Jonen [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 25, 2006 3:49 PM
 To: Tomcat Users List
 Subject: Re: More (Unending) Resource Not Found/ Directory Problems


 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]


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



Re: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Hassan Schroeder

On 5/25/06, Allen Williams [EMAIL PROTECTED] wrote:

Are the absolute paths like
http://localhost:8080/smsinfo;
or like /usr/local/tomcat/webapps/smsinfo?


File system paths, your second choice :-)


Also, I assume by docBase you mean the docbase attribute in the Context
element.


Sweet mother of -- no, I mean docBase, which, if you *read* the
Fine Documentation at
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html,
you'll see is spelled exactly that way *AND IS CASE SENSITIVE*.

OK? Go through your configuration and *look closely* at each element
and attribute and *check them against the doc*. It'll save you a lot of
unneccessary frustration. Really. :-)

--
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]



RE: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Allen Williams
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

Re: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Marc Farrow

As Hassan pointed out your docbase tag is wrong.  change to docBase (case
sensitive) and check the other tags.

On 5/25/06, Allen Williams [EMAIL PROTECTED] wrote:


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

RE: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Allen Williams
Oooo-kay.  I went and (re)read the document you suggested, did
change docbase in the Context element to docBase (which I did
miss until you pointed it out), and the same thing still hap-
pens.  Evidently, there's no way to tell tomcat how many times
I've read the documentation;-)

I know this is bound to be some stupid little thing I've missed
(I actually had high hopes with the docbase-docBase change),
but I don't know what it is.

 -Original Message-
 From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 25, 2006 4:11 PM
 To: Tomcat Users List
 Subject: Re: More (Unending) Resource Not Found/ Directory Problems
 
 
 On 5/25/06, Allen Williams [EMAIL PROTECTED] wrote:
  Are the absolute paths like
  http://localhost:8080/smsinfo;
  or like /usr/local/tomcat/webapps/smsinfo?
 
 File system paths, your second choice :-)
 
  Also, I assume by docBase you mean the docbase attribute in the Context
  element.
 
 Sweet mother of -- no, I mean docBase, which, if you *read* the
 Fine Documentation at
 http://tomcat.apache.org/tomcat-5.5-doc/config/context.html,
 you'll see is spelled exactly that way *AND IS CASE SENSITIVE*.
 
 OK? Go through your configuration and *look closely* at each element
 and attribute and *check them against the doc*. It'll save you a lot of
 unneccessary frustration. Really. :-)
 
 -- 
 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]



RE: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Jay Burgess
I'm coming into this discussion late, so ignore this if it's offbase, but it
looks like you are using absolute paths for both appBase and docBase:

Host name=localhost appBase=/usr/local/tomcat/webapps

Context path=/smsinfo docBase=/usr/local/tomcat/webapps/smsinfo

The docBase docs say You may specify an absolute pathname for this directory or
WAR file, or a pathname that is relative to the appBase directory of the owning
Host.

Shouldn't you be using a relative path for docBase, not an absolute one?

Jay

| Jay Burgess [Vertical Technology Group]
| http://www.vtgroup.com/

-Original Message-
From: Allen Williams [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 3:34 PM
To: Tomcat Users List
Subject: RE: More (Unending) Resource Not Found/ Directory Problems

Oooo-kay.  I went and (re)read the document you suggested, did
change docbase in the Context element to docBase (which I did
miss until you pointed it out), and the same thing still hap-
pens.  Evidently, there's no way to tell tomcat how many times
I've read the documentation;-)

I know this is bound to be some stupid little thing I've missed
(I actually had high hopes with the docbase-docBase change),
but I don't know what it is.

 -Original Message-
 From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 25, 2006 4:11 PM
 To: Tomcat Users List
 Subject: Re: More (Unending) Resource Not Found/ Directory Problems
 
 
 On 5/25/06, Allen Williams [EMAIL PROTECTED] wrote:
  Are the absolute paths like
  http://localhost:8080/smsinfo;
  or like /usr/local/tomcat/webapps/smsinfo?
 
 File system paths, your second choice :-)
 
  Also, I assume by docBase you mean the docbase attribute in the Context
  element.
 
 Sweet mother of -- no, I mean docBase, which, if you *read* the
 Fine Documentation at
 http://tomcat.apache.org/tomcat-5.5-doc/config/context.html,
 you'll see is spelled exactly that way *AND IS CASE SENSITIVE*.
 
 OK? Go through your configuration and *look closely* at each element
 and attribute and *check them against the doc*. It'll save you a lot of
 unneccessary frustration. Really. :-)
 
 -- 
 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]



RE: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Allen Williams
Thanks.  This all started when I went from a Debian package install to
a more vanilla Linux install.  Under the Debian apt package install,
it put everything into /usr/share/, and everything worked fine until I
tried to install an Ajp13 connector, whereupon it was recommended I do
the vanilla install.  I put the vanilla install into /usr/local (seemed
to make more sense for some reason than /usr/share), and since then my
(very simple, just to get started) app doesn't work.  As you can see from
this thread, it's like it can't find the top-level app directory (which,
of course, I've put under /usr/local/tomcat/webapps).  When I try to access
it, I get a message in my browser that says The requested resource
(/smsinfo/) is not available.

Actually, at the moment, I am back to a relative path for docBase.

Is there anyway to set a higher debug level or something so that maybe
tomcat will print out how he is trying to resolve paths, etc.?

 -Original Message-
 From: Jay Burgess [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 25, 2006 4:53 PM
 To: users@tomcat.apache.org
 Subject: RE: More (Unending) Resource Not Found/ Directory Problems
 
 
 I'm coming into this discussion late, so ignore this if it's 
 offbase, but it
 looks like you are using absolute paths for both appBase and docBase:
 
 Host name=localhost appBase=/usr/local/tomcat/webapps
 
 Context path=/smsinfo docBase=/usr/local/tomcat/webapps/smsinfo
 
 The docBase docs say You may specify an absolute pathname for 
 this directory or
 WAR file, or a pathname that is relative to the appBase directory 
 of the owning
 Host.
 
 Shouldn't you be using a relative path for docBase, not an absolute one?
 
 Jay
 
 | Jay Burgess [Vertical Technology Group]
 | http://www.vtgroup.com/
 
 -Original Message-
 From: Allen Williams [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, May 25, 2006 3:34 PM
 To: Tomcat Users List
 Subject: RE: More (Unending) Resource Not Found/ Directory Problems
 
 Oooo-kay.  I went and (re)read the document you suggested, did
 change docbase in the Context element to docBase (which I did
 miss until you pointed it out), and the same thing still hap-
 pens.  Evidently, there's no way to tell tomcat how many times
 I've read the documentation;-)
 
 I know this is bound to be some stupid little thing I've missed
 (I actually had high hopes with the docbase-docBase change),
 but I don't know what it is.
 
  -Original Message-
  From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
  Sent: Thursday, May 25, 2006 4:11 PM
  To: Tomcat Users List
  Subject: Re: More (Unending) Resource Not Found/ Directory Problems
  
  
  On 5/25/06, Allen Williams [EMAIL PROTECTED] wrote:
   Are the absolute paths like
   http://localhost:8080/smsinfo;
   or like /usr/local/tomcat/webapps/smsinfo?
  
  File system paths, your second choice :-)
  
   Also, I assume by docBase you mean the docbase attribute in 
 the Context
   element.
  
  Sweet mother of -- no, I mean docBase, which, if you *read* the
  Fine Documentation at
  http://tomcat.apache.org/tomcat-5.5-doc/config/context.html,
  you'll see is spelled exactly that way *AND IS CASE SENSITIVE*.
  
  OK? Go through your configuration and *look closely* at each element
  and attribute and *check them against the doc*. It'll save you a lot of
  unneccessary frustration. Really. :-)
  
  -- 
  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]

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



RE: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread LessZoa

You can set up valves to handle log files. You need to create your log
directory and such, then add it into your host context in the server.xml.

First... for logging, you have to uncomment/add in the Valve in the main
host section as such:
Host
  Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs prefix=localhost_access_log. suffix=.txt
pattern=common resolveHosts=false / 
/host


In my server.xml I have 5 different webapps as they all run on different IPs
(for security reasons). Here is a sample of a host setup so Tomcat can find
my webapp:

Host name=www.mysite.com appBase=/home/sites/www.mysite.com/webapps
unpackWARs=true autoDeploy=true xmlValidation=false
xmlNamespaceAware=false
  Aliassafetysystemshawaii.com/Alias 
  Valve className=org.apache.catalina.valves.AccessLogValve
directory=/home/sites/www.mysite.com/logs
prefix=www.mysite.com_access_log. suffix=.txt pattern=common
resolveHosts=false / 
/Host

then I have my Context seperate (/Catalina/ipnumber/) with the following:
Context path=/appname docBase=dirofappname relodable=false
privileged=false
  Resource auth=Container name=mail/Session type=javax.mail.Session
/ 
  Resource name=jdbc/appname auth=Container scope=Shareable
type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=500
removeAbondoned=true username=test password=test
driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/dbname?autoReconnect=trueuseUnicode=truecharacterEncoding=UTF8
/ 
  /Context

All of my apps are set up this way. They all work wonderfully.

You may not have to get as indepth. 

The server.xml is a global file telling Tomcat where what is. Since I have
multiple webapp directories I have to state each one in the server.xml then
create a context in Catalina which helps to manage all of them. I also have
seperate instances of the TomcatManager for each IP/webapp so I do not have
to reboot Tomcat overall if I make a change to only one webapp.

Hope this helps you... 

~LZ~
--
View this message in context: 
http://www.nabble.com/More+%28Unending%29+%22Resource+Not+Found%22-+Directory++Problems-t1681606.html#a4566488
Sent from the Tomcat - User forum at Nabble.com.


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



RE: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Jay Burgess
The reason I commented is that I noticed in one of your previous posts a log
error like:

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

Since this message contains the string /usr/local/tomcat/webapps twice, I
thought maybe it was concatenating an absolute appBase with an absolute docBase,
when it should be concatenating an absolute appBase with a relative docBase.

Can you check the same log and see what the error looks like now?

Jay

| Jay Burgess [Vertical Technology Group]
| http://www.vtgroup.com/


-Original Message-
From: Allen Williams [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 4:03 PM
To: Tomcat Users List
Subject: RE: More (Unending) Resource Not Found/ Directory Problems

Thanks.  This all started when I went from a Debian package install to
a more vanilla Linux install.  Under the Debian apt package install,
it put everything into /usr/share/, and everything worked fine until I
tried to install an Ajp13 connector, whereupon it was recommended I do
the vanilla install.  I put the vanilla install into /usr/local (seemed
to make more sense for some reason than /usr/share), and since then my
(very simple, just to get started) app doesn't work.  As you can see from
this thread, it's like it can't find the top-level app directory (which,
of course, I've put under /usr/local/tomcat/webapps).  When I try to access
it, I get a message in my browser that says The requested resource
(/smsinfo/) is not available.

Actually, at the moment, I am back to a relative path for docBase.

Is there anyway to set a higher debug level or something so that maybe
tomcat will print out how he is trying to resolve paths, etc.?

 -Original Message-
 From: Jay Burgess [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 25, 2006 4:53 PM
 To: users@tomcat.apache.org
 Subject: RE: More (Unending) Resource Not Found/ Directory Problems
 
 
 I'm coming into this discussion late, so ignore this if it's 
 offbase, but it
 looks like you are using absolute paths for both appBase and docBase:
 
 Host name=localhost appBase=/usr/local/tomcat/webapps
 
 Context path=/smsinfo docBase=/usr/local/tomcat/webapps/smsinfo
 
 The docBase docs say You may specify an absolute pathname for 
 this directory or
 WAR file, or a pathname that is relative to the appBase directory 
 of the owning
 Host.
 
 Shouldn't you be using a relative path for docBase, not an absolute one?
 
 Jay
 
 | Jay Burgess [Vertical Technology Group]
 | http://www.vtgroup.com/
 
 -Original Message-
 From: Allen Williams [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, May 25, 2006 3:34 PM
 To: Tomcat Users List
 Subject: RE: More (Unending) Resource Not Found/ Directory Problems
 
 Oooo-kay.  I went and (re)read the document you suggested, did
 change docbase in the Context element to docBase (which I did
 miss until you pointed it out), and the same thing still hap-
 pens.  Evidently, there's no way to tell tomcat how many times
 I've read the documentation;-)
 
 I know this is bound to be some stupid little thing I've missed
 (I actually had high hopes with the docbase-docBase change),
 but I don't know what it is.
 
  -Original Message-
  From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
  Sent: Thursday, May 25, 2006 4:11 PM
  To: Tomcat Users List
  Subject: Re: More (Unending) Resource Not Found/ Directory Problems
  
  
  On 5/25/06, Allen Williams [EMAIL PROTECTED] wrote:
   Are the absolute paths like
   http://localhost:8080/smsinfo;
   or like /usr/local/tomcat/webapps/smsinfo?
  
  File system paths, your second choice :-)
  
   Also, I assume by docBase you mean the docbase attribute in 
 the Context
   element.
  
  Sweet mother of -- no, I mean docBase, which, if you *read* the
  Fine Documentation at
  http://tomcat.apache.org/tomcat-5.5-doc/config/context.html,
  you'll see is spelled exactly that way *AND IS CASE SENSITIVE*.
  
  OK? Go through your configuration and *look closely* at each element
  and attribute and *check them against the doc*. It'll save you a lot of
  unneccessary frustration. Really. :-)
  
  -- 
  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]



RE: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Allen Williams
Yeah, I fixed that.  That error is no longer in the logs.

 -Original Message-
 From: Jay Burgess [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 25, 2006 5:22 PM
 To: users@tomcat.apache.org
 Subject: RE: More (Unending) Resource Not Found/ Directory Problems


 The reason I commented is that I noticed in one of your previous
 posts a log
 error like:

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

 Since this message contains the string
 /usr/local/tomcat/webapps twice, I
 thought maybe it was concatenating an absolute appBase with an
 absolute docBase,
 when it should be concatenating an absolute appBase with a
 relative docBase.

 Can you check the same log and see what the error looks like now?

 Jay

 | Jay Burgess [Vertical Technology Group]
 | http://www.vtgroup.com/


 -Original Message-
 From: Allen Williams [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 25, 2006 4:03 PM
 To: Tomcat Users List
 Subject: RE: More (Unending) Resource Not Found/ Directory Problems

 Thanks.  This all started when I went from a Debian package install to
 a more vanilla Linux install.  Under the Debian apt package install,
 it put everything into /usr/share/, and everything worked fine until I
 tried to install an Ajp13 connector, whereupon it was recommended I do
 the vanilla install.  I put the vanilla install into /usr/local (seemed
 to make more sense for some reason than /usr/share), and since then my
 (very simple, just to get started) app doesn't work.  As you can see from
 this thread, it's like it can't find the top-level app directory (which,
 of course, I've put under /usr/local/tomcat/webapps).  When I try
 to access
 it, I get a message in my browser that says The requested resource
 (/smsinfo/) is not available.

 Actually, at the moment, I am back to a relative path for docBase.

 Is there anyway to set a higher debug level or something so that maybe
 tomcat will print out how he is trying to resolve paths, etc.?

  -Original Message-
  From: Jay Burgess [mailto:[EMAIL PROTECTED]
  Sent: Thursday, May 25, 2006 4:53 PM
  To: users@tomcat.apache.org
  Subject: RE: More (Unending) Resource Not Found/ Directory Problems
 
 
  I'm coming into this discussion late, so ignore this if it's
  offbase, but it
  looks like you are using absolute paths for both appBase and docBase:
 
  Host name=localhost appBase=/usr/local/tomcat/webapps
 
  Context path=/smsinfo docBase=/usr/local/tomcat/webapps/smsinfo
 
  The docBase docs say You may specify an absolute pathname for
  this directory or
  WAR file, or a pathname that is relative to the appBase directory
  of the owning
  Host.
 
  Shouldn't you be using a relative path for docBase, not an absolute one?
 
  Jay
 
  | Jay Burgess [Vertical Technology Group]
  | http://www.vtgroup.com/
 
  -Original Message-
  From: Allen Williams [mailto:[EMAIL PROTECTED]
  Sent: Thursday, May 25, 2006 3:34 PM
  To: Tomcat Users List
  Subject: RE: More (Unending) Resource Not Found/ Directory Problems
 
  Oooo-kay.  I went and (re)read the document you suggested, did
  change docbase in the Context element to docBase (which I did
  miss until you pointed it out), and the same thing still hap-
  pens.  Evidently, there's no way to tell tomcat how many times
  I've read the documentation;-)
 
  I know this is bound to be some stupid little thing I've missed
  (I actually had high hopes with the docbase-docBase change),
  but I don't know what it is.
 
   -Original Message-
   From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
   Sent: Thursday, May 25, 2006 4:11 PM
   To: Tomcat Users List
   Subject: Re: More (Unending) Resource Not Found/ Directory Problems
  
  
   On 5/25/06, Allen Williams [EMAIL PROTECTED] wrote:
Are the absolute paths like
http://localhost:8080/smsinfo;
or like /usr/local/tomcat/webapps/smsinfo?
  
   File system paths, your second choice :-)
  
Also, I assume by docBase you mean the docbase attribute in
  the Context
element.
  
   Sweet mother of -- no, I mean docBase, which, if you *read* the
   Fine Documentation at
   http://tomcat.apache.org/tomcat-5.5-doc/config/context.html,
   you'll see is spelled exactly that way *AND IS CASE SENSITIVE*.
  
   OK? Go through your configuration and *look closely* at each element
   and attribute and *check them against the doc*. It'll save
 you a lot of
   unneccessary frustration. Really. :-)
  
   --
   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

Re: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Hassan Schroeder

On 5/25/06, Allen Williams [EMAIL PROTECTED] wrote:

Yeah, I fixed that.  That error is no longer in the logs.


Let me assure you that absolute appBase and absolute docBase
paths work fine together -- I've got systems in production set up
that way.

In any case, what *does* show up in your log when you start up
Tomcat now? There should be some reference to why /smsinfo
isn't found, or isn't starting.

--
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]



RE: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Allen Williams
Nothing at all shows up in them.  That's why I asked a few posts ago
whether there was some way I could increase the debug level.  This is
true not only at tomcat startup, but also when I try to access the
directory.  All I get is the requested resource is not available
message in my browser.  I've just started it and tried again, so I
post them here, in case Dan Brown is reading and can crack some code:

All that redirect stuff in localhost.log isn't germane, is it?

catalina.log
===
May 25, 2006 7:09:58 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:
/usr/lib/jdk1.5.0_06/jre/lib/i386/client:/usr/lib/jdk1.5.0_06/jre/lib/i386:/
usr/lib/jdk1.5.0_06/jre/../lib/i386
May 25, 2006 7:09:59 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 25, 2006 7:09:59 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 897 ms
May 25, 2006 7:09:59 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 25, 2006 7:09:59 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
May 25, 2006 7:09:59 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 25, 2006 7:10:00 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 25, 2006 7:10:00 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 25, 2006 7:10:00 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/83  config=null
May 25, 2006 7:10:00 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
May 25, 2006 7:10:00 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1440 ms

localhost.log

May 25, 2006 7:09:59 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News /
Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param name:
paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
May 25, 2006 7:09:59 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
May 25, 2006 7:09:59 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
May 25, 2006 7:10:00 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
May 25, 2006 7:10:00 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()

==
catalina.out

May 25, 2006 7:09:58 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:
/usr/lib/jdk1.5.0_06/jre/lib/i386/client:/usr/lib/jdk1.5.0_06/jre/lib/i386:/
usr/lib/jdk1.5.0_06/jre/../lib/i386
May 25, 2006 7:09:59 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 25, 2006 7:09:59 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 897 ms
May 25, 2006 7:09:59 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 25, 2006 7:09:59 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
May 25, 2006 7:09:59 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 25, 2006 7:10:00 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 25, 2006 7:10:00 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 25, 2006 7:10:00 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/83  config=null
May 25, 2006 7:10:00 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
May 25, 2006 7:10:00 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1440 ms

Thanks!

 -Original Message-
 From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 25, 2006 6:30 PM
 To: Tomcat Users List
 Subject: Re: More (Unending) Resource Not Found/ Directory Problems


 On 5/25/06, Allen Williams [EMAIL PROTECTED] wrote:
  Yeah, I fixed that.  That error is no longer in the logs.

 Let me

RE: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Allen Williams
Well, I'd first like to say (before I make a complete fool of
myself) thanks to all who helped me.  I have (embarassing moment
here) finally found the problem.

When I was running under the old configuration, I had the test
URL bookmarked as /smsinfo/login.jsp.  The directory doesn't
(or, didn't, until now) have an index.* file.

Since the default page and all the examples worked, I decided to
put my app directory as a link on the default page and see if I
could get it to work that way.  So, I took apart the default
ROOT/WEB-INF/web.xml file (i. e., unmapped the precompiled
default default page, so it would use the uncompiled index.jsp
in the ROOT/ directory, added my link to it, and still nothing.
Starting there, I found the problem.

Is there an emoticon that denotes severe embarrassment?  All I
can say, is at least at some point I said it would be some
trivial thing.  Well, it was.


 -Original Message-
 From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 25, 2006 6:30 PM
 To: Tomcat Users List
 Subject: Re: More (Unending) Resource Not Found/ Directory Problems
 
 
 On 5/25/06, Allen Williams [EMAIL PROTECTED] wrote:
  Yeah, I fixed that.  That error is no longer in the logs.
 
 Let me assure you that absolute appBase and absolute docBase
 paths work fine together -- I've got systems in production set up
 that way.
 
 In any case, what *does* show up in your log when you start up
 Tomcat now? There should be some reference to why /smsinfo
 isn't found, or isn't starting.
 
 -- 
 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]



Re: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Marc Farrow

The main thing is to keep the main thing the main thing and oh yeah I am
happy you got your problem resolved.

On 5/25/06, Allen Williams [EMAIL PROTECTED] wrote:


Well, I'd first like to say (before I make a complete fool of
myself) thanks to all who helped me.  I have (embarassing moment
here) finally found the problem.

When I was running under the old configuration, I had the test
URL bookmarked as /smsinfo/login.jsp.  The directory doesn't
(or, didn't, until now) have an index.* file.

Since the default page and all the examples worked, I decided to
put my app directory as a link on the default page and see if I
could get it to work that way.  So, I took apart the default
ROOT/WEB-INF/web.xml file (i. e., unmapped the precompiled
default default page, so it would use the uncompiled index.jsp
in the ROOT/ directory, added my link to it, and still nothing.
Starting there, I found the problem.

Is there an emoticon that denotes severe embarrassment?  All I
can say, is at least at some point I said it would be some
trivial thing.  Well, it was.


 -Original Message-
 From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 25, 2006 6:30 PM
 To: Tomcat Users List
 Subject: Re: More (Unending) Resource Not Found/ Directory Problems


 On 5/25/06, Allen Williams [EMAIL PROTECTED] wrote:
  Yeah, I fixed that.  That error is no longer in the logs.

 Let me assure you that absolute appBase and absolute docBase
 paths work fine together -- I've got systems in production set up
 that way.

 In any case, what *does* show up in your log when you start up
 Tomcat now? There should be some reference to why /smsinfo
 isn't found, or isn't starting.

 --
 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