1 Reply Latest reply on Mar 2, 2007 8:00 AM by Richard Abbuhl

    Deployment exception with HelloWorldIPCPortlet.SAR

    Richard Abbuhl Newbie

      I am using JBoss Portal 2.4.1-SP1. If I hot deploy HelloWorldIPCPortlet.SAR it works correctly without any errors. However, when I stop and then start JBoss Portal I the following error appears in the log file. If I stop JBoss Portal, remove HelloWorldIPCPortlet.SAR, and then start JBoss Portal again the error disappears. Any help would be greatly appreciated.

      Richard

      --- MBeans waiting for other MBeans ---
      ObjectName: portal:container=Instance
      State: FAILED
      Reason: org.jboss.deployment.DeploymentException: No Attribute found with name: CacheNaturalId
      I Depend On:
      portal:service=Hibernate,type=Instance
      portal:service=PortletInvoker,type=Instance
      portal:service=PortalAuthorizationManagerFactory
      portal:service=AuthorizationDomainRegistry
      Depends On Me:
      portal:controller=Request
      portal:deployer=PortalWebApp
      portal:deploymentFactory=PortletApp

      ObjectName: portal:container=PortalObject
      State: FAILED
      Reason: org.jboss.deployment.DeploymentException: No Attribute found with name: CacheNaturalId
      I Depend On:
      portal:service=Hibernate,type=PortalObject
      portal:service=PortalAuthorizationManagerFactory
      portal:service=AuthorizationDomainRegistry
      portal:service=ListenerRegistry
      Depends On Me:
      portal:commandFactory=DefaultPortal
      portal:commandFactory=PortalObject
      portal:controller=Request
      portal:deployer=PortalWebApp
      portal:deploymentFactory=Object

      ObjectName: portal:commandFactory=DefaultPortal
      State: CONFIGURED
      I Depend On:
      portal:commandFactory=Delegating
      portal:container=PortalObject
      Depends On Me:
      portal:controller=Request

      ObjectName: portal:commandFactory=PortalObject
      State: CONFIGURED
      I Depend On:
      portal:container=PortalObject
      Depends On Me:
      portal:commandFactory=Delegate,prefix=portal

      ObjectName: portal:commandFactory=Delegate,prefix=portal
      State: CONFIGURED
      I Depend On:
      portal:commandFactory=Delegating
      portal:commandFactory=PortalObject

      ObjectName: portal:controller=Request
      State: CONFIGURED
      I Depend On:
      portal:service=PageService
      portal:commandFactory=DefaultPortal
      portal:urlFactory=Delegating
      portal:service=InterceptorStack,type=Command
      portal:container=PortalObject
      portal:container=Instance

      ObjectName: portal:deployer=PortalWebApp
      State: CONFIGURED
      I Depend On:
      jboss.system:service=MainDeployer
      portal:container=PortalObject
      portal:container=Instance
      portal:service=Server
      Depends On Me:
      portal:deploymentFactory=Object
      portal:deploymentFactory=PortletApp
      portal:deploymentFactory=Layout
      portal:deploymentFactory=LayoutFeatures
      portal:deploymentFactory=Theme
      portal:deployer=Adapter

      ObjectName: portal:deploymentFactory=Object
      State: CONFIGURED
      I Depend On:
      portal:deployer=PortalWebApp
      portal:container=PortalObject

      ObjectName: portal:deploymentFactory=PortletApp
      State: CONFIGURED
      I Depend On:
      portal:id=local,service=PortletInvokerRegistration
      portal:deployer=PortalWebApp
      portal:service=WebAppRegistry
      portal:service=ServerConfig
      portal:service=PortletSecurityService
      portal:container=Instance

      ObjectName: portal:deploymentFactory=Layout
      State: CONFIGURED
      I Depend On:
      portal:deployer=PortalWebApp
      portal:service=LayoutService

      ObjectName: portal:deploymentFactory=LayoutFeatures
      State: CONFIGURED
      I Depend On:
      portal:deployer=PortalWebApp
      portal:service=LayoutService

      ObjectName: portal:deploymentFactory=Theme
      State: CONFIGURED
      I Depend On:
      portal:deployer=PortalWebApp
      portal:service=ThemeService

      ObjectName: portal:deployer=Adapter
      State: CONFIGURED
      I Depend On:
      jboss.web:service=WebServer
      portal:deployer=PortalWebApp

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: portal:container=Instance
      State: FAILED
      Reason: org.jboss.deployment.DeploymentException: No Attribute found with name: CacheNaturalId
      I Depend On:
      portal:service=Hibernate,type=Instance
      portal:service=PortletInvoker,type=Instance
      portal:service=PortalAuthorizationManagerFactory
      portal:service=AuthorizationDomainRegistry
      Depends On Me:
      portal:controller=Request
      portal:deployer=PortalWebApp
      portal:deploymentFactory=PortletApp

      ObjectName: portal:container=PortalObject
      State: FAILED
      Reason: org.jboss.deployment.DeploymentException: No Attribute found with name: CacheNaturalId
      I Depend On:
      portal:service=Hibernate,type=PortalObject
      portal:service=PortalAuthorizationManagerFactory
      portal:service=AuthorizationDomainRegistry
      portal:service=ListenerRegistry
      Depends On Me:
      portal:commandFactory=DefaultPortal
      portal:commandFactory=PortalObject
      portal:controller=Request
      portal:deployer=PortalWebApp
      portal:deploymentFactory=Object

        • 1. Re: Deployment exception with HelloWorldIPCPortlet.SAR
          Richard Abbuhl Newbie

          I fixed the deployment problem by changing jboss-portal.sar\META-INF\jboss-service.xml. Specifically, I commented out the attribute definition for CacheNaturalId.

          Question for the JBoss Portal development team: should the attribute CacheNaturalId be defined in these mbeans?

          <!-- The different containers -->
           <mbean
           code="org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer"
           name="portal:container=Instance"
           xmbean-dd=""
           xmbean-code="org.jboss.portal.common.system.JBossServiceModelMBean">
           <xmbean/>
           <depends>portal:service=Hibernate,type=Instance</depends>
           <depends
           optional-attribute-name="PortletInvoker"
           proxy-type="attribute">portal:service=PortletInvoker,type=Instance</depends>
           <depends
           optional-attribute-name="PortalAuthorizationManagerFactory"
           proxy-type="attribute">portal:service=PortalAuthorizationManagerFactory</depends>
           <depends
           optional-attribute-name="AuthorizationDomainRegistry"
           proxy-type="attribute">portal:service=AuthorizationDomainRegistry</depends>
           <attribute name="SessionFactoryJNDIName">java:/portal/InstanceSessionFactory</attribute>
           <!--attribute name="CacheNaturalId">true</attribute-->
           </mbean>
           <mbean
           code="org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer"
           name="portal:container=PortalObject"
           xmbean-dd=""
           xmbean-code="org.jboss.portal.common.system.JBossServiceModelMBean">
           <xmbean/>
           <depends>portal:service=Hibernate,type=PortalObject</depends>
           <depends
           optional-attribute-name="PortalAuthorizationManagerFactory"
           proxy-type="attribute">portal:service=PortalAuthorizationManagerFactory</depends>
           <depends
           optional-attribute-name="AuthorizationDomainRegistry"
           proxy-type="attribute">portal:service=AuthorizationDomainRegistry</depends>
           <depends
           optional-attribute-name="PortalEventListenerRegistry"
           proxy-type="attribute">portal:service=ListenerRegistry</depends>
           <attribute name="SessionFactoryJNDIName">java:/portal/PortalObjectSessionFactory</attribute>
           <!--attribute name="CacheNaturalId">true</attribute-->
           </mbean>