RE: Context information outside of server.xml
Thanks so much for everybody who replied to this. I apologize for not replying/thanking sooner, but I have been trying to get this thing working. Unfortunately I'm having only marginal success. I'm thinking maybe there's something very fundamental that I'm not getting. Here's where I'm at: 1. I can get the deployer to recognize myhostdir/ROOT/META-INF/context.xml. It works ONLY with the default docBase of "" and ROOT. Nothing else works for instance docBase="www" and directory myhostdir/www/META-INF/context.xml won't work. 2. Some things in context.xml work, others don't. For instance a RemoteAddrValve works, but a Realm doesn't work. 3. Even for the context in server.xml, the problem with #2 appears with docBase of "" and dir ROOT. It goes away when I put docBase="www" and dir as www. 4. The Realm problem gives no log information. It just acts like the realm doesn't exist. Perhaps the problem isn't with the Realm definition, but the implementation in WEB-INF/web.xml? Does the ROOT context somehow make the app ignore web.xml? I'm kind of lost at this point. Thanks. Victor Huang <[EMAIL PROTECTED]> wrote: You need to specify docBase which is your application's doc root in element in ROOT.xml. e.g. unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> crossContext="true"> You need to specify docBase which is your application's doc root in element in ROOT.xml. e.g. mailto:[EMAIL PROTECTED] Sent: Thursday, June 28, 2007 10:10 AM To: users@tomcat.apache.org Subject: Context information outside of server.xml I'm trying to rework my server.xml file so that the context info can be reloaded without restarting the entire server. As far as I can tell this involves putting the context information in a file outside of server.xml. I've read that META-INF/context.xml only works with WAR files, and I don't use those. I'm puting the info in conf/Catalina/mydomain/ROOT.xml. It doesn't seem to work. For instance the following: In conf/server.xml In conf/Catalina/test1.mydomain.com/ROOT.xml I know this doesn't work because the logs don't get updated when in ROOT.xml, but do when in server.xml. Can anybody see what I'm doing wrong? Thanks. Can anybody see what I'm doing wrong? Thanks. - Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.
RE: Context information outside of server.xml
> From: Jake Alley [mailto:[EMAIL PROTECTED] > Subject: Context information outside of server.xml > > I've read that META-INF/context.xml only works with WAR files Not true; META-INF/context.xml works fine with expanded webapps. > I'm puting the info in conf/Catalina/mydomain/ROOT.xml. It > doesn't seem to work. If you're deploying your webapps into your s appBase directory, the defualt webapp must be installed in a directory named ROOT (not www, as it used to be). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Context information outside of server.xml
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jake, Jake Alley wrote: > I've read that META-INF/context.xml only works with WAR files, and I > don't use those. Nope. If you are using auto-deploy (will do WAR files or directories), then TC will respect the META-INF/context.xml file in either case. > I'm putting the info in conf/Catalina/mydomain/ROOT.xml. It doesn't > seem to work. Oh... the root context /is/ a little different, but you should be able to use a directory called ROOT in your appbase (usually $TOMCAT_HOME/webapps) with an appropriate context.xml file. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGg8zq9CaO5/Lv0PARAuWLAJwMmfQUx4qvSG4Kems33vgoAQpw5gCgrnrP WdF7YKYHm0OSAPPio3Oi7hU= =iV5G -END PGP SIGNATURE- - 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: Context information outside of server.xml
You need to specify docBase which is your application's doc root in element in ROOT.xml. e.g. mailto:[EMAIL PROTECTED] Sent: Thursday, June 28, 2007 10:10 AM To: users@tomcat.apache.org Subject: Context information outside of server.xml I'm trying to rework my server.xml file so that the context info can be reloaded without restarting the entire server. As far as I can tell this involves putting the context information in a file outside of server.xml. I've read that META-INF/context.xml only works with WAR files, and I don't use those. I'm puting the info in conf/Catalina/mydomain/ROOT.xml. It doesn't seem to work. For instance the following: In conf/server.xml In conf/Catalina/test1.mydomain.com/ROOT.xml I know this doesn't work because the logs don't get updated when in ROOT.xml, but do when in server.xml. Can anybody see what I'm doing wrong? Thanks. - Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]