This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Using Kawa with Apache Tomcat
- From: Tony West <tonys-mailbox at hotmail dot com>
- To: "kawa at sourceware dot org" <kawa at sourceware dot org>
- Date: Mon, 15 Jun 2015 12:04:28 +1000
- Subject: Using Kawa with Apache Tomcat
- Authentication-results: sourceware.org; auth=none
Hi.
I have been trying to get Kawa to work with Tomcat but so far I haven't succeeded.
At the moment, when I browse to the url, Firefox's console is showing [HTTP/1.1 200 OK 0ms] so I seem to be finding the file, but the screen comes back blank.
My web.xml is as follows:
<web-app>
<display-name>My Application</display-name>
<servlet>
<servlet-name>MyHello</servlet-name>
<servlet-class>hello</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MyHello</servlet-name>
<url-pattern>/hello</url-pattern>
</servlet-mapping>
</web-app>
My hello.scm is simply:
(require 'http)
(display (html:p "Hello world from Kawa"))
I have been compiling the file with:
java kawa.repl --servlet -C hello.scm
The file compiles ok and produces:
hello$frame.class
hello.class
I would be grateful if anyone could suggest what I am doing wrong.
Thanks.
Tony