Sun GlassFish Web Space Server 10.0 Administration Guide

Installing Web Space Server on Sun GlassFish Enterprise Server 2.1

Upgrade versions of Web Space Server can only be installed on GlassFish Enterprise Server 2.1 because only the enterprise version can be upgraded to GlassFish 2.1 patch 01. GlassFish 2.1 can be patched to GlassFish 2.1 patch 01 only if GlassFish 2.1 is an Enterprise Edition server (EE version) and not the open source version which uses a JAR based installer.

You can find the instructions to install Web Space Server on a cluster of Sun GlassFish Enterprise Server in the Web Space Server Deployment Guide.

ProcedureTo Install Web Space Server on Sun GlassFish Enterprise Server 2.1

  1. Install Sun GlassFish Enterprise Server 2.1 on your machine.

  2. Install Web Space Server 10.0.

    1. Download webspace-for-gfv2.zip and unzip it.

    2. Stop the Sun GlassFish Enterprise Server 2.1.

    3. Add the following code to the server.policy file in the glassfish/domains/domain1 folder.


      grant codeBase "file:${com.sun.aas.instanceRoot}/lib/-" {
         permission java.security.AllPermission;
      };
      
      // permissions for Webspace
      grant codeBase "file:${com.sun.aas.instanceRoot}/applications/j2ee-modules/webspace/-" {
         permission java.security.AllPermission;
      };
      
      grant codeBase "file:${com.sun.aas.instanceRoot}/applications/j2ee-modules/saw-web/-" {
        permission java.security.AllPermission;
      }; // Basic set of required permissions granted to all remaining code
      grant {
      ...............
      ...............
      permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
      };
      
      grant codeBase "file:${com.sun.aas.instanceRoot}/applications/j2ee-modules/ruon-web/-" {
      permission java.security.AllPermission;
      };
      
      grant codeBase "file:${com.sun.aas.instanceRoot}/applications/j2ee-modules/wsrp-portlet/-" {
      permission java.security.AllPermission;
      };

      Note –

      You need to grant permissions for any web-app that tries to create database tables. For example, you will have to add the permission blocks for CommunityMapper and opensso-web also, in the same way as you added permission blocks for webspace and saw-web.


  3. Update the portal-ext.properties file with auto.deploy.glassfish-tomcat.jee.dm.id=deployer:Sun:AppServer::localhost:4848:https

    The portal-ext.properties file is located in ws_install_dir/var/webspace/war-workspace/customs/webspace/war-workspace/customs/webspace/WEB-INF/classes/portal-ext.properties.

  4. Change to the ws_install_dir/webspace/application directory and run ant -f install.xml.