Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux Izpack控制台安装_Linux_Console Application_Izpack - Fatal编程技术网

Linux Izpack控制台安装

Linux Izpack控制台安装,linux,console-application,izpack,Linux,Console Application,Izpack,我正在尝试让一个无头安装程序工作(从远程Linux的命令行安装) 但是每次我运行命令时,我都会立即得到这个消息 java -jar install.jar -console [ Console Installation done ] 我需要做什么才能让安装程序使用-console命令呢?我宁愿让它工作,也不愿求助于使用自动安装XML文件 下面是我使用izpack5.0.0的izpackxml <?xml version="1.0" encoding="iso-8859-1" stan

我正在尝试让一个无头安装程序工作(从远程Linux的命令行安装)

但是每次我运行命令时,我都会立即得到这个消息

java -jar install.jar -console
[ Console Installation done ] 
我需要做什么才能让安装程序使用-console命令呢?我宁愿让它工作,也不愿求助于使用自动安装XML文件

下面是我使用izpack5.0.0的izpackxml

 <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>

<!-- 
    A sample installation file.
    Use it as a base for your own installers :-)

    To compile it :
    - go in the bin directory where you installed IzPack
    - call "compile ../sample/install.xml -b ../sample"
-->

<installation version="1.0">

    <!-- 
        The info section.
        The meaning of the tags should be natural ...
    -->
    <info>
        <appname>EMEProvisioningSDK</appname>
        <appversion>${project.version}-Linux</appversion>
      <!--
        <authors>
            <author name="Anthony Lafleur-Tighe" email="anthony.lafleur-tighe@ericsson.com"/>
        </authors>
        <url>http://prodcat.ericsson.se/frontend/category.action?code=FGB%20101%20652&path=%5cNavigation%20Root%5cFGA%20101%2017%5cFGB%20101%20743%5cFGB%20101%20399</url>
