Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: install.xml code block update

...

  • Code Block
    languagexml
    titleConfiguration of the joc_install.xml file
    linenumberstrue
    collapsetrue
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!-- 
    XML configuration file for JOC
    
    If you call the installer with this XML file then 
    you accept at the same time the terms of the 
    licence agreement under GNU GPL 2.0 License 
    (see http://www.gnu.org/licenses/gpl-2.0.html)
    -->
    <AutomatedInstallation langpack="eng">
        <com.izforge.izpack.panels.UserInputPanel id="home">
            <userInput/>
        </com.izforge.izpack.panels.UserInputPanel>
        <com.izforge.izpack.panels.HTMLLicencePanel id="gpl_licence"/>
        <com.izforge.izpack.panels.TargetPanel id="target">
            
            <!-- SELECT THE INSTALLATION PATH
                 It must be absolute! 
                 For example:
                 /opt/sos-berlin.com/joc on Linux
                 C:\Program Files\sos-berlin.com\joc on Windows -->
            <installpath>[:choose absolute installation path of JOC:]</installpath>
            
        </com.izforge.izpack.panels.TargetPanel>
        
        <com.izforge.izpack.panels.UserInputPanel id="jetty">
    		<userInput>
    						
    			<!-- JOC requires a servlet container    <userInput>
                
                <!-- JOC requires a servlet container such as Jetty. 
    				                 If a servlet container already installed then you can use it. 
    				                 Otherwise a Jetty will be installed in addition if withJettyInstall=yes.
    				                 You need root permissions to install JOC with Jetty. -->
    			<entry key="withJettyInstall" value="yes"/>
    			            <entry key="jettyPortwithJettyInstall" value="4446yes"/>
                <!-- Only necessary for Windows -->
    			<entry key="jettyStopPortjettyPort" value="404464446"/>
                <!-- OnlySpecify necessarythe forname Unix -->
           of the Windows service or Linux Daemon (default: joc).
         <entry key="withJocInstallAsDaemon" value="yes"/>
              Only necessary <!-- Path to Jetty base directory -->
         for multiple instances of JOC on one server. It must be 
           <entry key="jettyBaseDir" value=""/>
            unique per server. This 
    entry is deactivated by a comment because it
         <!-- Java options for Jetty. -->
           MUST NOT BE CHANGED DURING <OVER-INSTALLATION! -- Initial memory pool (-Xms) in MB -->>
                <!--
                <entry key="jettyOptionXmsjettyServiceName" value="128joc"/>
                <!-- Maximum memory pool (-Xmx) in MB -->
                <!-- Only necessary for Windows -->
                <entry key="jettyOptionXmxjettyStopPort" value="51240446"/>
                <!-- Only Threadnecessary stackfor sizeUnix (-Xss)root inpermissions KBrequired) -->
                <entry key="jettyOptionXsswithJocInstallAsDaemon" value="4000yes"/>
                <!-- Path to FurtherJetty Javabase optionsdirectory -->
                <entry key="jettyOptions" value=""/>
    				
    		</userInput>
    	</com.izforge.izpack.panels.UserInputPanel>
        <com.izforge.izpack.panels.UserInputPanel id="reportingDatabase">For example:
            <userInput>
             /home/[user]/sos-berlin.com/joc on Linux
     <!-- Reporting Database Configuration -->
                C:\ProgramData\sos-berlin.com\joc on Windows   -->
                <!-- Choose the database management system. Supported values are 'mysql' for MySQL,
       <entry key="jettyBaseDir" value=""/>
                
                <!-- Java 'oracle'options for Oracle, 'mssql' for MS SQL Server, 'pgsql' for PostgreSQL.Jetty. -->
                <!-- Initial memory pool (-Xms) in MB -->
                <entry key="reporting.databaseDbmsjettyOptionXms" value="mysql128"/>
                <!-- Maximum memory pool 
    (-Xmx) in MB -->
         </userInput>
        </com.izforge.izpack.panels.UserInputPanel>
        <com.izforge.izpack.panels.UserInputPanel id="reportingDbconnection"<entry key="jettyOptionXmx" value="512"/>
            <userInput>
        <!-- Thread stack      <!-- Reporting Database Configurationsize (-Xss) in KB -->
                <entry     key="jettyOptionXss" value="4000"/>
                <!-- EnterFurther Java the name or ip address of the database host 
    options -->
                <entry key="jettyOptions" value=""/>
               This entry
     can also be used to configure the URL(s) for Oracle RAC databases. </userInput>
        </com.izforge.izpack.panels.UserInputPanel>
        
          <com.izforge.izpack.panels.UserInputPanel id="reportingDatabase">
           For example:<userInput>
                <!-- Reporting Database Configuration -->
      <entry key="reporting.databaseHost" value="(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=OFF)(FAILOVER=ON)
            
                (ADDRESS=(PROTOCOL=TCP)(HOST=tst-db1.myco.com)(PORT=1604))
             <!-- Database connection settings can be specified with following entries such as
               (ADDRESS=(PROTOCOL=TCP)(HOST=tst-db2.myco.com)(PORT=1604)))
          databaseHost, databasePort, ... or by a hibernate configuration file 
         (CONNECT_DATA=(SERVICE_NAME=mydb1.myco.com)(SERVER=DEDICATED)))"/>
                  Posible values are The "reporting.databaseSchema"'withoutHibernateFile' (default) and "reporting.databasePort" entries should then be left empty. 'withHibernateFile'. -->
                <entry key="reporting.databaseHostdatabaseConfigurationMethod" value="withoutHibernateFile"/>
                
         
                <!-- EnterChoose the portdatabase number for the database instancemanagement system. DefaultSupported portsvalues are 'mysql' for MySQL,
     3306, 
                   'oracle' for Oracle 1521,, 'mssql' for MS SQL Server 1433, postgreSQL 5432., 'pgsql' for PostgreSQL.
                     Only if reporting.databaseConfigurationMethod=withoutHibernateFile -->
                <entry key="reporting.databasePortdatabaseDbms" value="mysql"/>
                
                <!-- Enter the schema Path to a hibernate configuration file if reporting.databaseConfigurationMethod=withHibernateFile -->
                <entry key="reporting.databaseSchemahibernateConfFile" value=""/>
                
             </userInput>
       <!-- Enter the user name for database access --> </com.izforge.izpack.panels.UserInputPanel>
        
                <entry key="reporting.databaseUser" value=""/<com.izforge.izpack.panels.UserInputPanel id="reportingDbconnection">
                <userInput>
                <!-- EnterReporting theDatabase passwordConfiguration for database accessif reporting.databaseConfigurationMethod=withoutHibernateFile -->
                 <entry key="reporting.databasePassword" value=""/>
      
              
      <!-- Enter the name or ip </userInput>
    address of the  </com.izforge.izpack.panels.UserInputPanel>
        <com.izforge.izpack.panels.UserInputPanel id="database">database host 
            <userInput>
             This entry can <!-- JobScheduler Database Configuration -->
                
         also be used to configure the URL(s) for Oracle RAC databases.
           <!-- Set 'yes' if the Reporting and the JobScheduler database are the same.For example:
                     If 'yes' then further JobScheduler database variables are ignored. -->
    <entry key="reporting.databaseHost" value="(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=OFF)(FAILOVER=ON)
                       <entry key="sameDbConnection" value="yes"/>
     (ADDRESS=(PROTOCOL=TCP)(HOST=tst-db1.myco.com)(PORT=1604))
                        (ADDRESS=(PROTOCOL=TCP)(HOST=tst-db2.myco.com)(PORT=1604)))
                <!-- Choose the database management system. Supported values are 'mysql' for MySQL,
            (CONNECT_DATA=(SERVICE_NAME=mydb1.myco.com)(SERVER=DEDICATED)))"/>
                     The "reporting.databaseSchema" and "reporting.databasePort" entries should then 'oracle'be forleft Oracle, 'mssql' for MS SQL Server, 'pgsql' for PostgreSQL,
    empty. -->
                <entry key="reporting.databaseHost" value=""/>
              'db2' for DB2
     and 'sybase' for Sybase. -->
           <!-- Enter the port number <entry key="databaseDbms" value=""/>
               for the database instance. Default ports are for MySQL 3306, 
            </userInput>
        </com.izforge.izpack.panels.UserInputPanel>
        <com.izforge.izpack.panels.UserInputPanel id="dbconnection">
            <userInput> Oracle 1521, MS SQL Server 1433, postgreSQL 5432. -->
                <!-- JobScheduler Database Configuration --<entry key="reporting.databasePort" value=""/>
                     
                <!-- Enter the name or ip address of the database host 
     schema -->
                <entry key="reporting.databaseSchema" value=""/>
                
          This entry can also be used to configure<!-- Enter the URL(s)user name for Oracledatabase RAC databases.access -->
                <entry key="reporting.databaseUser" value=""/>
       For example:
            
             <entry    <!-- Enter the password for database access -->
                <entry key="databaseHostreporting.databasePassword" value="(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=OFF)(FAILOVER=ON)"/>
                
            </userInput>
        </com.izforge.izpack.panels.UserInputPanel>
        
        <com.izforge.izpack.panels.UserInputPanel id="reportingJdbc">
            <userInput>
                <!-- Reporting Database Configuration 
                     NOT SUPPORTED FOR SYBASE AND DB2 -->
                
                <!-- You can specify an external JDBC connector then set reporting.internalConnector = no
                     For license reasons MySQL, MS SQL Server and Oracle ojdbc7 JDBC 
                     drivers are not provided. 
                     Alternatively you can use the mariadb JDBC Driver for MySQL and 
                     the jTDS JDBC Driver for MS SQL Server and Sybase which is provided. 
                     An Oracle ojdbc6 JDBC driver is also provided. -->
                     
                <!-- You can choose between 'yes' or 'no' for using the internal JDBC connector
                     or not -->
                <entry key="reporting.internalConnector" value="yes"/>
                     
                <!-- Select the path to JDBC Driver -->
                <entry key="reporting.connector" value=""/>
                
            </userInput>
        </com.izforge.izpack.panels.UserInputPanel>
        
        <com.izforge.izpack.panels.UserInputPanel id="database">
            <userInput>
                <!-- JobScheduler Database Configuration -->
                
                <!-- Set 'yes' if the Reporting and the JobScheduler database are the same.
                     If 'yes' then further JobScheduler database variables are ignored. -->
                <entry key="sameDbConnection" value="yes"/>
                
                <!-- Database connection settings can be specified with following entries such as
                     databaseHost, databasePort, ... or by a hibernate configuration file 
                     Posible values are 'withoutHibernateFile' (default) and 'withHibernateFile'. -->
                <entry key="databaseConfigurationMethod" value="withoutHibernateFile"/>
                     
                <!-- Choose the database management system. Supported values are 'mysql'  (ADDRESS=(PROTOCOL=TCP)(HOST=tst-db1.myco.com)(PORT=1604))for MySQL,
                     'oracle' for  (ADDRESS=(PROTOCOL=TCP)(HOST=tst-db2.myco.com)(PORT=1604)))
           Oracle, 'mssql' for MS SQL Server, 'pgsql' for PostgreSQL,
                 (CONNECT_DATA=(SERVICE_NAME=mydb1.myco.com)(SERVER=DEDICATED)))"/>
        'db2' for DB2 and 'sybase' for Sybase. 
          The "databaseSchema" and "databasePort" entries should then be left empty.           Only if databaseConfigurationMethod=withoutHibernateFile -->
                <entry key="databaseHostdatabaseDbms" value=""/>
                 
                <!-- EnterPath theto porta numberhibernate forconfiguration thefile database instance. Default ports are for MySQL 3306, 
    if databaseConfigurationMethod=withHibernateFile -->
                <entry key="hibernateConfFile" value=""/>
             Oracle 1521, MS SQL
     Server 1433, postgreSQL 5432, DB2 50000, Sybase 5000. --> </userInput>
        </com.izforge.izpack.panels.UserInputPanel>
        
        <entry key<com.izforge.izpack.panels.UserInputPanel id="databasePort" value=""/dbconnection">
                <userInput>
                <!-- Enter the schemaJobScheduler Database Configuration if databaseConfigurationMethod=withoutHibernateFile -->
                   <entry key="databaseSchema" value=""/>
                
    <!-- Enter the name or ip address of the database host 
     <!-- Enter the user name for database access -->
            This  entry can <entry key="databaseUser" value=""/>
            also be used to configure the URL(s) for Oracle RAC databases.
        
                <!-- EnterFor theexample:
     password for database access -->
                <entry key="databasePassworddatabaseHost" value=""/>
    (DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=OFF)(FAILOVER=ON)
                         (ADDRESS=(PROTOCOL=TCP)(HOST=tst-db1.myco.com)(PORT=1604))
                <!-- You have to provide the MySQL, MS SQL Server, Sybase or DB2 JDBC driver respectively if you selected 
     (ADDRESS=(PROTOCOL=TCP)(HOST=tst-db2.myco.com)(PORT=1604)))
                         (CONNECT_DATA=(SERVICE_NAME=mydb1.myco.com)(SERVER=DEDICATED)))"/>
           corresponding DBMS type. For license reasons MySQL, Sybase and MS SQLThe Server"databaseSchema" JDBC Drivers are 
           and "databasePort" entries should then be left empty. -->
              not provided. Alternatively you can use the mariadb JDBC Driver for MySQL and 
       <entry key="databaseHost" value=""/>
                
                <!-- Enter the jTDSport JDBCnumber Driverfor forthe MSdatabase SQLinstance. ServerDefault andports Sybaseare whichfor isMySQL provided. -->3306, 
                     
    Oracle 1521, MS SQL Server 1433, postgreSQL 5432, DB2 50000, Sybase 5000. <!-->
     You can choose between 'yes' or 'no'  for using the jTDS JDBC Driver<entry key="databasePort" value=""/>
                
         This   entry affects only MS SQL Server or Sybase<!-- Enter the schema -->
                <entry key="connectorJTDSdatabaseSchema" value="yes"/>
                
                <!-- Enter the user name for database access -->
      You can choose between 'yes' or 'no' for using the mariadb JDBC Driver<entry key="databaseUser" value=""/>
                
         This entry affects only MySQL       <!-- Enter the password for database access -->
                <entry key="connectorMariadatabasePassword" value="yes"/>
                
            </userInput>
        </com.izforge.izpack.panels.UserInputPanel>
        
        <com.izforge.izpack.panels.UserInputPanel id="jdbc">
            <userInput>
                <!-- JobScheduler Database Configuration -->
                     
                <!-- Configuration for JDBC Driver 
     You can specify an external JDBC connector then set internalConnector = no
                     For  This entry is only necessary if you selected a DBMS type such as MySQL, 
    license reasons MySQL, Sybase, MS SQL Server and Oracle ojdbc7 JDBC 
                     drivers are not provided. 
       MS SQL Server, Sybase ot DB2 in the previous <userInput> element. -->
       Alternatively you can use the mariadb JDBC Driver for MySQL and 
       
                <!-- You havethe tojTDS provideJDBC theDriver MySQL,for MS SQL Server, and Sybase orwhich DB2is JDBCprovided. driver
     respectively if you selected 
                An Oracle ojdbc6 JDBC driver correspondingis DBMSalso type. For license reasons MySQL and MS SQL Server JDBC Drivers are 
    provided.
                     An internal JDBC connector for DB2 is    not provided. Specify the JDBC Driver source (e.g. mysql-connector-java-*.jar for MySQL, 
    available -->
                     
        sqljdbc.jar for MS SQL Server, jconn3.jar for Sybase). Alternatively you <!-- You can usechoose thebetween mariadb'yes' 
    or 'no' for using the internal JDBC connector
              JDBC Driver for MySQL and the jTDS JDBCor Driver for MS SQL Server and Sybase which is provided. -->
    not -->
                <entry key="internalConnector" value="yes"/>
                
                <!-- Select the path to JDBC Driver -->
                <entry key="connector" value=""/>
                
                <!-- Only for DB2: Select the path to DB2 license file for JDBC Driver -->
                <entry key="connectorLicense" value=""/>
                
            </userInput>
        </com.izforge.izpack.panels.UserInputPanel>
        
        <com.izforge.izpack.panels.UserInputPanel id="end">
            <userInput/>
        </com.izforge.izpack.panels.UserInputPanel>
        
        <com.izforge.izpack.panels.InstallPanel id="install"/>
        
        <com.izforge.izpack.panels.ProcessPanel id="process"/>
        
        <com.izforge.izpack.panels.FinishPanel id="finish"/>
    
    </AutomatedInstallation>
    
    
    

Batch installation is started by opening a terminal or command window in the folder containing the setup.* file and typing:

...