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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
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

Reply via email to