Luca Molteni wrote:
Actually, if I hard-code the value, it gives me the same error... interesting.
According to the error message:

The content of element type "env-entry" must match
"(description?,env-entry-name,env-entry-value?,env-entry-type)"

Maybe it helps to change the order of elements within env-entry (env-entry-value before env-entry-type)?

-Sascha



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.

Reply via email to