How to install

IN THIS PAGE YOU CAN FIND THE INSTRUCTIONS TO INSTALL 4WS.PLATFORM – CE

These steps are related to the Community Edition, which can be freely downloaded and installed on premise.

The Enterprise Edition is available as a SaaS on the Google Cloud, so you do not need to configure anything: the service is available istantly, once purchased the service.

 

THE STEPS NEEDED TO INSTALL THE PRODUCT

    1. Install JDK 1.7.x in your machine, if not already available; please, do not use other versions, such as OpenJDK, otherwise some parts of the product would not work correctly.
    2. 4WS.Platform requires the availability of an empty database schema: install a database server (if not already installed) and then create an empty database in one of the supported databases (Oracle, MySQL 5.x or above, SQLServer 2008 or above, PostgreSQL 9 or above) and be sure to provide grants to create objects to the database user that 4WS.Platform will use to connect to that schema.
    3.  4WS.Platform requires a Java web container, such as Tomcat 7. If you have already installed it for other purposes, you can reuse it; if you do not have installed it yet, the 4WS.Platform installer will install it along with the product, since it is included in the distribution. You can download 4WS.Platform from the Sourceforge repository: http://sourceforge.net/projects/xwsplatform/files
    4. Decompress the .zip file downloaded from the repository and execute the installer.
      If you are using recent versions of Windows (e.g. Vista o next versions), you have to use a superuser and open a DOS prompt by right clicking on it and choose “Run as Administrator”: that is the right way to install the program. DO NOT simply execute the installer using a superuser (e.g. administrator), since this has not the same effect.
      There are two types of installer: an installer having a graphical user interface and the other without it. The first can be used with Windows or other graphical operating systems; in that case you have simply to follow the wizard and fill out all information required, including database type, host, port and the schema account. With the second one, you have to provide the same information, by executing the installer from the shell.

      1. In order to run the installer having a graphical user interface, type the following command from the shell: installgui.sh or installgui.bat.
      2. The installer without a graphical user interface can be invoked from the shell: this comes in handy where you are using a remote access to a server (such as ssh or telnet) or when there is not a GUI environment; this installer requires to specify a series of data, the same provided using the GUI version. In order to run the installer without the GUI, type the command install.sh or install.bat, according to the operating system in use. Independently of the execution mode, you have to provide some a few data required to correctly install and configure the product:
        1. database settings, required to connect to the database schema, where the installer will create automatically all the required tables and initial data
        2. company id; it represents a 5 characters code to use to partition all data for a specific “tentant”: 4WS.Platform supports multi-tenancy, that is to say, you can run the same application for distinct organizations, each identified by a specific company id, which is used to partition data per organization
        3. default language code; 4WS.Platform supports any number of languages
        4. installation path, where Tomcat will be installed; if you want to reuse an already existing Tomcat 7 installation, you can simply specify that path and the installer will skip the Tomcat installation task and will install and configure the 4WS.Platform web application only
        5. JDK path: pay attention to this path! it is NOT the JRE path, but the JDK path: if you erroneously set the JRE instead of the JDK, Tomcat will not work correctly and you will not be able to access 4WS.Platform web application; in that case, you have to delete the installation and run the installer again
        6. 4WS.Platform web context; the web context is the folder name within webapps Tomcat’s subfolder where the web application will be installed; the same name will be used to connect from a browser; for instance, if you set that web context to “platform”, then the URL to specify in your browser would be: http://host:port/platform
    5. Run Tomcat A.S. and use a browser to connect to the web application; typical URL is: http://localhost:8080/platform

The default account to use is:

company id: 00000

site id: 100

username: ADMIN

password: admin

It is recommended to use Chrome or Mozilla Firefox browsers; Internet Explorer 8 or above are also supported, but they are not optimized for javascript usage as for the other two browsers.

TROUBLESHOOTING

Be careful: avoid the installation of Tomcat in paths having a space in folders, such as C:\Program Files

Windows operating system could have problems in recognizing the correct path.

If you are using recent versions of Windows (Vista or next versions), you have to use a superuser and open the prompt by right clicking on it and choose “Run as Administrator”: that is the right way to install the program. DO NOT simply execute the installer using a superuser (e.g. administrator), since this has not the same effect.

Moreover, pay attention to the port configured in Tomcat: in Linux/Unix O.S. you could have to change OS settings in order to allow the use of that port by Tomcat.

If the installation process was successfully completed but when you start Tomcat it terminates immediately or 4WS.Platform is not accessible, it is likely that you have specified the wrong JDK path during the installation process: it is NOT the JRE path, but the JDK path: in that case, you have to delete the installation and run the installer again.

If you have changed the HTTP port in tomcat/conf/server.xml file, the URL to use in the browser to connect to 4WS.Platform changes as well.

If you are using MySQL database and it seems that every SQL command is autocommitted, probably there is an erroneous configuration in the database schema: pay attention to the “table type” defined at table level in MySQL: MyISAM does not support transations; if this is the table type defined for yuor tables, you have to change it to InnoDB.

INSTALLATION STEPS

  • Start

    Type the following command from the shell: installgui.sh or installgui.bat.

  • Setting database

    Insert data of database connection.

  • Setting config

    Complete configuration fields for installation.

  • End

    Enjoy 4WS.Platform.