title: AEM servlet not render in publisher instance
body: <p>I have followed this <a href="https://helpx.adobe.com/experience-manager/using/custom-sling-servlets.html" rel="nofollow noreferrer">tutorial</a> to create a form to submit data to SlingAllMethodsServlet .  It works fine with the author instance. Once I published the page It shows the blank page in publisher instance. </p>
  
  <p><a href="https://i.stack.imgur.com/cmtMr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cmtMr.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/jiNR7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jiNR7.png" alt="enter image description here"></a></p>
  
  <p>I have installed the AEM 6.2 in ubuntu 14.04 machine. To create the above form I have used the templates &amp; components. This is the error logs print when render the publisher instance.</p>
  
  <pre><code>10.06.2020 23:00:55.463 *INFO* [sling-default-1297-com.day.cq.replication.impl.ReverseReplicator.2114] com.day.cq.replication.Agent.publish_reverse sent. Response: 200 OK
  10.06.2020 23:00:55.463 *INFO* [sling-default-1297-com.day.cq.replication.impl.ReverseReplicator.2114] com.day.cq.replication.Agent.publish_reverse ------------------------------------------------
  10.06.2020 23:00:55.463 *INFO* [sling-default-1297-com.day.cq.replication.impl.ReverseReplicator.2114] com.day.cq.replication.Agent.publish_reverse Sending message to localhost:4503
  10.06.2020 23:00:55.463 *INFO* [sling-default-1297-com.day.cq.replication.impl.ReverseReplicator.2114] com.day.cq.replication.Agent.publish_reverse &gt;&gt; GET /bin/receive?sling:authRequestLogin=1 HTTP/1.0
  10.06.2020 23:00:55.463 *INFO* [sling-default-1297-com.day.cq.replication.impl.ReverseReplicator.2114] com.day.cq.replication.Agent.publish_reverse &gt;&gt; Action: Internal Poll
  10.06.2020 23:00:55.463 *INFO* [sling-default-1297-com.day.cq.replication.impl.ReverseReplicator.2114] com.day.cq.replication.Agent.publish_reverse &gt;&gt; Path: 
  10.06.2020 23:00:55.463 *INFO* [sling-default-1297-com.day.cq.replication.impl.ReverseReplicator.2114] com.day.cq.replication.Agent.publish_reverse &gt;&gt; Handle: 
  10.06.2020 23:00:55.463 *INFO* [sling-default-1297-com.day.cq.replication.impl.ReverseReplicator.2114] com.day.cq.replication.Agent.publish_reverse --
  10.06.2020 23:00:55.463 *INFO* [sling-default-1297-com.day.cq.replication.impl.ReverseReplicator.2114] com.day.cq.replication.Agent.publish_reverse &lt;&lt; HTTP/1.1 200 OK
  10.06.2020 23:00:55.463 *INFO* [sling-default-1297-com.day.cq.replication.impl.ReverseReplicator.2114] com.day.cq.replication.Agent.publish_reverse &lt;&lt; Date: Wed, 10 Jun 2020 17:30:55 GMT
  10.06.2020 23:00:55.463 *INFO* [sling-default-1297-com.day.cq.replication.impl.ReverseReplicator.2114] com.day.cq.replication.Agent.publish_reverse &lt;&lt; X-Content-Type-Options: nosniff
  10.06.2020 23:00:55.463 *INFO* [sling-default-1297-com.day.cq.replication.impl.ReverseReplicator.2114] com.day.cq.replication.Agent.publish_reverse &lt;&lt; Content-Type: application/octet-stream
  10.06.2020 23:00:55.463 *INFO* [sling-default-1297-com.day.cq.replication.impl.ReverseReplicator.2114] com.day.cq.replication.Agent.publish_reverse &lt;&lt; Content-Length: 32
  10.06.2020 23:00:55.463 *INFO* [sling-default-1297-com.day.cq.replication.impl.ReverseReplicator.2114] com.day.cq.replication.Agent.publish_reverse Message sent.
  10.06.2020 23:00:55.463 *INFO* [sling-default-1297-com.day.cq.replication.impl.ReverseReplicator.2114] com.day.cq.replication.Agent.publish_reverse ------------------------------------------------
  10.06.2020 23:00:55.463 *INFO* [sling-default-1297-com.day.cq.replication.impl.ReverseReplicator.2114] com.day.cq.replication.Agent.publish_reverse Reverse replication successful.
  10.06.2020 23:00:55.463 *INFO* [sling-default-1297-com.day.cq.replication.impl.ReverseReplicator.2114] com.day.cq.replication.Agent.publish_reverse Fetched 0 contents from http://localhost:4503/bin/receive?sling:authRequestLogin=1 since null
  </code></pre>