6 Replies Latest reply on Jan 26, 2011 5:03 PM by mstruk

    Issues starting up portal

    cblumenro

      All,

       

      I'm having severe issues getting GateIn to start up correctly. I downloaded GateIn 3.0 GA, unzipped it, modified to be used with MySQL (as described somewhere else in the forum) and I start it from within JBoss Dev Studio 3. I get several error messages.

       

      In particular I get:

       

      1)

      22:25:51,046 ERROR [ContainerUtil] Cannot load property file null

      java.io.IOException: Child not found gatein.ear/lib/exo.portal.webui.portal-3.0.0-GA.jar/conf/configuration.properties/ for FileHandler@4681268[path= context=file:/C:/GateIn/GateIn-3.0.0-GA/server/default/deploy/ real=file:/C:/GateIn/GateIn-3.0.0-GA/server/default/deploy/], available children: [FileHandler@26495047[path=admin-console.war .....
          at org.jboss.virtual.plugins.registry.DefaultVFSRegistry.findHandler(DefaultVFSRegistry.java:128)

      ...

       

      This is really weird as there is really not file /conf/configuration.properties in that jar. Instead there is a file /conf/configuration.xml. So I wonder why it wants to read the .properties file and not the .xml file.

       

       

      2)

      22:26:05,127 ERROR [RepositoryService] Error start repository service
      javax.jcr.RepositoryException: _sample-portal not bound: Cannot instantiate component class org.exoplatform.services.jcr.impl.storage.jdbc.optimisation.CQJDBCWorkspaceDataContainer: Cannot instantiate component class org.exoplatform.services.jcr.impl.storage.jdbc.optimisation.CQJDBCWorkspaceDataContainer
          at org.exoplatform.services.jcr.impl.RepositoryContainer.registerWorkspace(RepositoryContainer.java:374)

      ...

       

      This happens although I removed the sample portal from the deploy directory. Also, a directory C:\system_sample-portal is created.

       

      3)

      22:26:05,132 ERROR [STDERR] javax.jcr.RepositoryException: Repository 'repository' not found.
      22:26:05,133 ERROR [STDERR]     at org.exoplatform.services.jcr.impl.RepositoryServiceImpl.getRepository(RepositoryServiceImpl.java:203)

      ...

       

      4)

      22:26:08,980 ERROR [RootContainer] Cannot create the portal container 'portal' . ServletContext: org.apache.catalina.core.ApplicationContextFacade@9b9fe6
      org.picocontainer.PicoIntrospectionException: Failed when calling start on org.gatein.portal.wsrp.ExoKernelIntegration@7be9e9

      ...

      Caused by: java.lang.RuntimeException: Couldn't load WSRP producer configuration from conf/wsrp-producer-config.xml

      ...

      Caused by: org.chromattic.api.BuilderException: The class org.gatein.portal.wsrp.state.JCRPersister$WSRPSessionLifeCycle construction threw an exception

      ...

       

       

      I attached the files I modified. Does anyone have an idea what is wrong?

       

      Thanks,

      Christian

        • 1. Re: Issues starting up portal
          mstruk

          Sounds like you've hit a known issue: https://jira.jboss.org/jira/browse/JBEPP-320.

           

          You can download the attachment from that issue - properties-service.xml file, and place it into your JBOSS_HOME/server/default/deploy.

           

          GateIn needs the following system property set: exo.conf.dir.name=gatein

           

          It's normally set through jboss.conf (jboss.conf.bat), but that file is currently ignored by JBDS.

           

          - marko

          • 2. Re: Issues starting up portal
            cblumenro

            Thanks, Marco. This was obviously exactly what I needed.

             

            To get rid of the sample_portal I also recreated my DB.

             

            Now GateIn starts without any error message.

             

            Christian

            • 3. Re: Issues starting up portal
              davidhsv

              Thank you ! I lost all day breaking my head on this ^^

              • 4. Re: Issues starting up portal
                vali_iva

                Hi, I have I similar problem with config file at startup on the Tomcat distribution. Any solution to that?

                Thanks.

                Valentin

                • 5. Issues starting up portal
                  snon

                  Hi,

                   

                  I face the same problems with a 3.10 GateIn version (with JBoss AS 5.1.0 JDK6). I modified the properties-service.xml file, but it didn't solve the problem. Do I need to modify manually the following files as Nic did ?

                  idm-configuration.xml

                  repository-configuration.xml

                  jcr-configuration.xml

                   

                  I only modified the configuration.properties as mentionned in the reference guide.

                   

                  Regards.

                  • 6. Issues starting up portal
                    mstruk

                    This thread is about starting GateIn from JBoss Development Studio / Eclipse + JBoss Tools.

                     

                    If that's your use case, and you're having a problem, then it will help if you post some stack traces.

                     

                    Otherwise, GateIn starts out of the box without you having to modify anything.