Hi Tim, You're right. Reading this: http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/startup/UserConfig.html and the doc you originally referenced, it looks as though your original assumption is true - I guess "characteristics established by any DefaultContext" would include available environment entry resources.
Paul. 2008/9/3 Tim J Schumacher <[EMAIL PROTECTED]>: > 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 > > $CATALINA_HOME/webapps/public_html > > 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 > properly) > > In the $CATALINA_HOME/conf/server.xml I have the Listener > > <Listener className="org.apache.catalina.startup.UserConfig" > directoryName="public_html" > homeBase="/home" > > userClass="org.apache.catalina.startup.PasswdUserDatabase" /> > > set up. > > > Thanks again - this list is very helpful! > -Tim > > > > 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 <[EMAIL PROTECTED]>: >> >>> >>> 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 >>> >>> http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#User%20Web%20Applications >>> it says: >>> >>> * Each user web application will be deployed with characteristics >>> established by any DefaultContext >>> <http://tomcat.apache.org/tomcat-6.0-doc/config/defaultcontext.html> >>> 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: 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]