bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] Using html namespace in a servlet


From: Sunder Swaminathan
Subject: [Bug-kawa] Using html namespace in a servlet
Date: Fri, 19 Feb 2016 00:21:45 -0600

My apologies if this is the wrong group as I’m not really filing a bug but seeking some information on kawa’s behavior. The support email listed on kana’s website — address@hidden doesn’t seem to be working anymore.


Dear Kawa group,

I’m new to Kawa and loving every bit of it so far! I’m playing around writing servlets but can’t seem to get the built in html namespace to generate some html output. Any ideas what might be going on? I’ve pasted the code and the exception below. Thank you for any help!


—servlets.scm—

(define-alias HttpServlet javax.servlet.http.HttpServlet)
(define-alias HttpServletRequest javax.servlet.http.HttpServletRequest)
(define-alias HttpServletResponse javax.servlet.http.HttpServletResponse)

(define-simple-class <a.Foo> (HttpServlet)
((service (r :: HttpServletRequest) (w :: HttpServletResponse))
; ((w:getWriter):write "OK"))) ;this works fine
((w:getWriter):write (*:toString (html:p "here"))))) ;but this fails




And the exception I’m seeing (while running under Tomcat 9.0.0.M1)

HTTP Status 500 - Servlet execution threw an exception

type Exception report

message Servlet execution threw an exception

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet execution threw an exception
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

root cause

java.lang.IllegalAccessError: tried to access field servlets.Lit0 from class a.Foo
	a.Foo.service(servlets.scm:26)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

note The full stack trace of the root cause is available in the Apache Tomcat/9.0.0.M1 logs.


Apache Tomcat/9.0.0.M1


Thanks,
Sunder

reply via email to

[Prev in Thread] Current Thread [Next in Thread]