perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.63k stars 1.56k forks source link

Spark refusing to work inside docker container running ubuntu #1269

Closed s5gi closed 1 year ago

s5gi commented 1 year ago

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.

s5gi commented 1 year ago

ignore my bad