This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Using Kawa with Apache Tomcat


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 		 	   		  

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]