Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>see <a href="http://docs.codehaus.org/display/CARGO/Custom+File+Configurations" rel="nofollow">http://docs.codehaus.org/display/CARGO/Custom+File+Configurations</a></p> <p>i <em>think</em> you can do it like this and place your custom server.xml in your project:</p> <pre class="lang-xml prettyprint-override"><code>&lt;configuration&gt; &lt;type&gt;standalone&lt;/type&gt; &lt;configfiles&gt; &lt;configfile&gt; &lt;file&gt;${basedir}/src/main/resources/server.xml&lt;/file&gt; &lt;todir&gt;conf&lt;/todir&gt; &lt;/configfile&gt; &lt;/configfiles&gt; &lt;/configuration&gt; </code></pre> <p>and use default cargo server.xml as a template to get property replacement:</p> <pre class="lang-xml prettyprint-override"><code>&lt;Server port="@cargo.rmi.port@" shutdown="SHUTDOWN" debug="@catalina.logging.level@"&gt; &lt;Service name="Catalina" debug="@catalina.logging.level@"&gt; &lt;Connector port="@cargo.servlet.port@" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" scheme="@cargo.protocol@" secure="@catalina.secure@" debug="@catalina.logging.level@" emptySessionPath="@catalina.connector.emptySessionPath@" URIEncoding="@catalina.servlet.uriencoding@" /&gt; &lt;!-- Define an AJP 1.3 Connector on port @cargo.tomcat.ajp.port@ --&gt; &lt;Connector port="@cargo.tomcat.ajp.port@" protocol="AJP/1.3" redirectPort="8443" /&gt; &lt;Engine name="Catalina" defaultHost="@cargo.hostname@" debug="@catalina.logging.level@"&gt; &lt;Realm className="org.apache.catalina.realm.MemoryRealm" /&gt; &lt;!-- Note: There seems to be a bug in Tomcat 5.x if the debug attribute is present. Ideally we would have written: debug="@catalina.logging.level@" However, doing this result in a NullPointerException in ExpandWar.java at line 145. --&gt; &lt;Host name="@cargo.hostname@" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"&gt; &lt;!-- Contexts to explicitely point to where the wars are located --&gt; @tomcat.webapps@ &lt;Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="@cargo.hostname@_access_log." suffix=".txt" pattern="common" resolveHosts="false"/&gt; &lt;/Host&gt; &lt;/Engine&gt; &lt;/Service&gt; &lt;/Server&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload