I've deployed a simple hello world spark maven app to OpenShift using git push. But when I try to call the url, it gives a HTTP 404.
In the localhost, it worked fine, though.
Here's my web.xml, it's based from Spark's doc (http://sparkjava.com/documentation.html#other-webserver):
<web-app version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
metadata-complete="false">
<filter>
<filter-name>SparkFilter</filter-name>
<filter-class>spark.servlet.SparkFilter</filter-class>
<init-param>
<param-name>applicationClass</param-name>
<param-value>com.api.lwt.HelloWorld</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>SparkFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
I'm really new to deploying java. So maybe I'm missing something. Any ideas?