Skip navigation
Perry H.
Currently Being Moderated

Unable to create Listener in Repository

Apr 9, 2012 2:20 PM

Tags: #cq5

I am doing a base install of CG 5.4 onto a Windows 7 box.  The install goes fine and I shutdown/startup CQ5.  Upon CQ5 server startup, I see the following stacktrace:

 

09.04.2012 15:58:45 *ERROR* RepositoryStartupServlet: RepositoryStartupServlet initializing failed: org.apache.jackrabbit.j2ee.ServletExceptionWithCause: Error while creating repository (RepositoryStartupServlet.java, line 250)

org.apache.jackrabbit.j2ee.ServletExceptionWithCause: Error while creating repository

        at org.apache.jackrabbit.j2ee.RepositoryStartupServlet.initRepository(Re positoryStartupServlet.java:415)

        at org.apache.jackrabbit.j2ee.RepositoryStartupServlet.startup(Repositor yStartupServlet.java:242)

        at com.day.crx.j2ee.CRXRepositoryStartupServlet.startup(CRXRepositorySta rtupServlet.java:147)

        at org.apache.jackrabbit.j2ee.RepositoryStartupServlet.init(RepositorySt artupServlet.java:215)

        at javax.servlet.GenericServlet.init(GenericServlet.java:211)

        at com.day.crx.j2ee.CRXRepositoryStartupServlet.init(CRXRepositoryStartu pServlet.java:126)

        at com.day.j2ee.servletengine.ServletRuntimeEnvironment.doStart(ServletR untimeEnvironment.java:113)

        at com.day.j2ee.servletengine.ServletRuntimeEnvironment.start(ServletRun timeEnvironment.java:93)

        at com.day.j2ee.servletengine.WebApplication.loadStartupServlets(WebAppl ication.java:702)

        at com.day.j2ee.servletengine.WebApplication.start(WebApplication.java:6 31)

        at com.day.j2ee.servletengine.ServletContainer.start(ServletContainer.ja va:318)

        at com.day.j2ee.servletengine.ServletEngine.start(ServletEngine.java:285 )

        at com.day.j2ee.server.Server.start(Server.java:227)

        at com.day.j2ee.server.Server.main(Server.java:607)

        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 com.day.launcher.Bootstrap.run(Bootstrap.java:118)

        at com.day.crx.quickstart.Quickstart.run(Quickstart.java:680)

        at com.day.crx.quickstart.Main.<init>(Main.java:675)

        at com.day.crx.quickstart.Main.main(Main.java:730)

Caused by: javax.jcr.RepositoryException: Unable to register data store in cluster.

        at com.day.crx.core.data.ClusterDataStore.initClustered(ClusterDataStore .java:163)

        at com.day.crx.core.CRXRepositoryImpl.createClusterNode(CRXRepositoryImp l.java:832)

        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java: 319)

        at com.day.crx.core.CRXRepositoryImpl.<init>(CRXRepositoryImpl.java:225)

        at com.day.crx.core.CRXRepositoryImpl.<init>(CRXRepositoryImpl.java:267)

        at com.day.crx.core.CRXRepositoryImpl.create(CRXRepositoryImpl.java:185)

        at com.day.crx.j2ee.CRXRepositoryStartupServlet.createRepository(CRXRepo sitoryStartupServlet.java:172)

        at org.apache.jackrabbit.j2ee.RepositoryStartupServlet.initRepository(Re positoryStartupServlet.java:413)

        ... 21 more

Caused by: java.io.IOException: Could not create a listener on any of the following ports: [8088, 8089, 8090, 8091, 8092, 8093], and could not connect to another cluster node

        at com.day.crx.core.cluster.ClusterController.start(ClusterController.ja va:679)

        at com.day.crx.core.cluster.ClusterController.register(ClusterController .java:833)

        at com.day.crx.core.data.ClusterDataStore$Skeleton.register(ClusterDataS tore.java:611)

        at com.day.crx.core.data.ClusterDataStore.initClustered(ClusterDataStore .java:160)

        ... 28 more

 

I shutdown my Windows box, brought it back up and did a netstat.  None of those ports (8088, 8089, 8090, 8091, 8092, 8093) were in use.  I start up CQ5 and I still receive the the error so I don't believe it is port contention.

 

Thoughts on what I am doing wrong?

 

Perry

 
Replies
  • Currently Being Moderated
    Calculating status...
    Apr 11, 2012 11:50 AM   in reply to Perry H.

    Hi Perry,

     

    Is this part of a cluster? If not, try deleting/renaming the ../crx-quickstart/repository/cluster.properties and cluster_node.id files and try starting it up again.

     

    Hope this helps.

    Ron

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 11, 2012 1:22 PM   in reply to Perry H.

    Hi Perry,

     

    Those 2 files exists for both clustered and standalone instances.  There's some good documentation on what the contents of the cluster.properties file are and how to set it up - http://dev.day.com/docs/en/cq/current/core/administering/cluster.html# Manual%20Cluster%20Setup.

     

    Ron

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points