Hi,
I'm not sure if that's a Solr issue. However, what happens if you set
env-entry-value to C:/mypath/solr instead of ${solr.home.myhome}?
-Sascha
Am 02.02.2010 15:20, schrieb Luca Molteni:
Hello list,
I'm having some problem deploying solr to JBoss 5.
The problem is with environment variables:
Following this page of the wiki: http://wiki.apache.org/solr/SolrJBoss
I've added to the web.xml of WEB-INF of solr
<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>${solr.home.myhome}</env-entry-value>
</env-entry>
Since I'm using lots of instances of solr in the same container.
This variable should be expanded by jboss itself in a path using
properties-services.xml:
<attribute name="Properties">
solr.home.myhome=C:/mypath/solr
</attribute>
Unfortunately, during deployment of the solr application, it gives me
this error:
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse
source: The content of element type "env-entry" must match
"(description?,env-entry-name,env-entry-value?,env-entry-type)". @
vfsfile:/C:/pathtojboss/server/solrrepo/deploy/Solrrepo/solr-mysolr.war/WEB-INF/web.xml[146,14]
at
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
... 33 more
Caused by: org.xml.sax.SAXException: The content of element type
"env-entry" must match
"(description?,env-entry-name,env-entry-value?,env-entry-type)". @
vfsfile:/C:/pathtojboss/server/solrrepo/deploy/Solrrepo/solr-mysolr.war/WEB-INF/web.xml[146,14]
at
org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:426)
Notice that the same .war and properties-services.xml works flawlessly
in JBoss 4.2.3
Any ideas?
Thank you very much.
L.M.
--
Sascha Szott
Kooperativer Bibliotheksverbund Berlin-Brandenburg (KOBV)
c/o Konrad-Zuse-Zentrum fuer Informationstechnik Berlin (ZIB)
Takustr. 7, D-14195 Berlin
Zimmer 4357
Telefon: (030) 841 85 - 457
Telefax: (030) 841 85 - 269
E-Mail: sz...@zib.de
WWW: http://www.kobv.de