<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to Log AJP Connector bootstrap</title><link>https://answers.axonivy.com/questions/3318/how-to-log-ajp-connector-bootstrap</link><description>&lt;p&gt;I'm having difficutlies to get the AJP port up and running. Even tough I've set the System Properties &lt;code&gt;Webserver.AJP.Enabled=true&lt;/code&gt; and &lt;code&gt;Webserver.AJP.Port=8009&lt;/code&gt;, the engine does not bind the TCP Port 8009. Is there any way to log the bootstrap of the AJP Tomcat connector?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3318/how-to-log-ajp-connector-bootstrap" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 07 Jun 2018 02:56:47 -0400</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/3318/how-to-log-ajp-connector-bootstrap/3319</link><description>&lt;p&gt;With the following steps you can enabled details logs on booting the AJP connector.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Configure the JUL Logger properties&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;in the JRE that runs the Axon.ivy Engine. E.g. &lt;code&gt;[engine]/jre/lib/logging.properties&lt;/code&gt;. At the end of the file add: &lt;code&gt;org.apache.tomcat.util.net.NioEndpoint.level = ALL&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/julLoggerAjpLevelALL.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Configure Log4j&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;in &lt;code&gt;[engine]/configuration/log4jconfig.xml&lt;/code&gt;. Add the following lines somewhere between the &lt;code&gt;&amp;lt;log4j:configuration&amp;gt;&lt;/code&gt; tags:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;appender name="AjpLog" class="org.apache.log4j.DailyRollingFileAppender"&amp;gt;
    &amp;lt;param name="Threshold" value="ALL"/&amp;gt;
    &amp;lt;param name="File" value="${user.dir}/logs/ajp.log"/&amp;gt;
    &amp;lt;param name="DatePattern" value="'.'yyyy-MM-dd"/&amp;gt;
    &amp;lt;layout class="ch.ivyteam.log.layout.IvyLog4jLayout"&amp;gt;
      &amp;lt;param name="DateFormat" value="HH:mm:ss.SSS"/&amp;gt;
    &amp;lt;/layout&amp;gt;
  &amp;lt;/appender&amp;gt;

    &amp;lt;category name="org.apache.coyote.ajp.AjpNioProtocol" class="ch.ivyteam.log.Logger"&amp;gt;
    &amp;lt;priority value="ALL"/&amp;gt;
    &amp;lt;appender-ref ref="AjpLog"/&amp;gt;
  &amp;lt;/category&amp;gt;

  &amp;lt;category name="org.apache.tomcat.util.net.NioEndpoint" class="ch.ivyteam.log.Logger"&amp;gt;
    &amp;lt;priority value="ALL"/&amp;gt;
    &amp;lt;appender-ref ref="AjpLog"/&amp;gt;
  &amp;lt;/category&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/log4j_ownAjpLogs.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Verify&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Reboot the Engine and examine the Logs under &lt;code&gt;[engineDir]/logs/ajp.log&lt;/code&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Thu, 07 Jun 2018 02:56:47 -0400</pubDate><guid>https://answers.axonivy.com/questions/3318/how-to-log-ajp-connector-bootstrap/3319</guid></item></channel></rss>