Hello, You're probably right. This is probably a problem related to Jboss 5, but since I used the procedure of solr deployment described there I thought that someone would have already dealt with this problem.
Actually, if I hard-code the value, it gives me the same error... interesting. L.M. On 2 February 2010 17:14, Sascha Szott <sz...@zib.de> wrote: > 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 > >