This is the mail archive of the kawa@sources.redhat.com 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]

Re: Problems to generate a servlet with kawa


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/


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