public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
* Using Kawa with Apache Tomcat
@ 2015-06-15  2:04 Tony West
  2015-06-15  2:46 ` Per Bothner
  0 siblings, 1 reply; 7+ messages in thread
From: Tony West @ 2015-06-15  2:04 UTC (permalink / raw)
  To: kawa

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 		 	   		  

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-06-15  7:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-15  2:04 Using Kawa with Apache Tomcat Tony West
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

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).