perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spark refusing to work inside docker container running ubuntu

s5gi opened this issue · comments

commented

image
As shown in the image above the route is mapped but according to the logs of the container it says otherwise:

[Thread-0] INFO spark.embeddedserver.jetty.EmbeddedJettyServer - == Spark has ignited ...
[Thread-0] INFO spark.embeddedserver.jetty.EmbeddedJettyServer - >> Listening on 0.0.0.0:1026
[Thread-0] INFO org.eclipse.jetty.server.Server - jetty-9.4.48.v20220622; built: 2022-06-21T20:42:25.880Z; git: 6b67c5719d1f4371b33655ff2d047d24e171e49a; jvm 17.0.5+8
[Thread-0] INFO org.eclipse.jetty.server.session - DefaultSessionIdManager workerName=node0
[Thread-0] INFO org.eclipse.jetty.server.session - No SessionScavenger set, using defaults
[Thread-0] INFO org.eclipse.jetty.server.session - node0 Scavenging every 600000ms
[Thread-0] INFO org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@f71570{HTTP/1.1, (http/1.1)}{0.0.0.0:1026}
[Thread-0] INFO org.eclipse.jetty.server.Server - Started @969ms
[qtp11388440-21] INFO spark.http.matching.MatcherFilter - The requested route [/] has not been mapped in Spark for Accept: [text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9]
[qtp11388440-16] INFO spark.http.matching.MatcherFilter - The requested route [/base] has not been mapped in Spark for Accept: [text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9]
[qtp11388440-17] INFO spark.http.matching.MatcherFilter - The requested route [/base] has not been mapped in Spark for Accept: [*/*]

I have rebuilt the container and jar file multiple times yet Spark doesn't work. I'm not sure if its an issue with Spark or Docker.

If anyone needs anymore information just ask and I'll respond here with it.

commented

ignore my bad