> From: Tomi N/A [mailto:[EMAIL PROTECTED] > Subject: war package ignores context fragment? > > Just put a context fragment file under > $CATALINA_HOME/conf/Catalina/localhost that looks > something like this...
A better place for the <Context> would be in META-INF/context.xml of the webapp. > <Context docBase="f:/solr.war" debug="0" crossContext="true" > > <Environment name="solr/home" type="java.lang.String" > value="f:/my/solr/home" override="true" /> > </Context> > > Note that, for Tomcat 5.5 and later, the war file must bt stored > outside of the webapps directory for this to work. That's only because of the docBase attribute. Remove that, and solr.war can be placed under webapps, and the <Context> element can go either in conf/Catalina/localhost/solr.xml or in solr.war/META-INF/context.xml (the latter would probably be easier given your limited access to the production platform). It's not clear from your message what the Solr home directory is used for; presumably the "solr/home" value will still need to point to some writable location on the server outside of Tomcat's directory structure. - 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]