Here another Servlet 2.3 compatible container:

http://panfmp.svn.sourceforge.net/viewvc/panfmp/tools/mini-webserver/trunk/

It does not support web.xml files (instead uses a simple properties file),
but it supports almost everything needed to get simple servlets running with
path mappings etc. The support for web.xml was left out because of
compatibility with very old java versions without xml support and to keep it
small. JAR file is about 39 KB plus servlet.jar version 2.3 without JSP
classes (31 KB) and commons-logging.

We use it currenty for a CD-ROM based Lucene search engine. It's licensed in
"Apache 2.0" and Java 1.3 compatible (no generics, StringBuffer). The SVN
currenty lacks documentation and startup shell scripts, but a working config
file is supplied.

The SVN contains a little bit more jar files, but needed is only
webserver.jar, servlet-2.3.jar and commons-logging.jar. Some features are,
that the static content servlet can serve files directly from ZIP files
(e.g., http://localhost/file.zip/some/example.txt).

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: [EMAIL PROTECTED]

> -----Original Message-----
> From: Nadav Har'El [mailto:[EMAIL PROTECTED]
> Sent: Sunday, April 27, 2008 3:08 PM
> To: java-dev@lucene.apache.org
> Subject: Re: WebLuke - include Jetty in Lucene binary distribution?
> 
> On Sun, Dec 09, 2007, markharw00d wrote about "WebLuke - include Jetty in
> Lucene binary distribution?":
> > The only open question is if we should bundle Jetty in the Lucene binary
> > distribution as part of the build packaging. This could be used to
> > launch both WebLuke and the existing luceneweb.war but adds about 6 or 7
> > meg to the overall zipped download size.
> > Thoughts?
> 
> My thoughts is that 6-7 MB for a tiny HTTP Server and/or servlet engine is
> way, way, too much. I'm surprise that Jetty, originally intended to be
> simple
> and embeddable, reached that size (which is 10 times larger than Lucene's
> core,
> for example)!
> 
> For demo purposes, I wrote myself something similar, and its
> (uncompressed)
> .class size is:
>   14 K for the basic HTTP server
>   24 K for the servlet container (jaxax.servlet API support)
> And there's also the Servlet API itself from Sun, at around 40 K (this is
> part
> of J2EE but not of J2SE, so you need to include this as well if you want
> to
> use the servlet API). And that's it.
> 
> I'm sure that similar tiny Web Servers can also be found on the Web, but
> if
> there's interest, I can see about publishing mine.
> 
> 
> --
> Nadav Har'El                        |       Sunday, Apr 27 2008, 22 Nisan
> 5768
> IBM Haifa Research Lab              |-------------------------------------
> ----
>                                     |Why do we drive on a parkway and park
> on
> http://nadav.harel.org.il           |a driveway?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to