Hi, Did you align the HTTP context in etc/org.apache.karaf.decanter* config files ?
Regards JB > Le 30 mars 2020 à 11:16, dzoni <christian.jaeg...@zf.com> a écrit : > > Hello there, > > i'm Building up an infrastructure example for transporting log-Messages to a > target. > > In my Case im running in one Karaf (client): > 1. my application > 2. Decanter log-collector > 3. Decanter rest-Appender > > there i want the collected data to send into another Karaf (server), > therefor i'm running in the other Karaf follwoing stuff: > 1. Decanter rest-collector > 2. Decanter rest-servlet-collector > > all Transport is by Default on localhost and port 8181 > > *now i'm getting at the Client Karaf follwing Warn-LOG:* > WARN [EventAdminThread #11] Error sending event to rest service > java.io.IOException: Server returned HTTP response code: 403 for URL: > http://localhost:8181 > at > sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900) > ~[?:1.8.0_242] > at > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) > ~[?:1.8.0_242] > at > org.apache.karaf.decanter.appender.rest.RestAppender.handleEvent(RestAppender.java:93) > [!/:?] > at > org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:415) > [!/:?] > at > org.apache.felix.eventadmin.impl.tasks.HandlerTask.run(HandlerTask.java:70) > [!/:?] > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > [?:1.8.0_242] > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > [?:1.8.0_242] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > [?:1.8.0_242] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > [?:1.8.0_242] > at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242] > > *and the Server-Karaf is throwing following Warn-Message* > WARN [Karaf_Worker-3] Can't request REST service > java.io.FileNotFoundException: http://localhost:8181/metrics > at > sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1896) > ~[?:1.8.0_242] > at > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) > ~[?:1.8.0_242] > at > org.apache.karaf.decanter.collector.rest.RestCollector.run(RestCollector.java:97) > [!/:?] > at > org.apache.karaf.scheduler.core.QuartzJobExecutor.execute(QuartzJobExecutor.java:60) > [!/:?] > at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [!/:?] > at > org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) > [!/:?] > > > Where i have to adjust some diffenrent configurations to solve this > Problem???? > > thanks for your helpful answers > dzoni > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html