Roll       -->
    </info>

    <!-- 
        The gui preferences indication.
        Sets the installer window to 640x480. It will not be able to change the size.
    -->
    <guiprefs width="640" height="480" resizable="yes"/>

    <!-- 
        The locale section.
        Asks here to include the English and French langpacks.
    -->
    <locale>
        <langpack iso3="eng"/>
    </locale>

    <!-- 
        The resources section.
        The ids must be these ones if you want to use the LicencePanel and/or the InfoPanel.
    -->
    <resources>
        <res id="LicencePanel.licence" src="Licence.txt"/>
        <res id="InfoPanel.info" src="Readme.txt"/>
        <res id="ProcessPanel.Spec.xml" src="installProvisioningPanelSpec_linux.xml" />
        <res id="shortcutSpec.xml" src="shortcutSpec_linux.xml" />
    </resources>

    <!-- 
        The panels section.
        We indicate here which panels we want to use. The order will be respected.
    -->
    <panels>
        <panel classname="HelloPanel"/>
        <panel classname="InfoPanel"/>
        <panel classname="LicencePanel"/>
        <panel classname="TargetPanel"/>
        <panel classname="PacksPanel"/>
        <panel classname="InstallPanel"/>
        <panel classname="ProcessPanel" />
        <panel classname="ShortcutPanel"/>
        <panel classname="FinishPanel"/>
    </panels>

    <!-- 
        The packs section.
        We specify here our packs.
    -->
    <packs>
        <pack name="Base" required="yes">
            <description>The base files</description>
            <file src="Readme.txt" targetdir="$INSTALL_PATH"/>
            <file src="Licence.txt" targetdir="$INSTALL_PATH"/>
            <file src="unzip.exe" targetdir="$INSTALL_PATH"/>
            <file src="changePermissions.sh" targetdir="$INSTALL_PATH"/>
        </pack>
        <pack name="MCDProxy" required="yes">
            <description>The MCDProxy</description>
            <file src="install_mcd.sh" targetdir="$INSTALL_PATH"/>
            <file src="mcdproxy-component-eme-resource-assembly.zip" targetdir="$INSTALL_PATH"/>
            <file src="global-config.zip" targetdir="$INSTALL_PATH"/>
            <file src="MCDPROXY-CXC1736424-win32.zip" targetdir="$INSTALL_PATH"/>
            <file src="postgresql-jdbc-driver.jar" targetdir="$INSTALL_PATH"/>
        </pack>
        <pack name="Tomcat" required="yes">
            <description>Tomcat 7, web container for Provisioning Agent</description>
            <file src="tomcat-7.0.20-noarch-full.zip" targetdir="$INSTALL_PATH"/>
            <file src="install_tomcat.sh" targetdir="$INSTALL_PATH"/>
            <file src="tomcat-users.xml" targetdir="$INSTALL_PATH"/>
            <file src="security-component.jar" targetdir="$INSTALL_PATH"/>
            <file src="libsysutils-component.jar" targetdir="$INSTALL_PATH"/>
            <file src="libsysutils.so" targetdir="$INSTALL_PATH"/>
            <file src="common-oam.jar" targetdir="$INSTALL_PATH"/>
            <file src="common-debug.jar" targetdir="$INSTALL_PATH"/>
            <file src="common-cache.jar" targetdir="$INSTALL_PATH"/>
            <file src="common-mcd.jar" targetdir="$INSTALL_PATH"/>
            <file src="common-crypto.jar" targetdir="$INSTALL_PATH"/>
            <file src="mcc_common.jar" targetdir="$INSTALL_PATH"/>
        <file src="common-xml.jar" targetdir="$INSTALL_PATH"/>
    <file src="mcc_mfs.jar" targetdir="$INSTALL_PATH"/>
    <file src="mcc_sm.jar" targetdir="$INSTALL_PATH"/>
            <file src="security-component.jar" targetdir="$INSTALL_PATH"/>
            <file src="authentication-api.jar" targetdir="$INSTALL_PATH"/>
            <file src="mcc_identityformatter.jar" targetdir="$INSTALL_PATH"/>
            <file src="mail.jar" targetdir="$INSTALL_PATH"/>
            <file src="javax.mail-api.jar" targetdir="$INSTALL_PATH"/>
            <file src="mio-valve.jar" targetdir="$INSTALL_PATH"/>
            <file src="mio-filters.jar" targetdir="$INSTALL_PATH"/>
            <file src="mio_startup.sh" targetdir="$INSTALL_PATH"/>
        </pack>
        <pack name="Provisioning Agent" required="yes">
            <description>The Provisioning Agent</description>
            <file src="install_pa.sh" targetdir="$INSTALL_PATH"/>
            <file src="provisioningagent-web.war" targetdir="$INSTALL_PATH"/>
            <file src="provisioningagent-eme-config-assembly.zip" targetdir="$INSTALL_PATH"/>
            <file src="samples.zip" targetdir="$INSTALL_PATH"/>

        </pack>
        <pack name="PostgreSQL" required="yes">
            <description>PostgreSQL Relational DB</description>
            <file src="postgresql-9.1.2-150.1.x86_64.rpm" targetdir="$INSTALL_PATH"/>
            <file src="postgresql-libs-9.1.2-66.1.x86_64.rpm" targetdir="$INSTALL_PATH"/>
            <file src="postgresql-server-9.1.2-150.1.x86_64.rpm" targetdir="$INSTALL_PATH"/>
            <file src="pg_hba.conf" targetdir="$INSTALL_PATH"/>
            <file src="install_postgresql.sh" targetdir="$INSTALL_PATH"/>
            <executable targetfile="$INSTALL_PATH/changePermissions.sh" type="bin" stage="postinstall" keep="true" failure="warn" os="linux">
             <args>
               <arg value="$INSTALL_PATH"/> 
              </args>
            </executable>
        </pack>
    </packs>
</installation>

emegsdk
${project.version}-Linux
基本文件
代理
Tomcat 7,供应代理的web容器
资源调配代理
PostgreSQL关系数据库
更改行

<installation version="1.0">



IzPack 5.0.*无法在1.0版上正常工作。

如果您希望在此处找到有用的答案,您确实应该说明您的IzPack版本并发布install.xml。您是否尝试将-DTRACE=TRUE添加到命令行以获取更多信息?您是对的,我也使用DTRACE添加了我的XML文件我得到了包的初始化内置条件。Pack.getCondition():对于Pack Base1 Pack.getCondition():对于Pack MCDProxy Pack.getCondition():null对于Pack Tomcat Pack.getCondition():null对于Pack Provisionin Pack.getCondition():null对于Pack postgresql还没有发布版本5.0.0(最后一个版本是昨天发布的5.0.0-rc1),因此,您可能正在使用一个测试版,它可能无法正常工作。我的猜测是用5.0.0-rc1试试这个。我用这个版本构建了一个工作控制台安装程序。乍一看,You install.xml并没有任何可疑之处。我通过对每个面板执行操作,成功地使其正常工作,这非常奇怪。然而,我只是尝试了5.0.0-rc1版本,它与我的旧代码完美地结合在一起。谢谢你的帮助
<installation version="5.0">