5 Replies Latest reply on Mar 19, 2013 5:12 AM by vikramca06

    Publishing Instance is rendering blank HTML

    jzeren Level 1

      I have recently created a site with CQ5.4 using the cq-quickstart-5.4.0.jar executable jar file.  In my file structure I have an author folder and a publish folder in which I am running my author and publish instances respectively.  I have been able to make changes to the Geomtrixx site and see the changes reflected on the publish instance, so I know the replication is working.  However, when I create a new site and "Activate" it (doing so through both WCM and the "Tools->Replication->Activate Tree" mechanism it shows in the UI that it was published.  The logs also indicate that the replication was successful.  However when trying to access the pages on the publish instance, blank HTML pages are renderd.  Oddly enough the pages are not 100% blank, they render with an HTML, HEAD, META, and BODY tag, but with no content in the tags.

       

      This indicates to me that some sort of replication has occured, because the page renders blank.  If I type in the URL of a page that doesn't exist, the publish instance redirects to the Geometrixx site. 

       

      I have searched the forums and can't seem to find anyone with a similar problem.  I also came accross the following article http://dev.day.com/content/kb/home/cq5/CQ5Troubleshooting/replication-stuck.html which sounded like it might help but did not address my issue.  I am guessing the issue is something small and relatively simple that I have overlooked, but can't seem to pin point the problem.  Any information would be helpful.

        • 1. Re: Publishing Instance is rendering blank HTML
          hypnotec Adobe Employee

          are there any other messages in the logs (specifically the publish error.log while reloading a blank page)? what template did you use to create the site? is the site access protected?

          • 2. Re: Publishing Instance is rendering blank HTML
            jzeren Level 1

            I tried to use as much OOTB as I could.  The contents of the publish error log (from trying to access one of the site pages) are below.    I used a template which I created, everything renders ok in the author instance.  I did not make the site access protected (or at least not on purpose).  The logs certainly do indicate that it is trying to use authenctication, but I don't want authentication in front of it.

             

            13.03.2012 09:46:09.345 *ERROR* [0:0:0:0:0:0:0:1 [1331646369344] GET /content/icubed_profile_site/index.html HTTP/1.1] org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension html, cannot render resource JcrNodeResource, type=icubed_resource_profile/components/contentpage_wide, superType=null, path=/content/icubed_profile_site/index/jcr:content

            13.03.2012 09:46:09.420 *INFO* [0:0:0:0:0:0:0:1 [1331646369398] GET /favicon.ico HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Resource /favicon.ico not found

            13.03.2012 09:46:09.513 *INFO* [0:0:0:0:0:0:0:1 [1331646369398] GET /favicon.ico HTTP/1.1] org.apache.sling.auth.core.impl.SlingAuthenticator login: No handler for request (2 handlers available)

            13.03.2012 09:46:09.514 *WARN* [0:0:0:0:0:0:0:1 [1331646369398] GET /favicon.ico HTTP/1.1] libs.sling.servlet.errorhandler.404$jsp Cannot login: No Authentication Handler is willing to authenticate

            13.03.2012 09:46:09.550 *INFO* [0:0:0:0:0:0:0:1 [1331646369546] GET /favicon.ico HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Resource /favicon.ico not found

            13.03.2012 09:46:09.551 *INFO* [0:0:0:0:0:0:0:1 [1331646369546] GET /favicon.ico HTTP/1.1] org.apache.sling.auth.core.impl.SlingAuthenticator login: No handler for request (2 handlers available)

            13.03.2012 09:46:09.551 *WARN* [0:0:0:0:0:0:0:1 [1331646369546] GET /favicon.ico HTTP/1.1] libs.sling.servlet.errorhandler.404$jsp Cannot login: No Authentication Handler is willing to authenticate

            13.03.2012 09:46:09.561 *INFO* [0:0:0:0:0:0:0:1 [1331646369557] GET /favicon.ico HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Resource /favicon.ico not found

            13.03.2012 09:46:09.562 *INFO* [0:0:0:0:0:0:0:1 [1331646369557] GET /favicon.ico HTTP/1.1] org.apache.sling.auth.core.impl.SlingAuthenticator login: No handler for request (2 handlers available)

            13.03.2012 09:46:09.562 *WARN* [0:0:0:0:0:0:0:1 [1331646369557] GET /favicon.ico HTTP/1.1] libs.sling.servlet.errorhandler.404$jsp Cannot login: No Authentication Handler is willing to authenticate

            • 3. Re: Publishing Instance is rendering blank HTML
              jzeren Level 1

              Ok, I think I solved my own problem.  I had replicated the content, but not anything I developed in the "apps" folder.  After using the Activate Tree on my work in the apps folder, the replication now seems to be working.

              • 4. Re: Publishing Instance is rendering blank HTML
                jzeren Level 1

                Now that I understand the problem and solution, I will share it in more detail with the community for anyone else that may come accross the same problem.

                 

                The issue was that after creating a new site on an author instance, when viewing it on the publish site the page was not rendering correclty.  The visible symptom was that initial HTML tags (for HTML, HEAD, META, and BODY) were being generated, but the content was not be filled in. 

                 

                I did Activate my content properly, however, because it was a new site, and I had generated new components and site templates which resided in the "apps" folder and assets in the "etc" folder, they were not available to be rendered and so the HTML page was blank (because they could not be found on the publish instance).  What I did was use the "Activate Tree" under the Tools section to publish content in /content/mysite.  What I missed was using the Activate Tree to publish items I had created in /etc/designs/mysite and /apps/mysite.

                • 5. Re: Publishing Instance is rendering blank HTML
                  vikramca06 Level 1

                  Thank you very much.

                   

                  Now its working for me.