tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <>
Subject RE: war package ignores context fragment?
Date Mon, 14 May 2007 03:11:00 GMT
> From: Tomi N/A [] 
> 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

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

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:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message