<div dir="ltr"><div>I think you want </div><div>io.apiman.common.logging.DefaultDelegateFactory in that field rather than SystemOutLogger directly.</div><div><br></div><div>Does that work?</div><div><br></div><div>The name is probably confusing - it *was* the default one at some point.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 30 January 2017 at 15:57, Balu S <span dir="ltr">&lt;<a href="mailto:sbalu27@gmail.com" target="_blank">sbalu27@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I&#39;m trying to simply replace the NoOpLoggerFactory to SystemOutLogger in apiman.properties and get below exception. It is quite strange as SystemOutLogger  is infact implements IDelegateFactory.</div><div><br></div><div>#apiman-gateway.logger-<wbr>factory=io.apiman.common.<wbr>logging.impl.NoOpLoggerFactory<br></div><div>apiman-gateway.logger-factory=<wbr>io.apiman.common.logging.impl.<wbr>SystemOutLogger <br></div><div><br></div><div>Also, If I try to change to Slf4jLoggerFactory, then even the Slf4jLoggerFactory.class is not found.</div><div><br></div><div>Could you please advise if there is any reference to be added and causes below error. Thanks</div><div><br></div><div><div>.  Falling back to the Default. [No IDataEncrypter class configured.]</div><div>16:50:52,028 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 69) MSC000001: Failed</div><div>to start service jboss.undertow.deployment.<wbr>default-server.default-host./<wbr>apiman-gateway-api: org.jbos</div><div>s.msc.service.StartException in service jboss.undertow.deployment.<wbr>default-server.default-host./<wbr>apima</div><div>n-gateway-api: java.lang.RuntimeException: java.lang.ClassCastException: io.apiman.common.logging.impl.<wbr>SystemOutLogger cannot be cast to io.apiman.common.logging.<wbr>IDelegateFactory</div><div>        at org.wildfly.extension.<wbr>undertow.deployment.<wbr>UndertowDeploymentService$1.<wbr>run(UndertowDeploym</div><div>entService.java:85)</div><div>        at java.util.concurrent.<wbr>Executors$RunnableAdapter.<wbr>call(Executors.java:511)</div><div>        at java.util.concurrent.<wbr>FutureTask.run(FutureTask.<wbr>java:266)</div><div>        at java.util.concurrent.<wbr>ThreadPoolExecutor.runWorker(<wbr>ThreadPoolExecutor.java:1142)</div><div>        at java.util.concurrent.<wbr>ThreadPoolExecutor$Worker.run(<wbr>ThreadPoolExecutor.java:617)</div><div>        at java.lang.Thread.run(Thread.<wbr>java:745)</div><div>        at org.jboss.threads.JBossThread.<wbr>run(JBossThread.java:320)</div><div>Caused by: java.lang.RuntimeException: java.lang.ClassCastException: io.apiman.common.logging.impl.<wbr>SystemOutLogger cannot be cast to io.apiman.common.logging.<wbr>IDelegateFactory</div><div>        at io.undertow.servlet.core.<wbr>DeploymentManagerImpl.deploy(<wbr>DeploymentManagerImpl.java:<wbr>236)</div><div>        at org.wildfly.extension.<wbr>undertow.deployment.<wbr>UndertowDeploymentService.<wbr>startContext(Undertow</div><div>DeploymentService.java:100)</div><div>        at org.wildfly.extension.<wbr>undertow.deployment.<wbr>UndertowDeploymentService$1.<wbr>run(UndertowDeploym</div></div><div><br></div><div><br></div><div>regards</div><span class="HOEnZb"><font color="#888888"><div>Balu</div></font></span></div>
<br>______________________________<wbr>_________________<br>
Apiman-user mailing list<br>
<a href="mailto:Apiman-user@lists.jboss.org">Apiman-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/apiman-user" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/apiman-user</a><br>
<br></blockquote></div><br></div>