This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Problems to generate a servlet with kawa
- From: Per Bothner <per at bothner dot com>
- To: Schneider Karin <karin dot schneider at siemens dot com>
- Cc: "'kawa at sources dot redhat dot com'" <kawa at sources dot redhat dot com>
- Date: Fri, 26 Apr 2002 11:53:16 -0700
- Subject: Re: Problems to generate a servlet with kawa
- References: <6D5AEFB4ECA0D311897E00508B63B59409719A18@ERLM586A.erl9.siemens.de>
Schneider Karin wrote:
> Hello,
>
> I work on Windows NT 4 with JDK 1.3. I downloaded the kawa jar file. Then I
> tried to generate a servlet with Kawa, but I got the following error
> message:
>
> java -jar kawa-1.6.97.jar --xquery --servlet -C table.xql
> (compiling table.xql)
> Internal error while compiling table.xql
> java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
> ...
> I tried different settings of PATH and CLASSPATH and I'm sure that
> servlet.jar is defined in the classpath.
Well, I don't think it can be anything else. Somehow the class
javax.servlet.http.HttpServlet is not being found. I don't have any
experience with NT 4 myself, but you could try explicitly mentioning
servlet.jar explicitly on the command line:
java -classpath servlet.jar -jar kawa-1.6.97.jar --xquery --servlet
-C table.xql
You could also try putting servlet.jar in JDK's extensions directory.
I assume you've double-checked with that servlet.jat is readable
and contains the expected files, perhaps using 'jar tvf servlet.jar'.
I hope you succeed, because I'm hoping lots of people will try
and like Kawa-XQuery!
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/