WSRP service removal procedure (GateIn 3.1)

Version 3

    This document describes how to remove the WSRP service from GateIn 3.1 and below.

     

    For GateIn 3.3.0.Final with JBoss AS 7.1 and GateIn 3.4.0.M01 with JBoss AS 7.1, this recipe is not proper.

    You can find it in this forum post : WSRP service removal procedure - JBoss AS7 - GateIn 3.3.0, 3.4.0

     

    For GateIn 3.1 and GateIn 3.2 :

    • Find the gatein.ear folder in your JBoss AS deploy directory
    • remove files:

     

    wsrp-admin-gui.war
    wsrp-producer.war
    • remove files from ./lib folder:
    gatein.portal.component.wsrp-PORTAL_VERSION.jar
    wsrp-common-WSRP_VERSION.jar
    wsrp-consumer-WSRP_VERSION.jar
    wsrp-integration-api-WSRP_VERSION.jar
    wsrp-producer-lib-WSRP_VERSION.jar
    wsrp-wsrp1-ws-WSRP_VERSION.jar
    wsrp-wsrp2-ws-WSRP_VERSION.jar
    
    • edit ./META-INF/application.xml and remove modules:
    <module>
        <web>
          <web-uri>wsrp-admin-gui.war</web-uri>
          <context-root>wsrp-admin-gui</context-root>
        </web>
    </module>
    

    and

    <module>
        <web>
          <web-uri>wsrp-producer.war</web-uri>
          <context-root>wsrp-producer</context-root>
        </web>
    </module>
    
    • edit ./META-INF/MANIFEST.MF and remove all wsrp SHA1s - not necessary
    • go to ./02portal.war/WEB-INF/conf folder
    • remove folder with config files ./wsrp
    • edit ./configuration.xml and remove line:
    <import profiles="jboss">war:/conf/wsrp/wsrp-configuration.xml</import>
    
    • edit ./portal/portal-configuration.xml and remove line:
    <value>org.exoplatform.portal.pom.spi.wsrp.WSRPState</value>
    
    • edit ./jcr/jcr-configuration.xml and remove:
    <property name="wsrp" value="http://www.gatein.org/jcr/wsrp/1.0/"/>
    

    and links for config files:

    <value>war:/conf/wsrp/consumers-configuration-nodetypes.xml</value>
    <value>war:/conf/wsrp/producer-configuration-nodetypes.xml</value>
    <value>war:/conf/wsrp/producer-registrations-nodetypes.xml</value>
    <value>war:/conf/wsrp/producer-pc-nodetypes.xml</value>
    <value>war:/conf/wsrp/migration-nodetypes.xml</value>
    
    • edit ./jcr/repository-configuration.xml and remove wsrp workspace:
    <!-- WSRP -->
           <workspace name="wsrp-system">
             <container>
               <properties>
                 <property name="source-name" value="${gatein.jcr.datasource.name}${container.name.suffix}"/>
                   <property name="dialect" value="${gatein.jcr.datasource.dialect}"/>
                   <property name="multi-db" value="false"/>
                   <property name="update-storage" value="true"/>
                   <property name="max-buffer-size" value="204800"/>
                   <property name="swap-directory" value="${gatein.jcr.data.dir}/swap/wsrp${container.name.suffix}"/>
                 </properties>
                 <value-storages>
                   <value-storage id="gadgets"
                     >
                     <properties>
                       <property name="path" value="${gatein.jcr.storage.data.dir}/wsrp${container.name.suffix}"/>
                     </properties>
                     <filters>
                        <filter property-type="Binary"/>
                     </filters>
                   </value-storage>
                 </value-storages>
               </container>
               <initializer>
                 <properties>
                   <property name="root-nodetype" value="nt:unstructured"/>
                   <property name="root-permissions" value="*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
                 </properties>
               </initializer>
               <cache enabled="true">
                 <properties>
                   <property name="jbosscache-configuration" value="${gatein.jcr.cache.config}" />
                   <property name="jgroups-configuration" value="${gatein.jcr.jgroups.config}" />
                   <property name="jgroups-multiplexer-stack" value="true" />
                   <property name="jbosscache-cluster-name" value="jcr-${container.name.suffix}-wsrp-system" />
                 </properties>
               </cache>
               <query-handler>
                 <properties>
                   <property name="index-dir" value="${gatein.jcr.index.data.dir}/wsrp-system${container.name.suffix}"/>
                   <property name="changesfilter-class" value="${gatein.jcr.index.changefilterclass}" />
                   <property name="jbosscache-configuration" value="${gatein.jcr.index.cache.config}" />
                   <property name="jgroups-configuration" value="${gatein.jcr.jgroups.config}" />
                   <property name="jgroups-multiplexer-stack" value="true" />
                   <property name="jbosscache-cluster-name" value="jcrindexer-${container.name.suffix}-wsrp-system" />
                   <property name="max-volatile-time" value="60" />
                 </properties>
               </query-handler>
               <lock-manager>
                 <properties>
                   <property name="time-out" value="15m" />
                   <property name="jbosscache-configuration" value="${gatein.jcr.lock.cache.config}" />
                   <property name="jgroups-configuration" value="${gatein.jcr.jgroups.config}" />
                   <property name="jgroups-multiplexer-stack" value="true" />
                   <property name="jbosscache-cluster-name" value="jcrlock-${container.name.suffix}-wsrp-system" />
                   <property name="jbosscache-cl-cache.jdbc.table.name" value="jcrlock_wsrp_system" />
                   <property name="jbosscache-cl-cache.jdbc.table.create" value="true" />
                   <property name="jbosscache-cl-cache.jdbc.table.drop" value="false" />
                   <property name="jbosscache-cl-cache.jdbc.table.primarykey" value="pk" />
                   <property name="jbosscache-cl-cache.jdbc.fqn.column" value="fqn" />
                   <property name="jbosscache-cl-cache.jdbc.node.column" value="node" />
                   <property name="jbosscache-cl-cache.jdbc.parent.column" value="parent" />
                   <property name="jbosscache-cl-cache.jdbc.datasource" value="${gatein.jcr.datasource.name}${container.name.suffix}" />
                 </properties>
               </lock-manager>
             </workspace>
    
    • remove WSRP lines from all MANIFEST.MF files - not necessary
    deploy/gatein.ear/01eXoResources.war/META-INF/MANIFEST.MF
    deploy/gatein.ear/META-INF/MANIFEST.MF
    deploy/gatein.ear/02portal.war/META-INF/MANIFEST.MF
    

     

    Additional step for EPP:

     

    • go to the JBoss EAP configuration folder of your EPP install (e.g. jboss-as/server/default)
    • open file ./conf/gatein/configuration.xml and remove lines from default.portal.definition:
     <value>
        <string>wsrp-producer</string>
     </value>
    

     

    Note: this can be done for every configuration.