You have modified this line in the original configvalues.xml:

                <property name="default.config.path" 
location="${basic.config.path}" />

to be
                <property name="basic.config.path" 
location="${basic.config.path}" />

As a result default.config.path is never set, which is why you get 

BUILD FAILED
/var/lib/tomcat6/webapps/fedoragsearch/configvalues.xml:35:
/var/lib/tomcat6/webapps/fedoragsearch/${default.config.path} not found.

Modification of that line was relevant, if you wanted one of the other example 
configs as default, e.g.

                <property name="default.config.path" 
location="${solr.config.path}" />

where solr.config.path is a property in the target configDemoOnSolr.

Best,
Gert


On 31/05/2011, at 18.58, Menk, Robert - 1150 - MITLL wrote:

> Gert
> 
> Thanks for taking the time to go into this. 
> 
> The absolute webserver and fedora paths are both entered directly using the
> same values found in $FEDORA_HOME and $CATALINA_HOME. Both paths are owned
> by the tomcat user so I don't think it's a permissions problem.
> 
> I'm stumped so appreciate whatever you can uncover to help me out.
> 
> Bobb Menk
> MIT Lincoln Laboratory Library
> bm...@ll.mit.edu
> 
> <configvalues.xml>




On 30/05/2011, at 12.07, Gert Schmeltz Pedersen wrote:

