7 Replies Latest reply on Jan 13, 2011 9:29 AM by fuchs

    Removing Dashboard Feature

      Describe your environment:
      JBoss Portal 2.6.4 - GA
      Downloaded from jboss.org
      JBoss AS Version (comes with the bundle)
      Tomcat (other details cannot locate)
      KUbuntu

      Hi! I want to remove the Dashboard feature in the Portal I am making. Total newbie here!

      Thanks!

        • 1. Re: Removing Dashboard Feature
          peterj

          Try this. In jboss-portal.sar/conf/data/default-object.xml, delete the entire 'deployment' entry that starts with:

          <deployment>
           <if-exists>keep</if-exists>
           <context>
           <context-name>dashboard</context-name>
           <properties>
           . . .
          </deployment>


          Disclaimer: I haven't tried this, so no guarantees.

          • 2. Re: Removing Dashboard Feature

            Thanks, Peter!

            I tried it and the dashboard is still there. I tried deleting the whole document and nothing changed.:-)

            • 3. Re: Removing Dashboard Feature
              peterj

              The default-object.xml file is used only the first time your run the portal - the data in that file is loaded into a database and from then on the database is used to define the portal layout. Well, that is somewhat of an oversimplification, but sufficient to explain what happened.

              Since you are running the Portal + AS bundle it is using the Hypersonic database which keeps its data in the server/xxx/data directory. You can start from scratch by removing that directory. So do this:
              1) stop the app server
              2) remove the server/xxx/data directory
              3) edit default-object.xml as I suggested earlier
              4) start the app server

              • 4. Re: Removing Dashboard Feature

                Tanx Peter!

                • 5. Re: Removing Dashboard Feature
                  fuchs

                  Hello,

                   

                  i would remove the dashboard functionality likewise, but iam using jboss portal 2.7.2.

                  i used to disable it like Danny Thornton's instruction here: "http://community.jboss.org/message/422607#42260" but nothing happend.

                  if i use this way by removing data directory, the application will crash with the exception below.

                   

                  exception:

                  javax.servlet.ServletException: java.lang.NullPointerException
                       org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:278)
                       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                  route cause:

                  java.lang.NullPointerException

                  org.jboss.portal.core.impl.model.CustomizationManagerService.getDashboard(CustomizationManagerService.java:282)

                  org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.injectDashboardNav(PageCustomizerInterceptor.java:254)

                  org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:165)

                  org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)

                  org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)

                  org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:78)

                  org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)

                  org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)

                  org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:81)

                  org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)

                  org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)

                  ... and some more.

                   

                  A difference to the earlier post is that iam using a customized header. That means iam using different stylesheets for the header like the defaults.

                   

                  Can anyone help me?

                  • 6. Removing Dashboard Feature
                    fuchs

                    It has nothing to do with the individual headernavigation.

                    Only a further class of JBoss is missing the dashboard.

                    however i dont know  where I could find this part and/or change it.

                     

                    Can someone help me there?

                     

                    Here is the JBoss consolelog output if i delete data folder and change the defaul-object.xml file:

                     

                    11:07:15,312 ERROR [PortalServlet] Unexpected exception

                    java.lang.NullPointerException

                            at org.jboss.portal.core.impl.model.CustomizationManagerService.getDashboard(CustomizationManagerService.java:282)

                            at org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.injectDashboardNav(PageCustomizerInterceptor.java:254)

                    ...

                    11:07:15,312 ERROR [[PortalServletWithPathMapping]] Servlet.service() for servlet PortalServletWithPathMapping threw exception

                    java.lang.NullPointerException

                            at org.jboss.portal.core.impl.model.CustomizationManagerService.getDashboard(CustomizationManagerService.java:282)

                    ...

                     

                    Thanks!

                    • 7. Removing Dashboard Feature
                      fuchs

                      I found the mistake. Sry, but it was my own code.