1 Reply Latest reply on Jan 29, 2008 4:03 AM by marcus sim

    Can't load CMS portlet after change datasource

    marcus sim Newbie

      Hi,

      I am trying to deploy jboss-portal to use oracle 10g. After setting up the portal-oracle-ds at jboss/default/deploy, get this error that cms cannot deploy as below.

      15:37:02,809 INFO [JackrabbitJCRService] Repository 'PortalRepository' created
      15:37:02,840 INFO [JackrabbitJCRService] The repository does not know about CMS
       node types
      15:37:02,856 INFO [JackrabbitJCRService] Creating CMS nodeTypes.
      15:37:02,856 WARN [ServiceController] Problem starting service portal:service=C
      MS
      javax.jcr.NamespaceException: failed to register namespace portalcms -> http://j
      boss.org/jcr/portalcms: mapping already exists
       at org.apache.jackrabbit.core.NamespaceRegistryImpl.registerNamespace(Na
      mespaceRegistryImpl.java:287)
       at org.jboss.portal.cms.impl.jcr.jackrabbit.JackrabbitJCRService.registe
      rCustomNodeTypes(JackrabbitJCRService.java:183)
       at org.jboss.portal.cms.impl.jcr.jackrabbit.JackrabbitJCRService.start(J
      ackrabbitJCRService.java:111)
       at org.jboss.portal.cms.impl.jcr.JCRCMS.startJCR(JCRCMS.java:302)
       at org.jboss.portal.cms.impl.jcr.JCRCMS.startService(JCRCMS.java:267)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
      upport.java:289)
       at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
      96)
       at org.jboss.portal.jems.as.system.AbstractJBossService.start(AbstractJB
      ossService.java:73)
       at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.portal.jems.as.system.JBossServiceModelMBean$ServiceMixin.e
      xecute(JBossServiceModelMBean.java:486)
       at org.jboss.portal.jems.as.system.JBossServiceModelMBean$ServiceMixin.s
      tartService(JBossServiceModelMBean.java:452)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
      upport.java:289)
      
      


      I also follow an advise on similar problem at this link below by deleting the default/data directory, but still can't solve it.
      http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981263#3981263

      Anyone have any ideas? Thanks.


        • 1. Re: Can't load CMS portlet after change datasource
          marcus sim Newbie

          Hi,

          I stumble upon this thread http://www.jboss.org/?module=bb&op=viewtopic&p=4021091 and manage to eliminate the cms error using a new db.

          But now I got the following error. Any tips to solve this?

          16:50:26,376 WARN [ServiceObjectFactory] Unable to narrow port selection for
          UnifiedPortComponentRef
           serviceEndpointInterface=org.jboss.portal.wsrp.core.WSRP_v1_Registration_PortTy
          pe
           portQName=null
           enableMTOM=false
           portComponentLink=null
           callProperties=[]
           stubProperties=[]
           configName=null
           configFile=null
          16:50:26,501 WARN [HandlerWrapper] Handler is in state DOES_NOT_EXIST, skipping
           Handler.handleFault for: org.jboss.portal.wsrp.handler.RequestHeaderClientHandl
          er@eff0c
          16:50:26,501 WARN [HandlerWrapper] Handler is in state DOES_NOT_EXIST, skipping
           Handler.handleFault for: org.jboss.portal.wsrp.handler.WSRPExtensionHandler@412
          161
          16:50:26,517 ERROR [Scheduler$Listener] Invoke of the Schedulable MBean failed
          javax.management.MBeanException
           at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptio
          ns(ReflectedDispatcher.java:180)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
          er.java:163)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
           at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
          or.java:133)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
           at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
          BeanOperationInterceptor.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.varia.scheduler.Scheduler$MBeanListener.handleNotification(
          Scheduler.java:1346)
           at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.jboss.mx.notification.NotificationListenerProxy.invoke(Notificati
          onListenerProxy.java:153)
           at $Proxy11.handleNotification(Unknown Source)
           at javax.management.NotificationBroadcasterSupport.handleNotification(No
          tificationBroadcasterSupport.java:257)
           at javax.management.NotificationBroadcasterSupport$SendNotifJob.run(Noti
          ficationBroadcasterSupport.java:322)
           at javax.management.NotificationBroadcasterSupport$1.execute(Notificatio
          nBroadcasterSupport.java:307)
           at javax.management.NotificationBroadcasterSupport.sendNotification(Noti
          ficationBroadcasterSupport.java:229)
           at javax.management.timer.Timer.sendNotification(Timer.java:1234)
           at javax.management.timer.Timer.notifyAlarmClock(Timer.java:1203)
           at javax.management.timer.TimerAlarmClock.run(Timer.java:1286)
           at java.util.TimerThread.mainLoop(Timer.java:512)
           at java.util.TimerThread.run(Timer.java:462)
          Caused by: org.jboss.portal.portlet.InvokerUnavailableException: Problem getting
           service description for producer self, please see the logs for more information
          .
           at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.getPortlets(WSRPConsu
          merImpl.java:157)
           at org.jboss.portal.portlet.federation.impl.FederatedPortletInvokerServi
          ce.getPortlets(FederatedPortletInvokerService.java:90)
           at org.jboss.portal.core.management.PortletDiscoveryService.processPortl
          etDiscovery(PortletDiscoveryService.java:88)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
          java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
          er.java:155)
           ... 22 more