Sun GlassFish Web Space Server 10.0 Administration 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.