This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
RE: 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 14:13:12 +1000
- Subject: RE: Using Kawa with Apache Tomcat
- Authentication-results: sourceware.org; auth=none
- References: <BAY177-W99E689C1036437144E4FAE1B80 at phx dot gbl>,<557E3C65 dot 8020505 at bothner dot com>
----------------------------------------
> Date: Sun, 14 Jun 2015 19:45:57 -0700
> From: per@bothner.com
> To: tonys-mailbox@hotmail.com; kawa@sourceware.org
> Subject: Re: Using Kawa with Apache Tomcat
>
> On 06/14/2015 07:04 PM, Tony West wrote:
>> 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 hello.scm is simply:
>> (require 'http)
>> (display (html:p "Hello world from Kawa"))
>
> Leave off the display call:
>
> (require 'http)
> (html:p "Hello world from Kawa")
>
> In a Kawa servlet, you don't "print" the response.
> It's like a REPL - the servlet is evaluated to a value
> and *that* becomes the response.
>
> Try copying the file in testsuite/info/+default+
> to your hello.scm and you'll get a very detailed response,
> --
> --Per Bothner
> per@bothner.com http://per.bothner.com/
I made the above change to hello.scm but I still get a blank screen in the browser.
I downloaded the source (kawa-2.0.tar.gz) and found the testsuite directory, but I can't find /info/+default+ under it.
Puzzled.
Tony