<?xml version="1.0" encoding="UTF-8"?>
<!--
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at
    
       http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->

<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

    <!-- XSS/XSRF filter -->
    <filter>
        <filter-name>XSSXSRFFilter</filter-name>
        <filter-class>org.apache.geronimo.console.filter.XSSXSRFFilter</filter-class>
            <init-param>
                <param-name>enableXSRF</param-name>
                <param-value>false</param-value>
            </init-param>
    </filter>
    <filter-mapping>
        <filter-name>XSSXSRFFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <listener>
        <listener-class>org.apache.geronimo.console.filter.XSSXSRFFilter</listener-class>
    </listener>

    <servlet>
        <servlet-name>popUpGraph</servlet-name>
        <servlet-class>org.apache.geronimo.monitoring.console.PopUpGraphServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>popUpGraph</servlet-name>
        <url-pattern>/popUpGraph</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>monitoring</servlet-name>
        <servlet-class>org.apache.pluto.core.PortletServlet</servlet-class>
        <init-param>
            <param-name>portlet-name</param-name>
            <param-value>monitoring</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>monitoring</servlet-name>
        <url-pattern>/PlutoInvoker/monitoring</url-pattern>
    </servlet-mapping>
    <!-- reference name exposed as a datasource -->
    <!--<resource-ref>-->
        <!--<res-ref-name>MonitoringClientDS</res-ref-name>-->
        <!--<res-type>javax.sql.DataSource</res-type>-->
        <!--<res-auth>Container</res-auth>-->
        <!--<res-sharing-scope>Shareable</res-sharing-scope>-->
    <!--</resource-ref>-->

    <persistence-context-ref>
        <persistence-context-ref-name>jpa/monitoring</persistence-context-ref-name>
        <persistence-unit-name>jpa/monitoring</persistence-unit-name>
    </persistence-context-ref>
    <security-role>
        <role-name>admin</role-name>
    </security-role>
    <security-role>
        <role-name>monitor</role-name>
    </security-role>
    

<!--
Automatically created by Apache Jakarta Tomcat JspC.
Place this fragment in the web.xml before all icon, display-name,
description, distributable, and context-param elements.
-->

    <servlet>
        <servlet-name>jsp.monitoringPopUpGraph_jsp</servlet-name>
        <servlet-class>jsp.monitoringPopUpGraph_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.monitoringAddGraph_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.monitoringAddGraph_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.monitoringAddServer_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.monitoringAddServer_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.monitoringAddView_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.monitoringAddView_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.monitoringEdit_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.monitoringEdit_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.monitoringEditGraph_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.monitoringEditGraph_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.monitoringEditServer_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.monitoringEditServer_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.monitoringEditView_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.monitoringEditView_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.monitoringGraphs_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.monitoringGraphs_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.monitoringHelp_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.monitoringHelp_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.monitoringMaximized_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.monitoringMaximized_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.monitoringNormal_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.monitoringNormal_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.monitoringPage_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.monitoringPage_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.monitoringServers_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.monitoringServers_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.monitoringViews_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.monitoringViews_jsp</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>jsp.WEB_002dINF.view.monitoringViewServer_jsp</servlet-name>
        <servlet-class>jsp.WEB_002dINF.view.monitoringViewServer_jsp</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>jsp.monitoringPopUpGraph_jsp</servlet-name>
        <url-pattern>/monitoringPopUpGraph.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.monitoringAddGraph_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/monitoringAddGraph.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.monitoringAddServer_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/monitoringAddServer.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.monitoringAddView_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/monitoringAddView.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.monitoringEdit_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/monitoringEdit.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.monitoringEditGraph_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/monitoringEditGraph.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.monitoringEditServer_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/monitoringEditServer.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.monitoringEditView_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/monitoringEditView.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.monitoringGraphs_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/monitoringGraphs.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.monitoringHelp_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/monitoringHelp.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.monitoringMaximized_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/monitoringMaximized.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.monitoringNormal_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/monitoringNormal.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.monitoringPage_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/monitoringPage.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.monitoringServers_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/monitoringServers.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.monitoringViews_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/monitoringViews.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>jsp.WEB_002dINF.view.monitoringViewServer_jsp</servlet-name>
        <url-pattern>/WEB-INF/view/monitoringViewServer.jsp</url-pattern>
    </servlet-mapping>

<!--
All session-config, mime-mapping, welcome-file-list, error-page, taglib,
resource-ref, security-constraint, login-config, security-role,
env-entry, and ejb-ref elements should follow this fragment.
-->

</web-app>