perwendel/spark — comment on commit c4b5a13b74202d06c76edf70aacf1e4602cc7cdf
File: src/test/java/spark/servlet/MyApp.java line 0
By hallison:

Per,

First, thanks for your response.

I got the following error in log:
----
Dec 6, 2011 4:46:39 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error filterStart
Dec 6, 2011 4:46:39 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/learn-spark] startup failed due to previous errors
----
I'm sorry, but I'm not proficient in the Java Platform and I don't
know solve this problem. Can you help me?

Regards.

On Tue, Dec 6, 2011 at 12:23 PM, Per Wendel

wrote:
> Hi,
>
> To answer your question fast. In your web.xml you'll need to add:
>
>
> SparkFilter
> spark.servlet.SparkFilter
>
> applicationClass
> com.name.MyAppName
>
>
>
>
> SparkFilter
> /*
>
>
> Your com.name.MyAppName class needs to implement
> spark.servlet.SparkApplication.
>
> In the init() method you can add routes as you would do in your main method
> when running Spark standalone.
>
> Best regards,
> Per
>
> 2011/11/30 Hallison Batista <
> reply@reply.github.com
>>
>
>> Per,
>>
>> You could write a web application example (using tomcat)? Thanks.
>>
>> ---
>> Reply to this email directly or view it on GitHub:
>>
>> https://github.com/perwendel/spark/commit/c4b5a13b74202d06c76edf70aacf1e4602cc7cdf#commitcomment-756172
>>
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/perwendel/spark/commit/c4b5a13b74202d06c76edf70aacf1e4602cc7cdf#commitcomment-772947

--
Hallison Batista
hallison.batista@gmail.com