tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomi N/A" <hef...@gmail.com>
Subject war package ignores context fragment?
Date Sun, 13 May 2007 20:02:31 GMT
I want to set up an application called solr to run on tomcat. I have a
problem with a property I need to set so that the application will run
correctly: I don't understand the instructions for the tomcat setup.

>From the "solr on tomcat setup guide":
--------------------------------------------------------------
Configuring Solr Home with JNDI

A Tomcat context fragments can be used to configure the JNDI property
needed to specify your Solr Home directory.

Just put a context fragment file under
$CATALINA_HOME/conf/Catalina/localhost that looks something like
this...

$ cat /tomcat55/conf/Catalina/localhost/solr.xml

<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. Otherwise, this
Context element is ignored.
Configuring Solr Home with JNDI

A Tomcat context fragments can be used to configure the JNDI property
needed to specify your Solr Home directory.

Just put a context fragment file under
$CATALINA_HOME/conf/Catalina/localhost that looks something like
this...

$ cat /tomcat55/conf/Catalina/localhost/solr.xml

<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. Otherwise, this
Context element is ignored.
Configuring Solr Home with JNDI

A Tomcat context fragments can be used to configure the JNDI property
needed to specify your Solr Home directory.

Just put a context fragment file under
$CATALINA_HOME/conf/Catalina/localhost that looks something like
this...

$ cat /tomcat55/conf/Catalina/localhost/solr.xml

<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. Otherwise, this
Context element is ignored.
--------------------------------------------------------------

This last bit is the one I don't understand: I'm running 5.5.x and
don't know how to work with a war file outside the webapps directory.
Furthermore, the application will be deployed in a hosted environment
so I will have very limited possibilities with regard to editing
server.xml and other system wide settings.
Any suggestions are very welcome.

Cheers,
t.n.a.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message