Hello everyone,
I am trying to install GeoNetwork 2.10 on Ubuntu Server 12.04 using the
following XML install file:
<AutomatedInstallation langpack="eng">
<com.izforge.izpack.panels.HelloPanel/>
<com.izforge.izpack.panels.HTMLLicencePanel/>
<com.izforge.izpack.panels.TargetPanel>
<installpath>/usr/share/geonetwork</installpath>
</com.izforge.izpack.panels.TargetPanel>
<com.izforge.izpack.panels.PacksPanel>
<selected>
<pack index="0"/>
</selected>
</com.izforge.izpack.panels.PacksPanel>
<com.izforge.izpack.panels.InstallPanel/>
<com.izforge.izpack.panels.ShortcutPanel>
<programGroup name="GeoNetwork opensource"/>
<shortcut name="Open GeoNetwork opensource" initialState="1"
commandLine="" workingDirectory="/usr/share/geonetwork"
target="/usr/share/geonetwork/bin/win/start-stdln.html" type="1"
icon="/usr/share/geonetwork/bin/ico/gn.ico" group="true" description="This
opens the GeoNetwork homepage in a web browser" iconIndex="0"/>
<shortcut name="Start server" initialState="0" commandLine=""
workingDirectory="/usr/share/geonetwork/bin"
target="/usr/share/geonetwork/bin/start-geonetwork.sh" type="1"
icon="/usr/share/geonetwork/bin/ico/gnstart.ico" group="true"
description="This starts the GeoNetwork server" iconIndex="0"/>
<shortcut name="Stop server" initialState="0" commandLine=""
workingDirectory="/usr/share/geonetwork/bin"
target="/usr/share/geonetwork/bin/stop-geonetwork.sh" type="1"
icon="/usr/share/geonetwork/bin/ico/gnstop.ico" group="true"
description="This stops the GeoNetwork server" iconIndex="0"/>
<shortcut name="Start GAST" initialState="0" commandLine="-jar
"/usr/share/geonetwork/gast/gast.jar""
workingDirectory="/usr/share/geonetwork/bin" target="" type="1"
icon="/usr/share/geonetwork/bin/ico/gast.ico" group="true"
description="This starts GeoNetwork's Administrator Survival Tool"
iconIndex="0"/>
<shortcut name="Documentation" initialState="1" commandLine=""
workingDirectory="/usr/share/geonetwork"
target="/usr/share/geonetwork/web/geonetwork/docs/eng/users" type="1"
icon="/usr/share/geonetwork/bin/ico/docs.ico" group="true"
description="GeoNetwork opensource documentation" iconIndex="0"/>
<shortcut name="Release notes " initialState="1" commandLine=""
workingDirectory="/usr/share/geonetwork"
target="/usr/share/geonetwork/web/geonetwork/docs/readme.html" type="1"
icon="/usr/share/geonetwork/bin/ico/text.ico" group="true"
description="GeoNetwork desktop release notes " iconIndex="0"/>
<shortcut name="GPL License" initialState="1" commandLine=""
workingDirectory="/usr/share/geonetwork"
target="/usr/share/geonetwork/web/geonetwork/docs/license.html" type="1"
icon="/usr/share/geonetwork/bin/ico/text.ico" group="true"
description="GeoNetwork opensource GNU-GPL license " iconIndex="0"/>
<shortcut name="Uninstaller" initialState="0" commandLine="-jar
"/usr/share/geonetwork/Uninstaller/uninstaller.jar""
workingDirectory="" target="java" type="1" icon="trashcan_full"
group="true" description="" iconIndex="0"/>
</com.izforge.izpack.panels.ShortcutPanel>
<com.izforge.izpack.panels.HTMLInfoPanel/>
<com.izforge.izpack.panels.FinishPanel/>
</AutomatedInstallation>
When I run the install executable I get the following output:
$ java -jar geonetwork-install-2.10.3-0.jar geonetwork.install.xml
[ Starting automated installation ]
Read pack list from xml definition.
Modify pack selection.
java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.elementAt(Vector.java:447)
at
com.izforge.izpack.installer.AutomatedInstaller.updateInstanceCount(Unknown
Source)
at com.izforge.izpack.installer.AutomatedInstaller.doInstall(Unknown
Source)
at com.izforge.izpack.installer.Installer.main(Unknown Source)
[ Automated installation FAILED! ]
What could be wrong? Am I missing some package? Or is there something wrong
with the install XML?
Thank you.