Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Hudson-ci/Containers/Jetty"
< Hudson-ci | Containers
(New page: {{hudson|pageTitle=Using Jetty as a Container}}) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{hudson|pageTitle=Using Jetty as a Container}} | + | {{hudson|pageTitle=Using Jetty as a Container}} |
+ | |||
+ | = Installation = | ||
+ | As of Hudson 3.0 Jetty is the default in-built container for Hudson. To use Jetty, just invoke {{code|java -jar hudson-3.0.0.war}}. | ||
+ | |||
+ | ==For Older Versions of Hudson== | ||
+ | |||
+ | Copy the {{code|hudson.war}} file to webapp directory, under debian this may be {{path|/usr/share/jetty/webapp}} | ||
+ | |||
+ | Hudson before 1.344 causes a problem with Jetty that results in a failure to retrieve update center data. | ||
+ | |||
+ | You may see: | ||
+ | |||
+ | *Unable to create the home directory '/usr/share/jetty/.hudson'. This is most likely a permission problem. | ||
+ | |||
+ | This worked for me: as root | ||
+ | <pre>mkdir /home/jetty | ||
+ | chown jetty:adm /home/jetty | ||
+ | echo export HUDSON_HOME=/home/jetty/ > /etc/profile.d/systemwide.sh | ||
+ | </pre> | ||
+ | |||
+ | restart jetty | ||
+ | |||
+ | |||
+ | or add | ||
+ | |||
+ | <pre> | ||
+ | <Call class="java.lang.System" name="setProperty"> | ||
+ | <Arg>HUDSON_HOME</Arg> | ||
+ | <Arg>/home/jetty</Arg> | ||
+ | </Call> | ||
+ | </pre> | ||
+ | to jetty.xml |
Latest revision as of 03:34, 12 January 2013
Hudson Continuous Integration Server | |
Website | |
Download | |
Community | |
Mailing List • Forums • IRC • mattermost | |
Issues | |
Open • Help Wanted • Bug Day | |
Contribute | |
Browse Source |
![]() |
Using Jetty as a Container |
---|
Installation
As of Hudson 3.0 Jetty is the default in-built container for Hudson. To use Jetty, just invoke java -jar hudson-3.0.0.war.
For Older Versions of Hudson
Copy the hudson.war file to webapp directory, under debian this may be /usr/share/jetty/webapp
Hudson before 1.344 causes a problem with Jetty that results in a failure to retrieve update center data.
You may see:
- Unable to create the home directory '/usr/share/jetty/.hudson'. This is most likely a permission problem.
This worked for me: as root
mkdir /home/jetty chown jetty:adm /home/jetty echo export HUDSON_HOME=/home/jetty/ > /etc/profile.d/systemwide.sh
restart jetty
or add
<Call class="java.lang.System" name="setProperty"> <Arg>HUDSON_HOME</Arg> <Arg>/home/jetty</Arg> </Call>
to jetty.xml