9 Replies Latest reply on Aug 31, 2009 6:36 PM by prabhat.jha

    Deleting pages permanently

      Hi
      I deployed myportal to the Jboss portal, then I made myportal as deafult page, from default Portal I deleted other pages like News , Weather, but when I restart my server the News and Weather pages coming back, mean ther are appearing on the default portal. How can I delete it permanently. I want to see only my MYPortal.
      One more question , through JMX console window I started a HSQL database using startDatabaseManager(), but I could see only JMS related tables under localDb schema. where is the USer table.
      Regards
      Philip

        • 1. Re: Deleting pages permanently

          To your first question, there is a sample portlet WAR deployed that contains *-object.xml files that replaces those pages when the server starts. Simply remove the *-object.xml files or those portlets entirely and they should be gone.

          • 2. Re: Deleting pages permanently

            Hi
            Thanks for the reply, I deleted all Jboss dependant file like -object.xml, -instance.xml, no go, it the pages are still there.
            Philip

            • 3. Re: Deleting pages permanently

              Hi
              I deletd the enire sample folder under jboss-portal.sar, Now I have a weather page in the default portel.
              Any Idea.
              Thanks
              Philip

              • 4. Re: Deleting pages permanently

                Hi
                It looks worked, I have to start several times and refresh, now all other pages gone, what a hard way.
                Philip

                • 5. Re: Deleting pages permanently
                  peterj

                  The problem is that the *-object.xml file are used to populate the portal database, and the runtime portal layout, including the pages and portlets in the portal, is maintained in that database. When you used the admin portal to remove them, they were removed from the database. The next time you started the portal, the *-object.xml file were read again and the database populated again. Thus removing the *-object.xml files at that point will not do anything because the database has been populated. You have to remove the pages/portlets using the admin portal and remove the *-object.xml files at the same time to keep the pages from reappearing.

                  • 6. Re: Deleting pages permanently

                    Hi Peter
                    Thanks for the explanation, I saw your answer for several questions, I think you are one of the authoritative members of this forum.
                    Could you please answer this question as well

                    Through JMX console window I started a HSQL database using startDatabaseManager(), but I could see only JMS related tables under localDb schema. where are other schemas and Tables.
                    Thanks
                    Philip

                    • 7. Re: Deleting pages permanently
                      peterj

                      Are you using HSQLB for Portal? If so, Portal uses a separate HSQLDB database. I don't know how to get the database manager to connect to that other database (I always use either PostgreSQL or MySQL for Portal).

                      • 8. Re: Deleting pages permanently

                        Thanks , I am planning to change to MySQL, I am learning and developing a portal site, I got requirement, when new user visit my site, I need to show the user register portlet on left, once they logged in I need to show the Google map portlet on left. Is there any techinque for that, I am developing using the Hotal Mapping portal example.
                        Regards
                        Philip

                        • 9. Re: Deleting pages permanently
                          prabhat.jha