> Please, send me your configvalues.xml file.
> 
> Thanks,
> Gert
> 
> 
> On 27/05/2011, at 16.31, Menk, Robert - 1150 - MITLL wrote:
> 
>> I think we're pretty close here.
>> 
>> I set the fedora home path like this:
>> <pathelement path="/usr/local/fedora"/>
>> 
>> 
>> Then I set the web server/tomcat path like this:
>> <target name="prepForWebServer"
>> <property name="webserver.path" location="/usr/share/tomcat6" />
>> 
>> 
>> Then I ran Ant and this shows how far it got this time:
>> Buildfile: configvalues.xml
>> prepForWebServer:
>> configBasic:
>> configDemoOnLucene:
>> configDemoSearchResultFiltering:
>> configDemoOnSolr:
>> configDemoOnZebra:
>> configTestOnLucene:
>> configDefault:
>>   [mkdir] Created dir:
>> /usr/share/tomcat6/webapps/fedoragsearch/WEB-INF/classes/config
>> BUILD FAILED
>> /var/lib/tomcat6/webapps/fedoragsearch/configvalues.xml:35:
>> /var/lib/tomcat6/webapps/fedoragsearch/${default.config.path} not found.
>> 
>> 
>> I'm not seeing anything in configvalues.xml that expects a /var/lib path so
>> I don't know what's trying to grab the /${default.config.path} value and not
>> getting it. 
>> 
>> Thanks again.
>> 
>> Bobb Menk
>> 
>> 
>> 
>> -----Original Message-----
>> From: Gert Schmeltz Pedersen [mailto:g...@dtic.dtu.dk] 
>> Sent: Friday, May 27, 2011 9:33 AM
>> To: Support and info exchange list for Fedora users.
>> Subject: Re: [fcrepo-user] gSearch installation questions for Fedora 3.4.2
>> 
>> It looks like your environment cannot substitute ${env.FEDORA_HOME} so you
>> should enter the actual value of FEDORA_HOME into configvalues.xml instead
>> of '${env.FEDORA_HOME}'
>> 
>> Best
>> Gert
>> 
>> 
>> On 27/05/2011, at 15.14, Menk, Robert - 1150 - MITLL wrote:
>> 
>>> Gert
>>> 
>>> (My experience level with Tomcat & XML in general is relatively basic, as
>>> you will no doubt already have gathered).
>>> 
>>> So I set my Index & Repository names in the configBasic target section as
>>> follows:
>>> 
>>> <property name="basic.index.1.indexdir"
>>> value="${fedora.home}/gsearch/${basic.Index1}" />
>>> <property name="basic.index.names" value="${basic.Index1}" />
>>> ....
>>> <property name="basic.repos.names" value="${basic.repository1}" />
>>> 
>>> 
>>> Then I saved the file and ran Ant on it per the instructions.
>>> 
>>> 
>>> That errored out as follows however:
>>> 
>>> Buildfile: configvalues.xml
>>> prepForWebServer:
>>> configBasic:
>>> BUILD FAILED
>>> /var/lib/tomcat6/webapps/fedoragsearch/configvalues.xml:100: Replace:
>> source
>>> file
>>> 
>> /var/lib/tomcat6/webapps/fedoragsearch/${env.FEDORA_HOME}/tomcat/webapps/fed
>>> oragsearch/WEB-INF/classes/configBasic/fedoragsearch.properties doesn't
>>> exist
>>> 
>>> 
>>> It looks like it just taking the literal string value for the fedora home
>>> path variable instead of using the actual path value. 
>>> 
>>> That makes me wonder if I have a problem here with the difference between
>>> $FEDORA_HOME and $CATALINA_HOME. Tomcat6 was already installed on this
>>> server so I needed to install Fedora to use the existing tomcat where it
>>> already lived, but I took the defaults for letting the install put Fedora
>>> where it wanted to. The paths look like this:
>>> 
>>> $FEDORA_HOME = /usr/local/fedora
>>> $CATALINA_HOME = /usr/share/tomcat6
>>> 
>>> Thanks again for your help.
>>> 
>>> Bobb Menk
>>> 
>>> 
>>> 
>>> -----Original Message-----
>>> From: Gert Schmeltz Pedersen [mailto:g...@dtic.dtu.dk] 
>>> Sent: Friday, May 27, 2011 3:17 AM
>>> To: Support and info exchange list for Fedora users.
>>> Subject: Re: [fcrepo-user] gSearch installation questions for Fedora 3.4.2
>>> 
>>>> 
>>>> <property name="default.config.path" location="${basic.config.path}" />
>>>> I'm assuming this means absolute path to the config folder under tomcat -
>>> In my case that would then be
>>> /usr/share/tomcat6/webapps/fedoragsearch/WEB-INF/classes/configBasic - is
>>> that correct?
>>> 
>>> 
>>> "Select the default config in configDefault" means setting the three
>>> properties here:
>>> 
>>>     <target name="configDefault"
>>>               description="select the default config, by setting these
>>> three properties">
>>>             <property name="default.config.path"
>>> location="${basic.config.path}" />
>>>             <property name="default.config.prefix"
>>> value="${basic.config.prefix}" />
>>>             <property name="default.index.1" value="${basic.index.1}" />
>>> 
>>> The three properties basic.config.path, basic.config.prefix, and
>>> basic.index.1 are defined here:
>>> 
>>>     <target name="configBasic"
>>>             description="set values for configBasic">
>>>             <property name="basic.config.name" value="configBasic" />
>>>             <property name="basic.config.path"
>>> value="${configs.path}/${basic.config.name}" />
>>>             <property name="basic.config.prefix" value="basic" />
>>>             <property name="basic.mimetypes" value="text/plain text/xml
>>> text/html application/pdf" />
>>>             <property name="basic.index.1" value="BasicIndex" />
>>>             <property name="basic.index.1.indexdir"
>>> value="${fedora.home}/gsearch/${basic.index.1}" />
>>>             <property name="basic.index.names" value="${basic.index.1}"
>>> />
>>>             <property name="basic.repos.1" value="BasicRepos" />
>>>             <property name="basic.repos.1.fedorasoap"
>>> value="http://localhost:8080"; />
>>>             <property name="basic.repos.1.fedorauser"
>>> value="fedoraAdmin" />
>>>             <property name="basic.repos.1.fedorapass"
>>> value="fedoraAdmin" />
>>>             <property name="basic.repos.1.fedoraobjectdir"
>>> value="${fedora.home}/data/objects" />
>>>             <property name="basic.repos.1.fedoraversion"
>>> value="${fedora.version}" />
>>>             <property name="basic.repos.names" value="${basic.repos.1}"
>>> />
>>> 
>>> So if you want to select configBasic as default, you do not have to modify
>>> in the target configDefault.
>>> 
>>>> 
>>>> <property name="default.config.prefix" value="${basic.config.prefix}" />
>>>> Not sure what kind of value is required for this - is it the name of the
>>> repository I want to configure or something else? (My repository here is
>>> called Repository1)
>>> 
>>> 
>>> The property basic.config.prefix is set to "basic" in configBasic (see
>>> above), it is used later in the target to name some files. The repository
>>> name is set in basic.repos.1. You may set it to "Repository1".
>>> 
>>>> 
>>>> <property name="default.index.1" value="${basic.index.1}" />
>>>> Should this be the same as the name of the repository or should I be
>>> creating a specific index name? (I was assuming I would use Index1 as an
>>> index name for Repository1).
>>> 
>>> 
>>> The index name is set in basic.index.1. You may set it to "Index1".
>>> 
>>>> 
>>>> Finally, when you say "Save this edited file outside of the web server"
>> do
>>> you mean outside of tomcat? Or outside of Apache?
>>> 
>>> 
>>> It is to save the file from being overwritten, if you should upgrade
>>> fedoragsearch, so outside of tomcat.
>>> 
>>> Best,
>>> Gert
>>> <smime.p7s><ATT00001.c><ATT00002.c>
>> 
>> 
>> ----------------------------------------------------------------------------
>> --
>> vRanger cuts backup time in half-while increasing security.
>> With the market-leading solution for virtual backup and recovery, 
>> you get blazing-fast, flexible, and affordable data protection.
>> Download your free trial now. 
>> http://p.sf.net/sfu/quest-d2dcopy1
>> _______________________________________________
>> Fedora-commons-users mailing list
>> Fedora-commons-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>> <smime.p7s><ATT00001.c><ATT00002.c>
> 


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to