4 Replies Latest reply on Jun 12, 2006 5:40 AM by Poyan Gerami

    cms portlet

    Poyan Gerami Novice

      Hi
      In CmsPortlet i send in default/index.html, from the index.html file i link to default/test.html. That works. The problem is that the test.html file is always renderd in the default page.
      I whant that the test.html file is being renderd in same page that the CmsPortlet is in not the deafult page.
      If i remove default page and klick on the link i get:

      org.jboss.portal.core.ObjectNotFoundException: Not allowed to access resourcedefault.default.DefaultCMSPortletWindow
       at org.jboss.portal.core.command.WindowCommand.create(WindowCommand.java:110)
       at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:94)
       at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:93)
       at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:77)
       at org.jboss.portal.core.CoreController.handle(CoreController.java:190)
       at sun.reflect.GeneratedMethodAccessor291.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
       at $Proxy124.handle(Unknown Source)
       at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:76)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
       at org.jboss.portal.core.aspects.server.SubjectAssociationInterceptor.invoke(SubjectAssociationInterceptor.java:47)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.server.PolicyAssociationInterceptor.invoke(PolicyAssociationInterceptor.java:52)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:68)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:69)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:184)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:87)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java:75)
       at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
       at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
       at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
       at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:221)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:534)
      
      


      Is this a bug in the portal ? or it is suppose to work like that ?
      plez come back if somthing is unclelar.

      Regards

        • 1. Re: cms portlet
          Roy Russo Master

          The CMSPortlet now, can only render on one specific page thats defined in



          C:\projects\jboss-portal-2.4\core\src\resources\portal-cms-sar\META-INF\jboss-service.xml


          under:

           <mbean
           code="org.jboss.portal.core.cms.CMSObjectCommandFactory"
           name="portal:commandFactory=CMSObject"
           xmbean-dd=""
           xmbean-code="org.jboss.portal.common.system.JBossServiceModelMBean">
           <xmbean/>
           <attribute name="Prefix">content</attribute>
           <attribute name="TargetWindowRef">default.default.CMSPortletWindow</attribute>
           <depends optional-attribute-name="Factory" proxy-type="attribute">portal:commandFactory=Delegating</depends>
           <depends optional-attribute-name="CMSService" proxy-type="attribute">portal:service=CMS</depends>
           </mbean>
          


          So maybe you need to have default.MYPAGE.CMSPortletWindow. This is the pointer to where the cmsportlet will display.


          • 2. Re: cms portlet
            Poyan Gerami Novice

            i change it to

             <mbean
             code="org.jboss.portal.core.cms.CMSObjectCommandMapper"
             name="portal:mapper=CMSObject"
             xmbean-dd="org/jboss/portal/core/cms/CMSObjectCommandMapper.xml">
             <attribute name="Prefix">content</attribute>
             <attribute name="TargetWindowRef">default.Startsida.DefaultCMSPortletWindow</attribute>
             <depends optional-attribute-name="Mapper" proxy-type="attribute">portal:mapper=PrefixDelegating</depends>
             <depends optional-attribute-name="CMSService" proxy-type="attribute">portal:service=CMS</depends>
             </mbean>
            


            now i get,

            org.jboss.portal.core.ObjectNotFoundException: Not allowed to access resourcedefault.Startsida.DefaultCMSPortletWindow


            i did the Startsida page from the managment portlet.
            i use portal 2.2.1,

            Regards



            • 3. Re: cms portlet
              Poyan Gerami Novice

              I have test to make the Startsida page from the default-object.xml file to.
              is still same problem.
              Roy are you able to test it on jboss-portal-2.2.1-bundled, for it seams like you have test it on 2.4. and it is diffrent configuration between the versions.
              from the exception it seams like that the portal dont find the Startsida page, but why.

              Not allowed to access resourcedefault.Startsida.Defau
              ltCMSPortletWindow


              / Poyan

              • 4. Re: cms portlet
                Poyan Gerami Novice

                I still have this problem, i have done this things:

                1) change the default page in default-object.xml.
                2) remove default page.
                3) change in jboss-service.xml to, Startsida are the default page for my portal:

                <mbean
                 code="org.jboss.portal.core.cms.CMSObjectCommandMapper"
                 name="portal:mapper=CMSObject"
                 xmbean-dd="org/jboss/portal/core/cms/CMSObjectCommandMapper.xml">
                 <attribute name="Prefix">content</attribute>
                 <attribute name="TargetWindowRef">default.Startsida.DefaultCMSPortletWindow</attribute>
                 <depends optional-attribute-name="Mapper" proxy-type="attribute">portal:mapper=PrefixDelegating</depends>
                 <depends optional-attribute-name="CMSService" proxy-type="attribute">portal:service=CMS</depends>
                 </mbean>



                Error cenario:
                1) I use CMSPortlet, i send index.html.
                2) In index.html i have link to other page in my cms: default/news.html, i have create that file with CMSManager portlet
                3) When i press on the link i get:

                I use jboss-portal-2.2.1-bundled, i think it is a bug, it is very important to get this work, to go on production with our portal.


                2006-06-12 10:28:10,468 ERROR [org.jboss.portal.core.CoreController] Object not found
                org.jboss.portal.core.ObjectNotFoundException: Not allowed to access resourcedefault.Startsida.DefaultCMSPortletWindow
                 at org.jboss.portal.core.command.WindowCommand.create(WindowCommand.java:110)
                 at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:94)
                 at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:93)
                 at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:77)
                 at org.jboss.portal.core.CoreController.handle(CoreController.java:190)
                 at sun.reflect.GeneratedMethodAccessor231.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
                 at $Proxy124.handle(Unknown Source)
                 at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:76)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
                 at org.jboss.portal.core.aspects.server.SubjectAssociationInterceptor.invoke(SubjectAssociationInterceptor.java:47)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.server.PolicyAssociationInterceptor.invoke(PolicyAssociationInterceptor.java:52)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:68)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:69)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:184)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:87)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java:75)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:175)
                 at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:221)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                 at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
                 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                 at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                 at java.lang.Thread.run(Thread.java:595)