public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Tony West <tonys-mailbox@hotmail.com>
To: "kawa@sourceware.org" <kawa@sourceware.org>
Subject: Using Kawa with Apache Tomcat
Date: Mon, 15 Jun 2015 02:04:00 -0000	[thread overview]
Message-ID: <BAY177-W99E689C1036437144E4FAE1B80@phx.gbl> (raw)

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 		 	   		  

             reply	other threads:[~2015-06-15  2:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-15  2:04 Tony West [this message]
2015-06-15  2:46 ` Per Bothner
2015-06-15  4:13   ` Tony West
2015-06-15  4:37     ` Per Bothner
2015-06-15  4:56       ` Tony West
2015-06-15  6:45         ` Per Bothner
2015-06-15  7:09           ` Tony West

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY177-W99E689C1036437144E4FAE1B80@phx.gbl \
    --to=tonys-mailbox@hotmail.com \
    --cc=kawa@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).