3 Replies Latest reply on May 23, 2006 2:21 AM by Serge Dubakov

    Problem with 2.4alpha and CMS service

    Serge Dubakov Newbie

      I was trying to deploy the JBoss Portal 2.4 alpha instead of previously installed 2.2 (which ran quite fine) and ran into the following problem during startup:

      2006-05-15 15:58:37,467 WARN [org.jboss.system.ServiceController] Problem starting service portal:service=CMS
      java.lang.IllegalStateException: You need to specify a JNDI Name for the HibernateSessionFactory
      at org.jboss.portal.cms.util.HibernateUtil.getSessionFactory(HibernateUtil.java:14)
      at org.jboss.portal.cms.hibernate.HibernateStore.init(HibernateStore.java:138)
      at org.apache.jackrabbit.core.config.FileSystemConfig.init(FileSystemConfig.java:58)
      at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(RepositoryImpl.java:1468)
      at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:487)
      at org.apache.jackrabbit.core.RepositoryImpl.(RepositoryImpl.java:233)
      at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:468)
      at org.jboss.portal.cms.impl.jcr.jackrabbit.JackrabbitJCRService.start(JackrabbitJCRService.java:102)
      at org.jboss.portal.cms.impl.jcr.JCRCMS.startJCR(JCRCMS.java:192)
      at org.jboss.portal.cms.impl.jcr.JCRCMS.startService(JCRCMS.java:160)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
      at org.jboss.portal.common.system.AbstractJBossService.start(AbstractJBossService.java:72)
      at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      at jrockit.reflect.InitialMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;J)Ljava.lang.Object;(Unknown Source)
      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:260)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
      at $Proxy0.start()V(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at org.jboss.system.ServiceController.start(ServiceController.java:435)
      at org.jboss.system.ServiceController.start(ServiceController.java:435)

      The datasource definition xml is in place, database etc. is also fine - see below:

      2006-05-15 15:58:37,559 INFO [org.hibernate.connection.DatasourceConnectionProvider] Using datasource: java:PortalDS
      2006-05-15 15:58:37,560 INFO [org.hibernate.cfg.SettingsFactory] RDBMS: PostgreSQL, version: 8.1.3
      2006-05-15 15:58:37,560 INFO [org.hibernate.cfg.SettingsFactory] JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.1 JDBC2 Enterprise with NO SSL (build 405)
      2006-05-15 15:58:37,560 INFO [org.hibernate.dialect.Dialect] Using dialect: org.hibernate.dialect.PostgreSQLDialect

      First I tried to run JBossPortal 2.4alpha under JBoss 4.0.3sp1 which I used with previous version of JBossPortal. To check if it matters I upgraded it to 4.0.4rc2 - and it didn't help.

      Could pls someone give me a hint on what should I do to overcome this?