Home of the Yajws java web server

Preamble

Yajws is a small web server that I coded only for the fun of doing it. It has severe limitations that any user should be aware of.

Known bugs and limitation

Yajws doesn't work on Windows platforms.
Yajws doesn't support special characters in URLs such as %20, %22, +... This means whitespaces in urls are not supported too.
If your filesystem is case-sensitive, Url parsing will be case-sensitive too. This is not a valid implementation of HTTP.
Yajws supports server time locales that : a) Use year 0 AD as year 0 b) have weeks starting on either monday or sunday. If your locale differs from this, this will lead to wrong if-modified-since HTTP responses. Since most browsers uses if-modified-since by default, you shouldn't run Yajws with an unsupported server time locale.

Websites using Yajws

My shms server on zircanews.com (not always online)

Download

Download Yajws from Sourceforge.

Does Yajws means Yet Another Java Web Server ?

Yes

Yajws README

This is Yajws 0.0.1 README
Copying
Yajws is released under the terms of the BSD license. See COPYING.

Installing and running Yajws
Download the latest binary release from http://sourceforge.net/projects/yajws .
Unpack the zip file. It will create a Yajws dir. Cd to it.
Enter the command :
java -cp . org.yajws.Yajws port
Where port is the port number.
Stop the server with [CTRL+C].

Where do I put my html files ?
In the webapps directory.

Supported mime-types
Yajws supports html, gif and jpeg. You can add custom mime-types by editing conf/mime.conf .

User Feedback
If you use Yajws please let me know ! Write to nicolas.chartoire@XXXX.XXX (download Yajws for contact information)

Authors and contributors
Yajws (c) 2008 Nicolas Chartoire