


  <servlet>
        <servlet-name>PKG_LuceeServlet</servlet-name>
        <servlet-class>lucee.loader.servlet.LuceeServlet</servlet-class>

    <init-param>
      <param-name>lucee-server-directory</param-name>
      <param-value>/var/tomcat/lucee/config/server/</param-value>
      <description>Lucee Server configuration directory (for Server-wide configurations, settings, and libraries)</description>
    </init-param>
    <init-param>
      <param-name>lucee-web-directory</param-name>
      <param-value>/var/tomcat/lucee/config/web/{web-context-label}/</param-value>
      <description>Lucee Web Directory (for Website-specific configurations, settings, and libraries)</description>
    </init-param>
    <load-on-startup>1</load-on-startup>

    </servlet>

    <servlet>
        <servlet-name>PKG_CFMLServlet</servlet-name>
        <servlet-class>lucee.loader.servlet.CFMLServlet</servlet-class>

    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <!-- to specify the location of the Lucee Server config and libraries,   -->
    <!-- uncomment the init-param below.  make sure that the param-value     -->
    <!-- points to a valid folder, and that the process that runs Lucee has  -->
    <!-- write permissions to that folder.  leave commented for defaults.    -->
    <!--
    <init-param>
      <param-name>lucee-server-directory</param-name>
      <param-value>/var/Lucee/config/server/</param-value>
      <description>Lucee Server configuration directory (for Server-wide configurations, settings, and libraries)</description>
    </init-param>
    !-->
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <!-- to specify the location of the Web Contexts' config and libraries,  -->
    <!-- uncomment the init-param below.  make sure that the param-value     -->
    <!-- points to a valid folder, and that the process that runs Lucee has  -->
    <!-- write permissions to that folder.  the {web-context-label} can be   -->
    <!-- set in Lucee Server Admin homepage.  leave commented for defaults.  -->
    <!--
    <init-param>
      <param-name>lucee-web-directory</param-name>
      <param-value>/var/Lucee/config/web/{web-context-label}/</param-value>
      <description>Lucee Web Directory (for Website-specific configurations, settings, and libraries)</description>
    </init-param>
    !-->
    <load-on-startup>2</load-on-startup>

    </servlet>


  <!-- ===================================================================== -->
  <!-- Lucee REST Servlet - handles Lucee's RESTful web services             -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <servlet>
    <servlet-name>PKG_RESTServlet</servlet-name>
    <servlet-class>lucee.loader.servlet.RestServlet</servlet-class>
    <load-on-startup>3</load-on-startup>
  </servlet>

  <!-- ===================================================================== -->
  <!-- Lucee MessageBroker Servlet - Flex Gateway                            -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!-- * ATTENTION - ATENCION - ACHTUNG  -  ATTENTION - ATENCION - ACHTUNG * -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!-- messageBrokerId must be unique for each defintion of the MessageBroker-->
  <!-- Servlet.  if you use the MessageBroker Servlet and define it in more  -->
  <!-- than one xml file, you must uncomment the messageBrokerId init-param  -->
  <!-- and set a different value in each definition.                         -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!-- <servlet>
    <description>Lucee Servlet for Flex Gateway</description>
    <servlet-name>PKG_MessageBrokerServlet</servlet-name>
    <servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
    <init-param>
      <param-name>services.configuration.file</param-name>
      <param-value>/WEB-INF/flex/services-config.xml</param-value>
    </init-param>
    <init-param>
      <param-name>messageBrokerId</param-name>
      <param-value>_default_</param-value>
    </init-param>
    <load-on-startup>3</load-on-startup>
  </servlet> -->



  <servlet-mapping>
      <servlet-name>PKG_LuceeServlet</servlet-name>
      <url-pattern>*.lucee</url-pattern>
      <url-pattern>/index.lucee/*</url-pattern>
  </servlet-mapping>

    <servlet-mapping>
      <servlet-name>PKG_CFMLServlet</servlet-name>
      <url-pattern>*.cfc</url-pattern>
      <url-pattern>*.cfm</url-pattern>
      <url-pattern>*.cfml</url-pattern>
      <url-pattern>/index.cfc/*</url-pattern>
      <url-pattern>/index.cfm/*</url-pattern>
      <url-pattern>/index.cfml/*</url-pattern>
  </servlet-mapping>



  <servlet-mapping>
    <servlet-name>PKG_RESTServlet</servlet-name>
    <url-pattern>/rest/*</url-pattern>
  </servlet-mapping>


	<!-- default file to execute if directory is called with no file name, e.g. http://mysite.com/ !-->
	<!-- welcome-file-list>
		<welcome-file>index.cfm</welcome-file>
		<welcome-file>index.lucee</welcome-file>
		<welcome-file>index.html</welcome-file>
		<welcome-file>index.htm</welcome-file>
	</welcome-file-list -->

<!-- /web-app -->
