The Jetty Web Server provides an HTTP server and Servlet container
capable of serving static and dynamic content either from a standalone
or embedded instantiations. From jetty-7, the jetty webserver and
other core compoments are hosted by the eclipse foundation.
The project provides:
* Asynchronous HTTP Server
* Standard based Servlet Container
* Web Sockets server
* Asynchronous HTTP Client
* OSGi, JNDI, JMX, JASPI, AJP support
Jetty is now installed in /usr/local/jetty
From Jetty 9, the way to configure it has changed. You are **strongly**
advised to read the documentation found here:
http://www.eclipse.org/jetty/documentation/current/
Please pay particular attention to HOME and BASE documentation, i.e.,:
http://www.eclipse.org/jetty/documentation/current/startup-base-and-home.html
You may want to activate it in /etc/rc.conf:
# sysrc jetty_enable="YES"
A sample configuration file can be found here:
/usr/local/etc/jetty/jetty.sample
Please modify it to suit your needs, paying particular attention
to the value of JETTY_HOME and JETTY_BASE.
Once you are happy with the configuration file, you can start Jetty:
# service jetty start
Once Jetty is started, point your web browser to the default home page at
http://localhost:8080/.
A demo web app is installed for your convenience.
== ADVANCED USAGE ==
If you need to pass special options to Java/Jetty, please set the appropriate
variables in the configuration file, e.g.,
# Increase memory limit of the Java virtual machine
JAVA_OPTIONS="-Xms32m -Xmx256m"
# Run Java with remote debugging turned on on port 8186
JAVA_OPTIONS="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8186"
More configuration options are presented in the sample file.
If removing:
If, when, Jetty is removed, you can safely delete this directory:
/usr/local/www/jetty
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
When there is a do-install target, do not use a post-install target, do
everything at once. Sometime, rename post-install into a options helper
target.
I did not fix ports that were such a mess that I could not figure out
what they really wanted to do. I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.
With hat: portmgr
Sponsored by: Absolight
Add support for Jetty 9.
- Add www/jetty9 to track the latest branch of Jetty
- Move www/jetty to www/jetty8
- Add LICENSE and fix RUN_DEPENDS in www/jetty8
www/jetty8 is officially EOL'd upstream but still seems to be in use.
PR: 204190
Submitted by: David Harrigan