1 Reply Latest reply on Jan 21, 2009 8:30 AM by Herman Reintke

    Errors starting Forum1.2 in Portal2.7.0

    Herman Reintke Newbie

      LS,

      I downloaded the new forum sw for portal 2.7.0, compiled with no errors and deployed in a working environment.

      During startup I get the following errros

      13:14:18,140 WARN [ServiceController] Problem starting service portal.forums:service=Hibernate
      java.lang.ClassCastException: org.hibernate.cfg.Configuration
      at org.hibernate.search.event.FullTextIndexEventListener.initialize(FullTextIndexEventListener.java:82)
      at org.hibernate.event.EventListeners.initializeListeners(EventListeners.java:356)
      at org.hibernate.cfg.Configuration.getInitializedEventListeners(Configuration.java:1304)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
      at org.jboss.portal.jems.hibernate.SessionFactoryBinder.createSessionFactory(SessionFactoryBinder.java:409)
      at org.jboss.portal.jems.hibernate.SessionFactoryBinder.startService(SessionFactoryBinder.java:245)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
      at org.jboss.portal.jems.as.system.AbstractJBossService.start(AbstractJBossService.java:73)
      at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)

      and
      13:14:31,281 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

      --- MBeans waiting for other MBeans ---
      ObjectName: portal.forums:service=Hibernate
      State: FAILED
      Reason: java.lang.ClassCastException: org.hibernate.cfg.Configuration
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=PortalDS
      Depends On Me:
      portal.forums:service=Module,type=Forums
      portal.forums:service=Module,type=Search
      portal.forums:service=Module,type=IndexBuilder

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: portal.forums:service=Hibernate
      State: FAILED
      Reason: java.lang.ClassCastException: org.hibernate.cfg.Configuration
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=PortalDS
      Depends On Me:
      portal.forums:service=Module,type=Forums
      portal.forums:service=Module,type=Search
      portal.forums:service=Module,type=IndexBuilder


      I do get a forum tab in the portal but when accessing that I get :

      ERROR
      Cause: javax.portlet.PortletException: java.lang.UnsupportedOperationException
      Message: java.lang.UnsupportedOperationException
      StackTrace:

      javax.portlet.PortletException: java.lang.UnsupportedOperationException
      at org.jboss.portlet.forums.ui.ForumsJSFPortlet.doView(ForumsJSFPortlet.java:433)
      at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
      at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
      at org.jboss.portlet.forums.ui.ForumsJSFPortlet.render(ForumsJSFPortlet.java:463)
      at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:568)
      at org.jboss.portal.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159)
      at org.jboss.portal.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:80)
      at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:505)
      at org.jboss.portal.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)
      at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
      at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeRequired$aop(TransactionInterceptor.java:117)
      at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeRequired_N7979132061380150447.invokeNext(TransactionInterceptor$invokeRequired_N7979132061380150447.java)
      at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
      at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)


      Do I need to configure any specific other Hibernate options ?

      Did anyone get the new forums already running in Portal 2.7.0 ?

      Kind regards,

      Herman