cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert <rob...@goene.nl>
Subject cocoon 2.2 servlet context
Date Fri, 25 Dec 2009 15:33:15 GMT
Hi All,

I try to put the Solr servlet in a Cocoon 2.2 block and it seems that I have
some success so far. Unfortunately, I do not seem to be able to set the JNDI
property solr/home, needed for the config and data files.

I have tried to add the following to both the spring servlet config of the block
and the applicationContext.xml of the webapp using the block. The latter one
would be the proper location, I guess, as this will be different in every webapp.


<bean name="org.apache.cocoon.servletservice.sample.servlet1"
class="org.apache.solr.servlet.SolrServlet">
<servlet:context mount-path="/select" context-path="blockcontext:/cocoonSolr/">
<servlet:context-params>
<entry key="solr/home" value="/path/to/solr"/>
</servlet:context-params>
</servlet:context>
</bean>

Am I using this correctly?

Best, Robert Goené


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message