GlassFish has very similar features.
There is a default application that serves static content from the docroot domain defined with Glassfish.
You can do the following to see how it works.
Suppose you installed GlassFish 3.1.2 in a directory named / foo (or C: \ FOO) by unzipping one of the distributions.
You can create the directory / foo / glassfish 3 / glassfish / domains / domain1 / docroot / txt and place the one.txt file in this directory.
Run domain1 with the command asadmin start-domain domain1
Then you can access one.txt via the url http: // localhost: 8080 / txt / one.txt .
source share