1. Software configuration

Eclipse IDE configuration

  • Set JDK 7 as default JRE of Eclipse

The following steps should be performed:
    • Open Eclipse and select from menu Window -> Preferences 
    • In the dialog that opens, select in the left side navigation tree the path Java -> Installed JREs
    • Make sure that JDK 7 is the default JRE. If JDK 7 is not even present in the list of installed JREs add it using the Add... button

  • Change Java compiler Errors/Warnings

The following steps should be performed:
    • Open Eclipse and select from menu Window -> Preferences 
    • In the dialog that opens, select in the left side navigation tree the path Java -> Compiler -> Errors/Warnings
    • In the right side of the window locate section Deprecated and restricted API and change the value of the property Forbidden reference from Error to Warning.

  • Install Google plugin for Eclipse

The plugin is installed from https://developers.google.com/eclipse/docs/download. All the steps to install the plugin can be found at the mentioned link.
Out of the components of the plugin it is necessary to install only the Google Plugin for Eclipse component

  • Register Glassfish Server

The following steps should be performed:
    • Open Eclipse and select from menu Help -> Eclipse Marketplace...
    • In the dialog that opens, search for "glassfish tools" and install the GlassFish Tools for the Eclipse version you are using.
    • After you restart Eclipse select from menu Window -> Show View -> Other...
    • In the dialog that opens, select in the tree Server -> Servers. This will cause a new tab named "Servers" to appear in Eclipse.
    • Click on the link "No servers are available..."
    • In the dialog that opens select GlassFish Server 3.1 as server type

    • Click Next and fill in GlassFish information.
For the Server root select the glassfish directory under the installation directory of glassfish: <glassfish installation dir>/glassfish


    • Click Next and select the glassfish domain. This is a domain folder found under <glassfish installation dir>/glassfish/domains. Unless you created multiple domains in GlassFish you can accept the default proposed value.

    • Complete the wizard

Glassfish Server configuration

  • Configure JVM Options

The following steps should be performed:
    • Open GlassFish Server Administration Console by navigating the web browser to http://localhost:4848 (this url is valid for the situation when the web browser is started on the same machine where GlassFish server is installed)
    • In the left side navigation tree select Configurations -> server-config -> JVM Settings and then in the page that opens select JVM Options tab.
      • Depending on the available RAM resources modify the following options (you can also leave them with their default values):
        • -XX:MaxPermSize: recommended 512m (-XX:MaxPermSize=512m)
        • -XX:PermSize: usually half of MaxPermSize (recommended -XX:PermSize=256m)
        • -Xmx: recommended 1024 mega (-Xmx1024m)
      • Add a new option -Dfile.encoding=UTF-8 
      • Optionally you can add a new option for the directory where GlassFish will create temporary files. This option is named -Djava.io.tmpdir.
      • Restart GlassFish Server

  • Configure Thread Pool parameters

The following steps should be performed:
    • Open GlassFish Server Administration Console by navigating the web browser to http://localhost:4848 (this url is valid for the situation when the web browser is started on the same machine where GlassFish server is installed)
    • In the left side navigation tree select Configurations -> server-config -> Thread Pools -> http-thread-pool 
    • In the page that opens change parameter Max Thread Pool Size to minimum 50.

  • Install Oracle JDBC 6 driver

The following steps should be performed:

Comments