2004-03-16 18:57:17 -05:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure 1.2//EN" "http://jetty.mortbay.org/configure_1_2.dtd">
|
|
|
|
|
|
|
|
<!-- $Id$ -->
|
|
|
|
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Configure the Jetty Server -->
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
<Configure class="org.mortbay.jetty.Server">
|
|
|
|
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Configure the Request Listeners -->
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
|
|
|
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|
|
|
<!-- Add and configure a HTTP listener to port 8080 -->
|
|
|
|
<!-- The default port can be changed using: java -Djetty.port=80 -->
|
|
|
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|
|
|
<Call name="addListener">
|
|
|
|
<Arg>
|
|
|
|
<New class="org.mortbay.http.SocketListener">
|
|
|
|
<Set name="Port"><SystemProperty name="jetty.port" default="8080"/></Set>
|
|
|
|
<Set name="MinThreads">5</Set>
|
|
|
|
<Set name="MaxThreads">50</Set>
|
|
|
|
<Set name="MaxIdleTimeMs">30000</Set>
|
|
|
|
<Set name="LowResourcePersistTimeMs">1000</Set>
|
|
|
|
<Set name="ConfidentialPort">8443</Set>
|
|
|
|
<Set name="IntegralPort">8443</Set>
|
|
|
|
<Set name="PoolName">main</Set>
|
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
|
|
|
|
|
|
|
<Call name="instance" class="org.mortbay.util.Log">
|
|
|
|
<Call name="add">
|
|
|
|
<Arg>
|
|
|
|
<New class="org.mortbay.util.OutputStreamLogSink">
|
|
|
|
<Set name="filename"><SystemProperty name="jetty.home" default="."/>/logs/yyyy_mm_dd.jetty.log</Set>
|
|
|
|
<Set name="retainDays">90</Set>
|
|
|
|
<Set name="append">true</Set>
|
|
|
|
<Set name="logLabels">true</Set>
|
|
|
|
<Set name="logStackSize">true</Set>
|
|
|
|
<Set name="logStackTrace">false</Set>
|
|
|
|
<Set name="logOneLine">false</Set>
|
|
|
|
<Set name="logTimeZone">GMT</Set>
|
|
|
|
<Call name="start"/>
|
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
|
|
|
</Call>
|
|
|
|
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Configure the Contexts -->
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
|
|
|
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|
|
|
<!-- Add a all web application within the webapps directory. -->
|
|
|
|
<!-- + No virtual host specified -->
|
|
|
|
<!-- + Look in the webapps directory relative to jetty.home or . -->
|
|
|
|
<!-- + Use the webdefault.xml resource for the defaults descriptor -->
|
|
|
|
<!-- + Upack the war file -->
|
|
|
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|
|
|
<Set name="rootWebApp">root</Set>
|
|
|
|
<Call name="addWebApplications">
|
|
|
|
<Arg></Arg>
|
|
|
|
<Arg><SystemProperty name="jetty.home" default="."/>/webapps/</Arg>
|
|
|
|
<Arg><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Arg>
|
|
|
|
<Arg type="boolean">true</Arg>
|
|
|
|
</Call>
|
|
|
|
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Configure the Other Server Options -->
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
<Set name="requestsPerGC">2000</Set>
|
|
|
|
<Set name="statsOn">false</Set>
|
|
|
|
|
|
|
|
<Call name="addRealm">
|
|
|
|
<Arg>
|
|
|
|
<New class="net.sf.acegisecurity.adapters.jetty.JettyAcegiUserRealm">
|
|
|
|
<Arg>Spring Powered Realm</Arg>
|
|
|
|
<Arg>my_password</Arg>
|
2004-03-28 06:23:08 -05:00
|
|
|
<Arg>etc/acegisecurity.xml</Arg>
|
2004-03-16 18:57:17 -05:00
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
|
|
|
|
|
|
|
</Configure>
|