1 Reply Latest reply on May 11, 2008 8:50 AM by Pavel Myshkin

    Jboss deployment

    Rajesh Bhonagiri Newbie

      Hi all-

      I didn't find anything in the guides about installing the Portal SAR to an existing JBoss 4.2.2 installation, but I tried to do this and get a ton of errors upon startup:

      Code:

      ObjectName: portal:service=Hibernate,type=CMS
      State: CONFIGURED
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=PortalDS
      Depends On Me:
      portal:service=CMS
      cms.pm.cache:service=TreeCache
      portal:service=Interceptor,type=Cms,name=ACL
      portal:service=Interceptor,type=Cms,name=ApprovalWorkf

      ObjectName: portal:service=CMS
      State: CONFIGURED
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=PortalDS
      portal:service=JAASLoginModule
      portal:service=Hibernate,type=CMS
      cms.pm.cache:service=TreeCache
      portal:service=AuthorizationManager,type=cms
      portal:service=InterceptorStackFactory,type=Cms
      Depends On Me:
      portal:commandFactory=CMSObject

      ObjectName: portal:commandFactory=CMSObject
      State: CONFIGURED
      I Depend On:
      portal:service=CMS
      portal:service=ServerConfig
      Depends On Me:
      portal:commandFactory=Delegate,path=content
      portal:service=ContentRenderer,type=cms

      ObjectName: portal:commandFactory=Delegate,path=content
      State: CONFIGURED
      I Depend On:
      portal:commandFactory=Delegating
      portal:commandFactory=CMSObject

      ObjectName: cms.pm.cache:service=TreeCache
      State: CONFIGURED
      I Depend On:
      jboss:service=Naming
      jboss:service=TransactionManager
      portal:service=Hibernate,type=CMS
      Depends On Me:
      portal:service=CMS

      ObjectName: portal:service=InterceptorStackFactory,type=Cm
      State: CONFIGURED
      I Depend On:
      portal:service=Interceptor,type=Cms,name=ACL
      portal:service=Interceptor,type=Cms,name=ApprovalWorkf
      Depends On Me:
      portal:service=CMS

      ObjectName: portal:service=AuthorizationManager,type=cms
      State: CONFIGURED
      I Depend On:
      portal:service=AuthorizationProvider,type=cms
      Depends On Me:
      portal:service=CMS
      portal:service=Interceptor,type=Cms,name=ACL

      ObjectName: portal:service=AuthorizationProvider,type=cms
      State: CONFIGURED
      I Depend On:
      portal:service=Module,type=IdentityServiceController
      Depends On Me:
      portal:service=AuthorizationManager,type=cms

      ObjectName: portal:service=Interceptor,type=Cms,name=ACL
      State: CONFIGURED
      I Depend On:
      portal:service=AuthorizationManager,type=cms
      portal:service=Hibernate,type=CMS
      portal:service=Module,type=IdentityServiceController
      Depends On Me:
      portal:service=InterceptorStackFactory,type=Cms

      ObjectName: portal:service=Interceptor,type=Cms,name=Appro
      State: CONFIGURED
      I Depend On:
      portal:service=Hibernate,type=CMS
      Depends On Me:
      portal:service=InterceptorStackFactory,type=Cms

      ObjectName: portal:service=InterceptorRegistration,type=Se
      State: CONFIGURED
      I Depend On:
      portal:service=Interceptor,type=Server,name=CMSIdentit
      portal:service=InterceptorStackFactory,type=Server

      ObjectName: portal:service=ContentRenderer,type=cms
      State: CONFIGURED
      I Depend On:
      portal:service=ContentProviderRegistry
      portal:commandFactory=CMSObject
      portal:service=PortalAuthorizationManagerFactory
      portal:container=Instance

      ObjectName: portal:service=ApprovePublish,type=Workflow
      State: CONFIGURED
      I Depend On:
      portal:service=Workflow,type=WorkflowService
      portal:service=Module,type=IdentityServiceController

      ObjectName: portal:commandFactory=IdentityUI
      State: CONFIGURED
      I Depend On:
      portal:service=ValidateEmailService,type=IdentityUI
      Depends On Me:
      portal:commandFactory=Delegate,path=validateEmail

      ObjectName: portal:service=IdentityUIConfigurationService,
      State: CONFIGURED
      I Depend On:
      portal:service=Module,type=IdentityServiceController
      Depends On Me:
      portal:service=IdentityMailService,type=Mail
      portal:service=RegistrationService,type=IdentityUI
      portal:service=ValidateEmailService,type=IdentityUI
      portal:service=WorkflowSoftDependency

      ObjectName: portal:service=IdentityMailService,type=Mail
      State: CONFIGURED
      I Depend On:
      portal:service=Module,type=Mail
      portal:service=IdentityUIConfigurationService,type=Ide

      ObjectName: portal:service=IdentityUserManagementService,t
      State: CONFIGURED
      I Depend On:
      portal:service=Module,type=IdentityServiceController
      Depends On Me:
      portal:service=RegistrationService,type=IdentityUI
      portal:service=ValidateEmailService,type=IdentityUI

      ObjectName: portal:service=RegistrationService,type=Identi
      State: CONFIGURED
      I Depend On:
      portal:service=IdentityUIConfigurationService,type=Ide
      portal:service=IdentityUserManagementService,type=Iden

      ObjectName: portal:service=ValidateEmailService,type=Ident
      State: CONFIGURED
      I Depend On:
      portal:service=IdentityUIConfigurationService,type=Ide
      portal:service=IdentityUserManagementService,type=Iden
      Depends On Me:
      portal:commandFactory=IdentityUI

      ObjectName: portal:commandFactory=Delegate,path=validateEm
      State: CONFIGURED
      I Depend On:
      portal:commandFactory=Delegating
      portal:commandFactory=IdentityUI

      ObjectName: portal:service=WorkflowSoftDependency
      State: CONFIGURED
      I Depend On:
      portal:service=IdentityUIConfigurationService,type=Ide

      ObjectName: portal.management:service=Management,type=Port
      State: CONFIGURED
      I Depend On:
      portal:service=InstanceContainerContext

      ObjectName: portal.management:service=Management,type=Iden
      State: CONFIGURED
      I Depend On:
      portal:service=Module,type=IdentityServiceController

      ObjectName: portal:service=Hibernate,type=Workflow
      State: CONFIGURED
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=PortalDS
      Depends On Me:
      portal:service=Workflow,type=WorkflowService

      ObjectName: portal:service=Thread,type=WorkflowService
      State: CONFIGURED
      I Depend On:
      portal:service=Workflow,type=WorkflowService

      ObjectName: portal:service=Workflow,type=WorkflowService
      State: CONFIGURED
      I Depend On:
      portal:service=Hibernate,type=Workflow
      Depends On Me:
      portal:service=ApprovePublish,type=Workflow
      portal:service=Thread,type=WorkflowService

      ObjectName: portal.wsrp:service=WSRPProducer
      State: CONFIGURED
      I Depend On:
      portal:service=PortletInvoker,type=Producer
      portal.wsrp:service=RegistrationManager,type=Producer
      portal.wsrp:service=ProducerConfiguration

      ObjectName: portal.wsrp:service=RegistrationManager,type=P
      State: CONFIGURED
      I Depend On:
      portal.wsrp:service=PersistenceManager
      Depends On Me:
      portal.wsrp:service=WSRPProducer

      ObjectName: portal.wsrp:service=PersistenceManager
      State: CONFIGURED
      I Depend On:
      portal:service=Hibernate,type=Portlet
      Depends On Me:
      portal.wsrp:service=RegistrationManager,type=Producer

      ObjectName: portal.wsrp:service=WSRPDeployer
      State: CONFIGURED
      I Depend On:
      jboss.system:service=MainDeployer
      portal.wsrp:service=ConsumerRegistry
      portal.wsrp:service=EntityResolver

      ObjectName: portal:service=Hibernate,type=WSRPConsumer
      State: CONFIGURED
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=PortalDS
      Depends On Me:
      portal.wsrp:service=ConsumerRegistry

      ObjectName: portal.wsrp:service=ConsumerRegistry
      State: CONFIGURED
      I Depend On:
      portal:service=Hibernate,type=WSRPConsumer
      portal:service=PortletInvoker,type=Federating
      portal:service=ListenerRegistry
      Depends On Me:
      portal.wsrp:service=WSRPDeployer

      ObjectName: portal:service=Interceptor,type=Server,name=Us
      State: CONFIGURED
      I Depend On:
      portal:service=Module,type=IdentityServiceController
      Depends On Me:
      portal:service=InterceptorStackFactory,type=Server

      ObjectName: portal:service=InterceptorStackFactory,type=Se
      State: CONFIGURED
      I Depend On:
      portal:service=Interceptor,type=Server,name=SessionLoc
      portal:service=Interceptor,type=Server,name=Transactio
      portal:service=Interceptor,type=Server,name=UserEvent
      portal:service=Interceptor,type=Server,name=SessionInv
      portal:service=Interceptor,type=Server,name=User
      portal:service=Interceptor,type=Server,name=Locale
      portal:service=Interceptor,type=Server,name=PortalCont
      portal:service=Interceptor,type=Server,name=ContentTyp
      Depends On Me:
      portal:service=InterceptorRegistration,type=Server,nam

      ObjectName: portal:service=Interceptor,type=Command,name=C
      State: CONFIGURED
      I Depend On:
      portal:service=ControlPolicy,type=Portal
      Depends On Me:
      portal:service=InterceptorStackFactory,type=Command

      ObjectName: portal:service=Interceptor,type=Command,name=P
      State: CONFIGURED
      I Depend On:
      portal:service=ServerConfig
      portal:service=PortalAuthorizationManagerFactory
      portal:container=PortalObject
      Depends On Me:
      portal:service=InterceptorStackFactory,type=Command

      ObjectName: portal:service=InterceptorStackFactory,type=Co
      State: CONFIGURED
      I Depend On:
      portal:service=Interceptor,type=Command,name=ResourceA
      portal:service=Interceptor,type=Command,name=Ajax
      portal:service=Interceptor,type=Command,name=Navigatio
      portal:service=Interceptor,type=Command,name=PortalNod
      portal:service=Interceptor,type=Command,name=PolicyEnf
      portal:service=Interceptor,type=Command,name=PageCusto
      portal:service=Interceptor,type=Command,name=Control
      portal:service=Interceptor,type=Command,name=EventBroa
      Depends On Me:
      portal:service=Controller

      ObjectName: portal:service=Hibernate
      State: CONFIGURED
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=PortalDS
      Depends On Me:
      portal:service=Module,type=IdentityServiceController

      ObjectName: portal:service=Hibernate,type=Instance
      State: CONFIGURED
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=PortalDS
      Depends On Me:
      portal:service=InstanceContainerContext




      and this goes on for awhile. So once the server is up, I tried going to the test URL and when I do, I get:

      Code:

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

      root cause

      java.lang.NullPointerException
      org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObjectNode(PersistentPor
      talObjectContainer.java:252)
      org.jboss.portal.core.impl.model.portal.AbstractPortalObjectContainer.getContext(AbstractPortalObje
      ctContainer.java:100)
      org.jboss.portal.core.impl.model.portal.AbstractPortalObjectContainer.getContext(AbstractPortalObje
      ctContainer.java:80)
      org.jboss.portal.core.model.portal.DefaultPortalCommandFactory.doMapping(DefaultPortalCommandFactor
      y.java:72)
      org.jboss.portal.core.controller.Controller.handle(Controller.java:208)
      org.jboss.portal.server.RequestControllerDispatcher.invoke(RequestControllerDispatcher.java:51)
      org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
      org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
      org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:250)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

        • 1. Re: Jboss deployment
          Pavel Myshkin Newbie

          Just a thought:

          If you try to integrate the SAR into an existing JBAS then you alson need to create a -ds.xml with PortalDS as it's name that would reference a database.

          The bundled JBP comes with a bundled Hypersonic DB as its PortalDS and that the only thing that its good for.

          Try that... or post the full server.log.