In the 2.4.x branch, I recall that the provided gast.bat and gast.sh scripts worked without problems,
however starting from the 2.6.x branch they trigger a multiple folder and file selection script.
Changing them as follows
[gast.bat] for Windows
%This is the original broken 2.6.x startup script, commented out.
%cd ..\gast
%start javaw %1 -jar gast.jar
%Fixed script starts below
cd ..\web\geonetwork
start javaw %1 -jar ..\..\gast\gast.jar
[gash.sh] for Linux
#This is the original broken 2.6.x startup script, commented out.
#cd ../gast
#java $1 -jar gast.jar $2
#Fixed script starts below
cd ../web/geonetwork
java $1 -jar ../../gast/gast.jar $2
restores original functionality. Weird how this wasn't fixed or mentioned over the whole 2.6.x branch's releases.
Hello Samuel,
maybe this tip I posted a while ago about the GAST startup scripts may come
in handy in your case. For some reason, the startup scripts and/or default
paths/behavior of GAST were changed after the 2.4.x branches and stopped
working. Changing them as follows will restore initial functionality.
---------- Forwarded message ----------
From: Victor Epitropou <vepitrop@anonymised.com>
Date: Mon, Mar 21, 2011 at 3:09 PM
Subject: [GeoNetwork-users] GAST startup scripts broken in 2.6.x branch?
To: geonetwork-users@lists.sourceforge.net
In the 2.4.x branch, I recall that the provided gast.bat and gast.sh
scripts worked without problems,
however starting from the 2.6.x branch they trigger a multiple folder
and file selection script.
Changing them as follows
[gast.bat] for Windows
%This is the original broken 2.6.x startup script, commented out.
%cd ..\gast
%start javaw %1 -jar gast.jar
%Fixed script starts below
cd ..\web\geonetwork
start javaw %1 -jar ..\..\gast\gast.jar
[gash.sh] for Linux
#This is the original broken 2.6.x startup script, commented out.
#cd ../gast
#java $1 -jar gast.jar $2
#Fixed script starts below
cd ../web/geonetwork
java $1 -jar ../../gast/gast.jar $2
restores original functionality. Weird how this wasn't fixed or
mentioned over the whole 2.6.x branch's releases.
That did the job, thanks very much! Such a simple fix - I edited the two-line
gast.bat file, and now the GAST tool is accessible to me.
However...I'm tripped up again when trying to export my metadata via GAST -
with GeoNetwork running, as required. I'm getting an
IllegalArgumentException error i.e. 'host must not be null'. In
GAST->Export, I set the output folder, specified format, and left the Skip
UUID box unchecked, but the rest is a little unclear - why is a free text
search box provided but not the option to navigate to and select some or all
of the specific metadata records in my GN installation? With some
experimenting I found that searching doesn't work anyway, and further, I'm
not allowed to set Site ID and Group Owner (they're grayed-out). So, when I
click Retrieve (next to Site ID drop-down) or Export, I get the above error
message.
Do you or does anyone know what I can do to get around this problem?
Thanks for any further help!
Sam--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/GAST-startup-scripts-broken-in-2-6-x-branch-tp6192176p6318277.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.