Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • name - name of a web application, which is used by DefaultServlet to display application description
    Code Block
    xml
    xml
    <jetty ...>
      <webapp name="name" .../>
    </jetty>
    




  • warfile - path to .war file or a directory with web application contents:
    Code Block
    xml
    xml
    <jetty ...>
      <webapp warfile="/path/to/war/file/or/web/application/contents" .../>
    </jetty>
    




  • contextPath - a context path a particular web application will be deployed to, and thus where it will be accessible (http://localhost:8080/webapp in this case):
    Code Block
    xml
    xml
    <jetty ...>
      <webapp contextPath="/webapp" .../>
    </jetty>
    




  • jettyEnvXml - path to jettyEnv.xml file with JNDI resource declarations
    Code Block
    xml
    xml
    <jetty ...>
      <webapp jettyEnvXml="/path/to/jettyEnv.xml" .../>
    </jetty>
    




  • webXml - path to web.xml file. If not specified, the default (location-of-war-file/WEB-INF/web.xml) location is used:
    Code Block
    xml
    xml
    <jetty ...>
      <webapp webXmlwebXmlFile="/path/to/web/xml" .../>
    </jetty>
    




  • scanTargets and scanIntervalSeconds - used to point to a special files/folders which need to be scanned and specify scanner interval in seconds respectively. If any of files changes the web application is being automatically reloaded. Scan interval and scanned files can be adjusted per web application.
    IMPORTANT: Please note, that all files included with <classes/> or <lib/> tags are automatically scanned for changes if you provide scanIntervalSeconds parameter in the <jetty/> tag. There's no need to add them using the <scanTargets/> section.
    Code Block
    xml
    xml
    <jetty ...>
      <webapp ... scanIntervalSeconds="5">
        <scanTargets dir="path/to/included/resources">
          <include name="filename/patterns" />
        </scanTargets>
      </webapp>
    </jetty>
    




  • lib - specifies which libraries needs to be included for a particular web application (treated as files inside WEB-INF/lib folder). Multiple lib tags are allowed.
    Code Block
    xml
    xml
    <jetty ...>
      <webapp ...>
        <lib dir="path/to/jar/folder" includes="*.jar" excludes="not-needed.jar" />
      </webapp>
    </jetty>
    




  • classes - specifies which folder contains web application classes (treated as WEB-INF/classes folder). Multiple classes tags are allowed.
    Code Block
    xml
    xml
    <jetty ...>
      <webapp ...>
        <classes dir="path/to/classes/folder" includes="*.class" />
      </webapp>
    </jetty>
    




  • connectors - specifies additional web application connectors
Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery