From: Per Bothner <per@bothner.com>
To: Ben <ben.mailist@yahkawp.org>, kawa@sourceware.org
Subject: Re: Error when compiling to a servlet
Date: Sat, 14 Feb 2015 19:16:00 -0000 [thread overview]
Message-ID: <54DF9EEE.1090607@bothner.com> (raw)
In-Reply-To: <1423930042.519694.227511037.28360A14@webmail.messagingengine.com>
On 02/14/2015 08:07 AM, Ben wrote:
> It is not possible to compile a servlet like described in :
>
> http://www.gnu.org/software/kawa/Servlets.html
>
> system:
> - kawa-2.9
There is no "kawa-2.9". The kawa-2.0.jar that I released
does include gnu/kawa/servlet/KawaServlet.class. Are you using
some other kawa-XX.jar? Did you build it yourself? If so, how?
> - /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
> - ubuntu 14.04.1
>
> command:
> kawa --servlet -C script.scm
>
> what works though isa
> kawa -C script.scm and
> kawa --servlet script.scm
>
> but not the combination of --servlet and -C
The --servlet option doesn't do anything without -C, so that makes sense.
Note that you also need the servlet-api.jar (available various places including Tomcat
or Glassfish). This containss javax/servlet/http/HttpServlet. However, if you had
gnu/kawa/servlet/KawaServlet but were missing javax/servlet/http/HttpServlet you'd get:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
So I'm assuming there is a problem with your Kawa installation.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
next prev parent reply other threads:[~2015-02-14 19:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-14 16:07 Ben
2015-02-14 19:16 ` Per Bothner [this message]
2015-02-16 10:14 ` Ben
2015-02-16 17:04 ` Per Bothner
2015-02-16 21:12 ` Per Bothner
[not found] ` <2AF1422A-71B1-4EE1-904D-4F87BAB86629@sent.com>
2015-02-17 13:25 ` Per Bothner
2015-02-18 11:09 ` Ben
2015-02-18 19:29 ` Per Bothner
2015-02-19 20:23 ` Kawa servlet updates [was: Error when compiling to a servlet] Per Bothner
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=54DF9EEE.1090607@bothner.com \
--to=per@bothner.com \
--cc=ben.mailist@yahkawp.org \
--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).