Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Hudson-ci/Containers/Jetty"

Line 1: Line 1:
 
{{hudson|pageTitle=Using Jetty as a Container}}  
 
{{hudson|pageTitle=Using Jetty as a Container}}  
  
= Installation =  
+
= Installation =
  
Copy the {{code|hudson.war}} file to webapp directory, under debian this may be {{path|/usr/share/jetty/webapp}}
+
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.
+
Hudson before 1.344 causes a problem with Jetty that results in a failure to retrieve update center data.  
 +
 
 +
You may see:
  
You may see:
 
 
*Unable to create the home directory '/usr/share/jetty/.hudson'. This is most likely a permission problem.
 
*Unable to create the home directory '/usr/share/jetty/.hudson'. This is most likely a permission problem.
  
This worked for me:
+
This worked for me: as root  
as root
+
<pre>mkdir /home/jetty
 
+
<pre>
+
mkdir /home/jetty
+
 
chown jetty:adm /home/jetty
 
chown jetty:adm /home/jetty
echo export HUDSON_HOME=/home/jetty/ > /etc/profile.d/systemwide.sh
+
echo export HUDSON_HOME=/home/jetty/ &gt; /etc/profile.d/systemwide.sh
<pre>
+
</pre>
  
 
restart jetty
 
restart jetty
Line 25: Line 23:
  
 
<pre>
 
<pre>
<Call class="java.lang.System" name="setProperty">
+
&lt;Call class="java.lang.System" name="setProperty"&gt;
   <Arg>HUDSON_HOME</Arg>
+
   &lt;Arg&gt;HUDSON_HOME&lt;/Arg&gt;
   <Arg>/home/jetty</Arg>
+
   &lt;Arg&gt;/home/jetty&lt;/Arg&gt;
</Call>
+
&lt;/Call&gt;
</pre>
+
</pre>  
 
+
 
to jetty.xml
 
to jetty.xml

Revision as of 07:20, 2 September 2011

Hudson Continuous Integration Server
Website
Download
Community
Mailing ListForumsIRCmattermost
Issues
OpenHelp WantedBug Day
Contribute
Browse Source
Hudson-bust.png Using Jetty as a Container











Installation

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

Back to the top