Jerome Carter Jerome Carter - 1 year ago 135
Java Question

How do I run a spark application on a tomcat server

After a day of googling, I'm still lost.

I've created a Spark web-application that runs on the embedded Jetty server, but I want to run my web-application on a Tomcat server.

I'm using Maven to build my web-application and can't find any good resources on using Spark on Tomcat with Maven.

How can I create a Maven project with Spark and run it on a Tomcat server?

Answer Source

You'll need to implement EmbeddedServer interface in order to do it. Currently, it only supports Jetty by default. So, fork it and submit a PR to the author.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download