5 Replies Latest reply on Dec 7, 2012 7:53 PM by monsieursanta

    Overwriting existing portal in GateIn 3.2

    nandhana03

      hii...

            I've deployed my portal in GateIn 3.2..... I've done so by configuring xml files(portal.xml, navigation.xml, pages.xml).... But after adding/deleting a new portlet, the changes are not getting reflected automatically... The changes will be reflected only after deleting 'data' folder...... I've specified <field name="importMode">                     <string> overwrite</string>                  </field> in portal-configuration.xml.... Still I'm not able to overwrite the existing portal definition.... pls help me to rectify my issue..... Thnx in advance.......

        • 1. Re: Overwriting existing portal in GateIn 3.2
          mvanco

          Hi Dhanya,

           

          you can try to have a look at this document "How to create new portal using extension" which can help you with overwriting default GateIn portal, you can move your configuration files to extension. Configuration files which you are changing are read only during the first startup from configuration files, configuration is then stored in JCR. That's why you have to delete 'data' folder and changes take effect. If you are interested only at updating portal/pages/nodes, you can have a look at GateIn management tool (for import/export).

           

          Good luck,

          Michal Vančo

          • 2. Re: Overwriting existing portal in GateIn 3.2
            nandhana03

            hiii Michal,

                          thnx for ur reply.......  Before GateIn I used jboss-portal 2.7.1 and there was a tag in *-object.xml and portlet-instances.xml  to support portal overwriting feature. The tag was

            <if-exists>overwrite</if-exists>....... Is there anything like that in GateIn 3.2 to support portal overwriting ?

            • 3. Re: Overwriting existing portal in GateIn 3.2
              nscavell

              Try setting the override parameter for NewPortalConfigListener in portal-configuration.xml to true. I couldn't find anywhere in the documentation that mentions this. If this works for you then we should probably make more clear in the documentation.

               

              <value-param>
                 <name>override</name>
                 <description>The flag parameter to decide if portal metadata is overriden on restarting server</description>
                 <value>true</value>
              </value-param>
              
              • 4. Re: Overwriting existing portal in GateIn 3.2
                nandhana03

                hiii Nick.....

                                Thanks a lot for ur answer...... setting the override parameter in portal-configuration.xml worked........  

                • 5. Re: Overwriting existing portal in GateIn 3.2
                  monsieursanta

                  Hi Dhanya,

                   

                  Did u do any migration from old JBoss portal to Gatein. If so could you please send me those steps.

                   

                  Regrads

                  Santhosh