tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim J Schumacher <Tim.Schumac...@Colorado.EDU>
Subject Re: User Directories and context.xml?
Date Wed, 03 Sep 2008 16:36:56 GMT
Hi Paul,

Thanks for the reply.  I'm not sure I understand, I was thinking my 
user's application IS public_html, are you saying i have to make a 
directory called something like

/home/myUserName/public_html/ROOT and move everything into there? 

I put my WEB-INF and META-INF directly in my public_html and things in 
the WEB-INF are getting picked up by TC (like my 
public_html/WEB-INF/web.xml and my public_html/WEB-INF/classes, and 
public_html/WEB-INF/lib, etc ) but the context file in 
public_html/META-INF/context.xml seems like it is not being read by TC)

I have treated my public_html as though it lived in


where $CATALINA_HOME/webapps is my appbase. (I have other apps running 
from there and they seem to work as expected)

Is this not correct?

Other path/config info:

My CATALINA_HOME=/usr/local/apache-tomcat-6.0.16

and my appbase=$CATALINA_HOME/webapps, and I have some apps in there 
that are all working fine. (with META-INF/context.xml's and jdbc working 

In the $CATALINA_HOME/conf/server.xml I have the Listener

        <Listener   className="org.apache.catalina.startup.UserConfig"
userClass="org.apache.catalina.startup.PasswdUserDatabase" />

set up. 

Thanks again - this list is very helpful!

Paul Pepper wrote:
> Tim,
> The META-INF/context.xml should be placed within your application's
> docBase. I suspect that is likely to be ~/public_html/myapp/META-INF,
> where ~/public_html/ is the appBase for the localhost (as you've
> described it) and ~/public_html/myapp is the docBase of your
> application.
> Paul.
> 2008/9/3 Tim J Schumacher <>:
>> Hello,
>> I am running suse linux, java version "1.6.0_06", tomcat 6.0.16 and I have
>> the Listener for user directories configured so I can access webapps at eg:
>> localhost/~myUserName.  All was working great until I tried to configure a
>> jdbc data source in my public_html/META-INF directory....
>> In the tomcat documentation regarding this feature at
>> it says:
>>   * Each user web application will be deployed with characteristics
>>     established by any DefaultContext
>>     <>
>>     element you have configured for this Host
>> My question is this:  Does this mean TC will not read a context.xml placed
>> at /home/myUserName/public_html/META-INF/context.xml?  I have a jdbc data
>> source configured but I cannot get it to work from the context.xml file
>> located in my public_html.  It does work when I put the Resource in the
>> $CATALINA_HOME/conf/context.xml.
>> Thanks in advance for any help!
>> -Tim
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail:
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:
> ---------------------------------------------------------------------
> To start a new topic, e-mail:
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message