4 Replies Latest reply on Mar 11, 2008 4:17 PM by Urvish Amin

    Customized CMS

    Serge Emmanuel Pagop Newbie

      Hi all,

      My Goal is to create a new page with a cms content. May be some one can check these descriptor configurations and gives me some advice, if that correct or not.

      Thanks in advance.

      my web archive structure looks like this:

      myCMSPortlet.war
       +-------WEB-INF
       +-----portlet.xml
       +-----portlet-object.xml
       +-----portlet-instance.xml
       +-----web.xml


      I know that in JBP any windows of the portal can be configured to display CMS content.

      1) portlet.xml ( is that correct?)

      <?xml version="1.0" encoding="UTF-8"?>
      <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
       http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
       version="1.0">
       <portlet>
       <description>My Content Management System Portlet</description>
       <portlet-name>MyCMSPortlet</portlet-name>
       <display-name>My Content Management System Portlet</display-name>
       <portlet-class>org.jboss.portal.core.cms.ui.CMSPortlet</portlet-class>
       <supports>
       <mime-type>text/html</mime-type>
       <portlet-mode>VIEW</portlet-mode>
       <portlet-mode>EDIT_CONTENT</portlet-mode>
       </supports>
       <portlet-preferences>
       <preference>
       <name>indexpage</name>
       <value>/default/myfile.html</value>
       </preference>
       </portlet-preferences>
       </portlet>
      </portlet-app>


      2-portlet-object.xml ( is that correct?)

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE deployments PUBLIC
       "-//JBoss Portal//DTD Portal Object 2.6//EN"
       "http://www.jboss.org/portal/dtd/portal-object_2_6.dtd">
      <deployments>
       <deployment>
       <if-exists>overwrite</if-exists>
       <parent-ref>default</parent-ref>
       <page>
       <page-name>MyCMSPage</page-name>
      
       <window>
       <window-name>MyCMSWindow</window-name>
       <content>
       <content-type>cms</content-type>
       <content-uri>/default/myfile.html</content-uri>
       </content>
       <region>center</region>
       <height>1</height>
       </window>
      
       <properties>
       <property>
       <name>layout.id</name>
       <value>1column</value>
       </property>
       </properties>
       </page>
       </deployment>
      </deployments>
      


      3- portlet-instance.xml ( is that correct?)

      <!DOCTYPE deployments PUBLIC
       "-//JBoss Portal//DTD Portlet Instances 2.6//EN"
       "http://www.jboss.org/portal/dtd/portlet-instances_2_6.dtd">
      
      <deployments>
       <deployment>
       <instance>
       <instance-id>CMSPortletInstance</instance-id>
       <portlet-ref>MyCMSPortlet</portlet-ref>
       </instance>
       </deployment>
      </deployments>



      I got the same exceptional error when I deployed the firstly application in $JBOSS_HOME/server/default/deploy and secondly in $JBOSS_HOME/server/default/deploy/jboss_portal.sar

      ERROR: 14:19:46,989 ERROR [STDERR] Caused by: javax.portlet.PortletException: Cannot start CMS portlet due to service unavailability

      
      
      14:19:46,978 ERROR [STDERR] org.jboss.portal.portlet.container.PortletInitializationException: The portlet MyCMSPortlet threw a portlet exception during init
      14:19:46,979 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:260)
      14:19:46,979 ERROR [STDERR] at org.jboss.portal.portlet.impl.container.PortletApplicationContextImpl.startPortletApplication(PortletApplicationContextImpl.java:135)
      14:19:46,979 ERROR [STDERR] at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:151)
      14:19:46,979 ERROR [STDERR] at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:96)
      14:19:46,979 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
      14:19:46,979 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.add(PortalDeploymentInfoContext.java:84)
      14:19:46,979 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.ServerDeployer.registerFactory(ServerDeployer.java:134)
      14:19:46,979 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory.registerFactory(AbstractDeploymentFactory.java:113)
      14:19:46,979 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory.start(AbstractDeploymentFactory.java:152)
      14:19:46,979 ERROR [STDERR] at org.jboss.portal.portlet.deployment.jboss.PortletAppDeploymentFactory.start(PortletAppDeploymentFactory.java:217)
      14:19:46,979 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      14:19:46,979 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      14:19:46,983 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      14:19:46,983 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      14:19:46,983 ERROR [STDERR] at org.jboss.portal.jems.as.system.JBossServiceModelMBean$ServiceMixin.execute(JBossServiceModelMBean.java:486)
      14:19:46,983 ERROR [STDERR] at org.jboss.portal.jems.as.system.JBossServiceModelMBean$ServiceMixin.startService(JBossServiceModelMBean.java:452)
      14:19:46,983 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      14:19:46,983 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
      14:19:46,983 ERROR [STDERR] at org.jboss.portal.jems.as.system.JBossServiceModelMBean$6.invoke(JBossServiceModelMBean.java:374)
      14:19:46,984 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      14:19:46,984 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      14:19:46,984 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      14:19:46,984 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      14:19:46,984 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      14:19:46,984 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      14:19:46,984 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      14:19:46,984 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
      14:19:46,984 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      14:19:46,984 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      14:19:46,984 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
      14:19:46,984 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
      14:19:46,984 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
      14:19:46,984 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
      14:19:46,984 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
      14:19:46,984 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
      14:19:46,984 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
      14:19:46,984 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
      14:19:46,984 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      14:19:46,984 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      14:19:46,985 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      14:19:46,985 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      14:19:46,985 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      14:19:46,985 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      14:19:46,985 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      14:19:46,985 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      14:19:46,985 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      14:19:46,985 ERROR [STDERR] at $Proxy4.start(Unknown Source)
      14:19:46,985 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      14:19:46,985 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      14:19:46,985 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      14:19:46,985 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      14:19:46,985 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      14:19:46,985 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      14:19:46,985 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      14:19:46,985 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      14:19:46,985 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      14:19:46,985 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      14:19:46,985 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      14:19:46,985 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      14:19:46,985 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      14:19:46,986 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      14:19:46,986 ERROR [STDERR] at $Proxy191.start(Unknown Source)
      14:19:46,986 ERROR [STDERR] at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197)
      14:19:46,986 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      14:19:46,986 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      14:19:46,986 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      14:19:46,986 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
      14:19:46,986 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      14:19:46,986 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      14:19:46,986 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      14:19:46,986 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      14:19:46,986 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      14:19:46,986 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      14:19:46,986 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      14:19:46,986 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      14:19:46,986 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      14:19:46,986 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      14:19:46,986 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      14:19:46,987 ERROR [STDERR] at $Proxy9.deploy(Unknown Source)
      14:19:46,987 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      14:19:46,987 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      14:19:46,987 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      14:19:46,987 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
      14:19:46,987 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      14:19:46,987 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      14:19:46,987 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      14:19:46,987 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      14:19:46,987 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      14:19:46,987 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      14:19:46,987 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      14:19:46,987 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      14:19:46,987 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      14:19:46,987 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      14:19:46,987 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      14:19:46,987 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      14:19:46,987 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      14:19:46,987 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      14:19:46,987 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      14:19:46,987 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      14:19:46,988 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      14:19:46,988 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      14:19:46,988 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      14:19:46,988 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      14:19:46,988 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      14:19:46,988 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      14:19:46,988 ERROR [STDERR] at $Proxy4.start(Unknown Source)
      14:19:46,988 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      14:19:46,988 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      14:19:46,988 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      14:19:46,988 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      14:19:46,988 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      14:19:46,988 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      14:19:46,988 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      14:19:46,988 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      14:19:46,988 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      14:19:46,988 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      14:19:46,988 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      14:19:46,988 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      14:19:46,988 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      14:19:46,989 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      14:19:46,989 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      14:19:46,989 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      14:19:46,989 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      14:19:46,989 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      14:19:46,989 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
      14:19:46,989 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      14:19:46,989 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      14:19:46,989 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
      14:19:46,989 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:508)
      14:19:46,989 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      14:19:46,989 ERROR [STDERR] Caused by: javax.portlet.PortletException: Cannot start CMS portlet due to service unavailability
      14:19:46,990 ERROR [STDERR] at org.jboss.portal.core.cms.ui.CMSPortlet.init(CMSPortlet.java:165)
      14:19:46,990 ERROR [STDERR] at javax.portlet.GenericPortlet.init(GenericPortlet.java:270)
      14:19:46,990 ERROR [STDERR] at org.jboss.portal.core.cms.ui.CMSPortlet.init(CMSPortlet.java:145)
      14:19:46,990 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.initPortlet(PortletContainerImpl.java:359)
      14:19:46,990 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:233)
      14:19:46,990 ERROR [STDERR] ... 129 more
      




        • 1. Re: Customized CMS
          Urvish Amin Newbie

          Did get any answer for your issue, I am having same issue

          • 2. Re: Customized CMS
            Sohil Shah Master

            you need to inject the backend CMS Service into your Portlet

            you can do this by including a file called jboss-portlet.xml in your war and putting this configuration in it:

            <!DOCTYPE portlet-app PUBLIC
             "-//JBoss Portal//DTD JBoss Portlet 2.6//EN"
             "http://www.jboss.org/portal/dtd/jboss-portlet_2_6.dtd">
            <portlet-app>
            <service>
             <service-name>CMS</service-name>
             <service-class>org.jboss.portal.cms.CMS</service-class>
             <service-ref>:service=CMS</service-ref>
            </service>
            </portlet-app>
            


            For further reference look at the jboss-portlet.xml shipped with the core cms package being shipped with the Portal.

            You probably don't need all the services in there since some of them are utilized by the CMS Administration tool.

            Thanks

            • 3. Re: Customized CMS
              Urvish Amin Newbie

              After adding jboss-portlet.xml and following steps from core cms project.
              I am still getting same exception.

              6:06:56,750 INFO [PortletAppDeployment] Parsing /arbitronportal/jboss-portlet.xml
              6:06:56,781 ERROR [STDERR] org.jboss.portal.portlet.container.PortletInitializationException: The portlet ContentPortlet threw a runtime exception during init
              6:06:56,781 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:264)
              6:06:56,781 ERROR [STDERR] at org.jboss.portal.portlet.impl.container.PortletApplicationContextImpl.startPortletApplication(PortletApplicationContextImpl.java:135)
              6:06:56,781 ERROR [STDERR] at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:151)
              6:06:56,781 ERROR [STDERR] at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:96)
              6:06:56,781 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
              6:06:56,781 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.start(PortalDeploymentInfoContext.java:211)
              6:06:56,781 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:217)
              6:06:56,781 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
              6:06:56,781 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
              6:06:56,781 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor258.invoke(Unknown Source)
              6:06:56,781 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              6:06:56,781 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              6:06:56,781 ERROR [STDERR] at $Proxy214.deploy(Unknown Source)
              6:06:56,781 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:259)
              6:06:56,781 ERROR [STDERR] at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:53)
              6:06:56,781 ERROR [STDERR] at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:159)
              6:06:56,781 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              6:06:56,781 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              6:06:56,781 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
              6:06:56,781 ERROR [STDERR] at $Proxy222.handleNotification(Unknown Source)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
              6:06:56,781 ERROR [STDERR] at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:340)
              6:06:56,781 ERROR [STDERR] at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:308)
              6:06:56,781 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:482)
              6:06:56,781 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor147.invoke(Unknown Source)
              6:06:56,781 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              6:06:56,781 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
              6:06:56,781 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
              6:06:56,781 ERROR [STDERR] at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
              6:06:56,781 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
              6:06:56,781 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              6:06:56,781 ERROR [STDERR] at $Proxy195.start(Unknown Source)
              6:06:56,781 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
              6:06:56,781 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
              6:06:56,781 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
              6:06:56,781 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
              6:06:56,781 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              6:06:56,781 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              6:06:56,781 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              6:06:56,781 ERROR [STDERR] at $Proxy9.deploy(Unknown Source)
              6:06:56,781 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
              6:06:56,781 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
              6:06:56,781 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
              6:06:56,781 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
              6:06:56,781 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
              6:06:56,781 ERROR [STDERR] Caused by: java.lang.NullPointerException
              6:06:56,781 ERROR [STDERR] at org.jboss.portal.core.cms.ui.CMSPortlet.init(CMSPortlet.java:171)
              6:06:56,781 ERROR [STDERR] at javax.portlet.GenericPortlet.init(GenericPortlet.java:270)
              6:06:56,781 ERROR [STDERR] at org.jboss.portal.core.cms.ui.CMSPortlet.init(CMSPortlet.java:145)
              6:06:56,781 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.initPortlet(PortletContainerImpl.java:359)
              6:06:56,781 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:233)
              6:06:56,781 ERROR [STDERR] ... 73 more
              6:06:56,796 ERROR [PortletAppDeployment] Error when creating instances
              rg.jboss.portal.common.xml.NoSuchElementException: Missing child instance-id of element instance
              at org.jboss.portal.common.xml.XMLTools.getUniqueChild(XMLTools.java:340)
              at org.jboss.portal.common.xml.XMLTools.getUniqueChild(XMLTools.java:316)
              at org.jboss.portal.core.model.instance.metadata.InstanceMetaData.buildMetaData(InstanceMetaData.java:135)
              at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.buildInstances(PortletAppDeployment.java:290)
              at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:101)
              at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
              at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.start(PortalDeploymentInfoContext.java:211)
              at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:217)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
              at sun.reflect.GeneratedMethodAccessor258.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:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy214.deploy(Unknown Source)
              at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:259)
              at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:53)
              at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:159)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
              at $Proxy222.handleNotification(Unknown Source)
              at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
              at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
              at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:340)
              at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:308)
              at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:482)
              at sun.reflect.GeneratedMethodAccessor147.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.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
              at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
              at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
              at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
              at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy195.start(Unknown Source)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
              at sun.reflect.GeneratedMethodAccessor27.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:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy9.deploy(Unknown Source)
              at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
              at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
              6:07:02,859 INFO [STDOUT]

              • 4. Re: Customized CMS
                Urvish Amin Newbie

                It fails due to SearchFederation searchFederationService = (SearchFederation)getPortletContext().getAttribute("SearchFederationService");



                aused by: java.lang.NullPointerException
                6:06:56,781 ERROR [STDERR] at org.jboss.portal.core.cms.ui.CMSPortlet.init(CMSPortlet.java:171)
                6:06:56,781 ERROR [STDERR] at javax.portlet.GenericPortlet.init(GenericPortlet.java:270)
                6:06:56,781 ERROR [STDERR] at org.jboss.portal.core.cms.ui.CMSPortlet.init(CMSPortlet.java:145)
                6:06:56,781 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.initPortlet(PortletContainerImpl.java:359)
                6:06:56,781 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:233)
                6:06:56,781 ERROR [STDERR] ... 73 more
                6:06:56,796 ERROR [PortletAppDeployment] Error when creating instances